forked from wp-cli/wp-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-spec.php
132 lines (112 loc) · 3.52 KB
/
config-spec.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php
return [
'path' => [
'runtime' => '=<path>',
'file' => '<path>',
'desc' => 'Path to the WordPress files.',
],
'url' => [
'runtime' => '=<url>',
'file' => '<url>',
'desc' => 'Pretend request came from given URL. In multisite, this argument is how the target site is specified.',
],
'ssh' => [
'runtime' => '=[<scheme>:][<user>@]<host|container>[:<port>][<path>]',
'file' => '[<scheme>:][<user>@]<host|container>[:<port>][<path>]',
'desc' => 'Perform operation against a remote server over SSH (or a container using scheme of "docker", "docker-compose", "docker-compose-run", "vagrant").',
],
'http' => [
'runtime' => '=<http>',
'file' => '<http>',
'desc' => 'Perform operation against a remote WordPress installation over HTTP.',
],
'blog' => [
'deprecated' => 'Use --url instead.',
'runtime' => '=<url>',
],
'user' => [
'runtime' => '=<id|login|email>',
'file' => '<id|login|email>',
'desc' => 'Set the WordPress user.',
],
'skip-plugins' => [
'runtime' => '[=<plugins>]',
'file' => '<list>',
'desc' => 'Skip loading all plugins, or a comma-separated list of plugins. Note: mu-plugins are still loaded.',
'default' => '',
],
'skip-themes' => [
'runtime' => '[=<themes>]',
'file' => '<list>',
'desc' => 'Skip loading all themes, or a comma-separated list of themes.',
'default' => '',
],
'skip-packages' => [
'runtime' => '',
'file' => '<bool>',
'desc' => 'Skip loading all installed packages.',
'default' => false,
],
'require' => [
'runtime' => '=<path>',
'file' => '<path>',
'desc' => 'Load PHP file before running the command (may be used more than once).',
'multiple' => true,
'default' => [],
],
'exec' => [
'runtime' => '=<php-code>',
'file' => '<php-code>',
'desc' => 'Execute PHP code before running the command (may be used more than once).',
'multiple' => true,
'default' => [],
],
'context' => [
'runtime' => '=<context>',
'file' => '<context>',
'default' => 'cli',
'desc' => 'Load WordPress in a given context.',
],
'disabled_commands' => [
'file' => '<list>',
'default' => [],
'desc' => '(Sub)commands to disable.',
],
'color' => [
'runtime' => true,
'file' => '<bool>',
'default' => 'auto',
'desc' => 'Whether to colorize the output.',
],
'debug' => [
'runtime' => '[=<group>]',
'file' => '<group>',
'default' => false,
'desc' => 'Show all PHP errors and add verbosity to WP-CLI output. Built-in groups include: bootstrap, commandfactory, and help.',
],
'prompt' => [
'runtime' => '[=<assoc>]',
'file' => false,
'default' => false,
'desc' => 'Prompt the user to enter values for all command arguments, or a subset specified as comma-separated values.',
],
'quiet' => [
'runtime' => '',
'file' => '<bool>',
'default' => false,
'desc' => 'Suppress informational messages.',
],
'apache_modules' => [
'file' => '<list>',
'desc' => 'List of Apache Modules that are to be reported as loaded.',
'multiple' => true,
'default' => [],
],
# --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' => [
'file' => false, # Explicit. Just in case the default changes.
'runtime' => '',
'hidden' => true,
],
];