init()
init()
Method init()
Initiate the MainWP CLI after all Plugins have loaded.
Class MainWP_WP_CLI_Command
Manage all child sites added to the MainWP Dashboard.
sites(array $args, array $assoc_args)
List information about added child sites.
[--list] : Get a list of all child sites
[--count] : If set, count child sites.
wp mainwp sites --list
wp mainwp sites --all-sites-count
array | $args | Function arguments. |
array | $assoc_args | Function associate arguments. |
site(array $args, array $assoc_args)
Site commands.
[--site] : Get site data
[--site-info] : If set, get site info.
wp mainwp site --site [<websiteid>]
wp mainwp site --site-info [<websiteid>]
array | $args | Function arguments. |
array | $assoc_args | Function associate arguments. |
updates(array $args, array $assoc_args)
Updates commands.
[--available-updates
[--ignored-plugins-updates
[--site-ignored-plugins-updates
[--ignored-themes-updates
[--site-ignored-themes-updates
[--ignore-updates --type=[type] --slug=[slug]] : If set, ignored updates.
[--ignore-update
[--unignore-updates --type=[type] --slug=[slug]] : If set, unignore updates.
[--unignore-update
wp mainwp updates --available-updates
wp mainwp updates --ignored-plugins-updates
wp mainwp updates --site-ignored-plugins-updates 3
array | $args | Function arguments. |
array | $assoc_args | Function associate arguments. |
sync(array $args, array $assoc_args)
Sync Data with Child Sites
[
[--all] : If set, all child sites will be synced.
wp mainwp sync 2,5
wp mainwp sync --all
array | $args | Function arguments. |
array | $assoc_args | Function associate arguments. |
reconnect(array $args, array $assoc_args)
Reconnect with Child Sites
[
wp mainwp reconnect 2,5
array | $args | Function arguments. |
array | $assoc_args | Function associate arguments. |
plugin(array $args, array $assoc_args)
List information about plugin updates
[
[--list] : Get a list of plugins with available updates
[--list-all] : List all plugins
[--upgrade=
[--upgrade-all] : Update all plugins
wp mainwp plugin 2,5 --list
wp mainwp plugin --list
wp mainwp plugin 2,5 --list-all
wp mainwp plugin 2,5 --upgrade-all
wp mainwp plugin 2,5 --upgrade=mainwpchild
array | $args | Function arguments. |
array | $assoc_args | Function associate arguments. |
theme(array $args, array $assoc_args)
List information about theme updates
[
[--list] : Get a list of themes with available updates
[--list-all] : list all themes
[--upgrade=
[--upgrade-all] : Update all themes
wp mainwp theme 2,5 --list
wp mainwp theme --list
wp mainwp theme 2,5 --upgrade-all
wp mainwp theme 2,5 --upgrade=twentysixteen
array | $args | Function arguments. |
array | $assoc_args | Function associate arguments. |