© MainWP - WordPress Management for Professionals 2014 - 2021 - Terms of Service - Privacy Policy - Cookie Policy - Support Policy - Refund Policy
This section lists all CLI Commands that can be used to manipulate sites.
List all child sites.
wp mainwp sites --all-sites
Get the number of all child sites.
wp mainwp sites --all-sites-count
List all connected child sites.
wp mainwp sites --connected-sites
Get the number of all connected child sites.
wp mainwp sites --connected-sites-count
List all disconnected child sites.
wp mainwp sites --disconnected-sites
Get the number of all disconnected child sites.
wp mainwp sites --disconnected-sites-count
Sync all child sites.
wp mainwp sites --sync-sites
Check all child sites.
wp mainwp sites --check-sites
Check all child sites.
wp mainwp sites --check-sites
This section lists all CLI Commands that can be used to manipulate a single site.
Get site data
wp mainwp site --site <id>
Get site info
wp mainwp site --site-info <id>
Get the list of all installed plugins on a child site.
wp mainwp site --site-installed-plugins <id>
Get the number of installed plugins on a child site.
wp mainwp site --site-installed-plugins-count <id>
Get the list of active plugins on a child site.
wp mainwp site --site-active-plugins <id>
Get the number of active plugins on a child site.
wp mainwp site --site-active-plugins-count <id>
Get the list of inactive plugins on a child site.
wp mainwp site --site-inactive-plugins <id>
Get the number of inactive plugins on a child site.
wp mainwp site --site-inactive-plugins-count <id>
Get the list of all installed themes on a child site.
wp mainwp site --site-installed-themes <id>
Get the number of installed themes on a child site.
wp mainwp site --site-installed-themes-count <id>
Get the active theme on a child site.
wp mainwp site --site-active-themes <id>
Get the list of inactive themes on a child site.
wp mainwp site --site-inactive-themes <id>
Get the number of inactive themes on a child site.
wp mainwp site --site-inactive-themes-count <id>
Get the list of available updates for a child site.
wp mainwp site --site-available-updates <id>
Get the number of available updates on a child site.
wp mainwp site --site-available-updates-count <id>
Get the list of abandoned plugins on a child site.
wp mainwp site --site-abandoned-plugins <id>
Get the number of abandoned plugins on a child site.
wp mainwp site --site-abandoned-plugins-count <id>
Get the list of abandoned themes on a child site.
wp mainwp site --site-abandoned-themes <id>
Get the number of abandoned themes on a child site.
wp mainwp site --site-abandoned-themes-count <id>
Get the HTTP Status of a child site.
wp mainwp site --site-http-status <id>
Get the Health Score of a child site.
wp mainwp site --site-health-score <id>
Get the list of security issues on a child site.
wp mainwp site --site-security-issues <id>
Sync a child site.
wp mainwp site --sync-site <id>
Reconnect a child site.
wp mainwp site --reconnect-site <id>
Disconnect a child site.
wp mainwp site --disconnect-site <id>
Remove a child site from your MainWP Dashboard.
wp mainwp site --remove-site <id>
Update WP Core on a child site.
wp mainwp site --site-update-wordpress <id>
Update plugins on a child site.
wp mainwp site --site-update-plugins <id>
Update themes on a child site.
wp mainwp site --site-update-themes <id>
Update translations on a child site.
wp mainwp site --site-update-translations <id>
Update single item on a child site.
wp mainwp site --site-update-item <id> --type=<type> --slug=<slug>
Manage Plugin (activate, deactivate, delete) on a child site.
wp mainwp site --site-manage-plugin <id> --action=<action> --plugin=<plugin>
Manage Theme (activate, deactivate, delete) on a child site.
wp mainwp site --site-manage-theme <id> --action=<action> --theme=<theme>
Check the HTTP Status of a child site.
wp mainwp site --check-site-http-status <id>
This section lists all CLI Commands that can be used to manipulate updates.
List all available updates across all child sites.
wp mainwp updates --available-updates
List all ignored plugins updates.
wp mainwp updates --ignored-plugins-updates <id>
List all ignored plugins updates.
wp mainwp updates --site-ignored-plugins-updates <id>
List all ignored themes updates.
wp mainwp updates --ignored-themes-updates <id>
List all ignored themes updates.
wp mainwp updates --site-ignored-themes-updates <id>
Ignore an update.
wp mainwp updates --ignore-updates --type=<type> --slug=<slug> --name=<name>
Ignore an update on a child site.
wp mainwp updates --ignore-update <id> --type=<type> --slug=<slug> --name=<name>
Unignore updates.
wp mainwp updates --unignore-updates --type=<type> --slug=<slug> --name=<name>
Unignore an update on a child site.
wp mainwp updates --unignore-update <id> --type=<type> --slug=<slug> --name=<name>