|
|
@ -1,61 +1,11 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
return array( |
|
|
|
'path' => array( |
|
|
|
'runtime' => '=<path>', |
|
|
|
'file' => '<path>', |
|
|
|
'desc' => 'Path to the WordPress files', |
|
|
|
), |
|
|
|
|
|
|
|
'url' => array( |
|
|
|
'runtime' => '=<url>', |
|
|
|
'file' => '<url>', |
|
|
|
'desc' => 'Pretend request came from given URL. In multisite, this argument is how the target site is specified.', |
|
|
|
), |
|
|
|
'blog' => array( |
|
|
|
'deprecated' => 'Use --url instead.', |
|
|
|
'runtime' => '=<url>', |
|
|
|
), |
|
|
|
|
|
|
|
'config' => array( |
|
|
|
'deprecated' => 'Use the WP_CLI_CONFIG_PATH environment variable instead.', |
|
|
|
'deprecated' => 'Use the EE_CLI_CONFIG_PATH environment variable instead.', |
|
|
|
'runtime' => '=<path>', |
|
|
|
), |
|
|
|
|
|
|
|
'user' => array( |
|
|
|
'runtime' => '=<id|login|email>', |
|
|
|
'file' => '<id|login|email>', |
|
|
|
'desc' => 'Set the WordPress user', |
|
|
|
), |
|
|
|
|
|
|
|
'skip-plugins' => array( |
|
|
|
'runtime' => '[=<plugin>]', |
|
|
|
'file' => '<list>', |
|
|
|
'desc' => 'Skip loading all or some plugins', |
|
|
|
'default' => '', |
|
|
|
), |
|
|
|
|
|
|
|
'skip-themes' => array( |
|
|
|
'runtime' => '[=<theme>]', |
|
|
|
'file' => '<list>', |
|
|
|
'desc' => 'Skip loading all or some themes', |
|
|
|
'default' => '', |
|
|
|
), |
|
|
|
|
|
|
|
'require' => array( |
|
|
|
'runtime' => '=<path>', |
|
|
|
'file' => '<path>', |
|
|
|
'desc' => 'Load PHP file before running the command (may be used more than once)', |
|
|
|
'multiple' => true, |
|
|
|
'default' => array(), |
|
|
|
), |
|
|
|
|
|
|
|
'disabled_commands' => array( |
|
|
|
'file' => '<list>', |
|
|
|
'default' => array(), |
|
|
|
'desc' => '(Sub)commands to disable', |
|
|
|
), |
|
|
|
|
|
|
|
'color' => array( |
|
|
|
'runtime' => true, |
|
|
|
'file' => '<bool>', |
|
|
@ -83,20 +33,4 @@ return array( |
|
|
|
'default' => false, |
|
|
|
'desc' => 'Suppress informational messages', |
|
|
|
), |
|
|
|
|
|
|
|
'apache_modules' => array( |
|
|
|
'file' => '<list>', |
|
|
|
'desc' => 'List of Apache Modules that are to be reported as loaded', |
|
|
|
'multiple' => true, |
|
|
|
'default' => array(), |
|
|
|
), |
|
|
|
|
|
|
|
# --allow-root => (NOT RECOMMENDED) Allow wp-cli to run as root. This poses |
|
|
|
# a security risk, so you probably do not want to do this. |
|
|
|
'allow-root' => array( |
|
|
|
'file' => false, # Explicit. Just in case the default changes. |
|
|
|
'runtime' => '', |
|
|
|
'hidden' => true, |
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|