What You’ll Learn
- Available WP-CLI commands for site management
- How to sync, update, and manage sites via command line
- How to configure MainWP Child password authentication for a WordPress user
- Example automation scripts
Prerequisites
- MainWP Dashboard v4.1.3 or later
- WP-CLI installed on your MainWP Dashboard server for
wp mainwpcommands - WP-CLI available on the server hosting the child site for
wp mainwp-childcommands - MainWP Child activated on the child site
- Child sites connected to your MainWP Dashboard for Dashboard-side management commands
- Sites
- Site
- Updates
- MainWP Child
Sites Management
Commands for managing multiple child sites simultaneously.List All Sites
Count All Sites
Connected Sites
Connected Sites Count
Disconnected Sites
Disconnected Sites Count
Sync All Sites
Check All Sites
Example Workflows
Daily Sync Script
Create a script to sync all sites and check for updates:Get Site Overview
Replace site IDs with your actual child site IDs. You can find site IDs by running
wp mainwp sites --all-sites.Self-Check Checklist
- WP-CLI installed on the MainWP Dashboard server
- MainWP Dashboard v4.1.3 or later
- Test basic command:
wp mainwp sites --all-sites - Site IDs identified for site-specific commands
- WP-CLI available on the server hosting the child site before using
wp mainwp-child - Unique Security ID configured before disabling password authentication
Related Resources
- SureTriggers Automation - Visual workflow automation
- REST API Overview - API-based automation
