How can we help?

CLI Commands

Sites

This section lists all CLI Commands that can be used to manipulate sites.

All Sites

List all child sites.

wp mainwp sites --all-sites 

All Sites Count

Get the number of all child sites.

wp mainwp sites --all-sites-count 

Connected Sites

List all connected child sites.

wp mainwp sites --connected-sites 

Connected Sites Count

Get the number of all connected child sites.

wp mainwp sites --connected-sites-count 

Disconnected Sites

List all disconnected child sites.

wp mainwp sites --disconnected-sites 

Disconnected Sites Count

Get the number of all disconnected child sites.

wp mainwp sites --disconnected-sites-count 

Sync Sites

Sync all child sites.

wp mainwp sites --sync-sites 

Check Sites

Check all child sites.

wp mainwp sites --check-sites 

Disconnect Sites

Check all child sites.

wp mainwp sites --check-sites 

Site

This section lists all CLI Commands that can be used to manipulate a single site.

Site

Get site data

wp mainwp site --site <id> 

Site Info

Get site info, which includes Site Name and URL, WordPress version, PHP version, MainWP Child plugin version, PHP Memory Limit, MySQL version, Active Theme and the IP address of the server.

wp mainwp site --site-info <id> 

Site Installed Plugins

Get the list of all installed plugins on a child site.

wp mainwp site --site-installed-plugins <id> 

Site Installed Plugins Count

Get the number of installed plugins on a child site.

wp mainwp site --site-installed-plugins-count <id> 

Site Active Plugins

Get the list of active plugins on a child site.

wp mainwp site --site-active-plugins <id> 

Site Active Plugins Count

Get the number of active plugins on a child site.

wp mainwp site --site-active-plugins-count <id> 

Site Inactive Plugins

Get the list of inactive plugins on a child site.

wp mainwp site --site-inactive-plugins <id> 

Site Inactive Plugins Count

Get the number of inactive plugins on a child site.

wp mainwp site --site-inactive-plugins-count <id> 

Site Installed Themes

Get the list of all installed themes on a child site.

wp mainwp site --site-installed-themes <id> 

Site Installed Themes Count

Get the number of installed themes on a child site.

wp mainwp site --site-installed-themes-count <id> 

Site Active Themes

Get the active theme on a child site.

wp mainwp site --site-active-themes <id> 

Site Inactive Themes

Get the list of inactive themes on a child site.

wp mainwp site --site-inactive-themes <id> 

Site Inactive Themes Count

Get the number of inactive themes on a child site.

wp mainwp site --site-inactive-themes-count <id> 

Site Available Updates

Get the list of available updates for a child site.

wp mainwp site --site-available-updates <id> 

Site Available Updates Count

Get the number of available updates on a child site.

wp mainwp site --site-available-updates-count <id> 

Site Abandoned Plugins

Get the list of abandoned plugins on a child site.

wp mainwp site --site-abandoned-plugins <id> 

Site Abandoned Plugins Count

Get the number of abandoned plugins on a child site.

wp mainwp site --site-abandoned-plugins-count <id> 

Site Abandoned Themes

Get the list of abandoned themes on a child site.

wp mainwp site --site-abandoned-themes <id> 

Site Abandoned Themes Count

Get the number of abandoned themes on a child site.

wp mainwp site --site-abandoned-themes-count <id> 

Site HTTP Status

Get the HTTP Status of a child site.

wp mainwp site --site-http-status <id> 

Site Health Score

Get the Health Score of a child site.

wp mainwp site --site-health-score <id> 

Site Security Issues

Get the list of security issues on a child site.

wp mainwp site --site-security-issues <id> 

Add Site

Add a website

wp mainwp site --add-site --site-url=http://site1.com --name=site1 --admin=adminuser --uniqueid=xxxxx  

Sync Site

Sync a child site.

wp mainwp site --sync-site <id> 

Reconnect Site

Reconnect a child site.

wp mainwp site --reconnect-site <id> 

Disconnect Site

Disconnect a child site.

wp mainwp site --disconnect-site <id> 

Remove Site

Remove a child site from your MainWP Dashboard.

wp mainwp site --remove-site <id> 

Site Update WordPress

Update WP Core on a child site.

wp mainwp site --site-update-wordpress <id> 

Site Update Plugins

Update plugins on a child site.

wp mainwp site --site-update-plugins <id> 

Site Update Themes

Update themes on a child site.

wp mainwp site --site-update-themes <id> 

Site Update Translations

Update translations on a child site.

wp mainwp site --site-update-translations <id> 

Site Update Item

Update single item on a child site.

wp mainwp site --site-update-item <id> --type=<type> --slug=<slug> 

Site Manage Plugin

Manage Plugin (activate, deactivate, delete) on a child site.

wp mainwp site --site-manage-plugin <id> --action=<action> --plugin=<plugin> 

Site Manage Theme

Manage Theme (activate, deactivate, delete) on a child site.

wp mainwp site --site-manage-theme <id> --action=<action> --theme=<theme> 

Check Site HTTP Status

Check the HTTP Status of a child site.

wp mainwp site --check-site-http-status <id> 

Updates

This section lists all CLI Commands that can be used to manipulate updates.

Available Updates

List all available updates across all child sites.

wp mainwp updates --available-updates 

Ignored Plugins Updates

List all ignored plugins updates.

wp mainwp updates --ignored-plugins-updates 

Site Ignored Plugins Updates

List all ignored plugins updates.

wp mainwp updates --site-ignored-plugins-updates <id> 

Ignored Themes Updates

List all ignored themes updates.

wp mainwp updates --ignored-themes-updates <id> 

Site Ignored Themes Updates

List all ignored themes updates.

wp mainwp updates --site-ignored-themes-updates <id> 

Ignore Updates

Ignore an update.

wp mainwp updates --ignore-updates --type=<type> --slug=<slug> --name=<name> 

Ignore Update

Ignore an update on a child site.

wp mainwp updates --ignore-update <id> --type=<type> --slug=<slug> --name=<name> 

Unignore Updates

Unignore updates.

wp mainwp updates --unignore-updates --type=<type> --slug=<slug> --name=<name> 

Unignore Update

Unignore an update on a child site.

wp mainwp updates --unignore-update <id> --type=<type> --slug=<slug> --name=<name>