You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

102 lines
2.3 KiB

<?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.',
'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>',
'default' => 'auto',
'desc' => 'Whether to colorize the output',
),
'debug' => array(
'runtime' => '',
'file' => '<bool>',
'default' => false,
'desc' => 'Show all PHP errors; add verbosity to WP-CLI bootstrap',
),
'prompt' => array(
'runtime' => '',
'file' => false,
'default' => false,
'desc' => 'Prompt the user to enter values for all command arguments',
),
'quiet' => array(
'runtime' => '',
'file' => '<bool>',
'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,
),
);