@enjoys/context-engine 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/commands/adb.json +322 -0
- package/data/commands/alembic.json +301 -0
- package/data/commands/artisan.json +277 -0
- package/data/commands/atlas.json +426 -0
- package/data/commands/auth0.json +648 -0
- package/data/commands/bat.json +84 -0
- package/data/commands/bundle.json +321 -0
- package/data/commands/composer.json +507 -0
- package/data/commands/dart.json +216 -0
- package/data/commands/dbmate.json +257 -0
- package/data/commands/docker-compose.json +384 -0
- package/data/commands/drizzle-kit.json +217 -0
- package/data/commands/expo.json +65 -0
- package/data/commands/fastlane.json +243 -0
- package/data/commands/fd.json +86 -0
- package/data/commands/flutter.json +298 -0
- package/data/commands/flyway.json +261 -0
- package/data/commands/fzf.json +103 -0
- package/data/commands/gem.json +267 -0
- package/data/commands/jq.json +100 -0
- package/data/commands/k9s.json +62 -0
- package/data/commands/liquibase.json +399 -0
- package/data/commands/manifest.json +619 -0
- package/data/commands/minikube.json +60 -0
- package/data/commands/ng.json +64 -0
- package/data/commands/nuxt.json +60 -0
- package/data/commands/php.json +157 -0
- package/data/commands/pm2.json +259 -0
- package/data/commands/pod.json +175 -0
- package/data/commands/prisma.json +257 -0
- package/data/commands/rails.json +372 -0
- package/data/commands/rake.json +360 -0
- package/data/commands/react-native.json +57 -0
- package/data/commands/rg.json +103 -0
- package/data/commands/rspec.json +257 -0
- package/data/commands/ruby.json +108 -0
- package/data/commands/sequelize.json +342 -0
- package/data/commands/snyk.json +442 -0
- package/data/commands/sonar-scanner.json +219 -0
- package/data/commands/stripe.json +314 -0
- package/data/commands/symfony.json +449 -0
- package/data/commands/tmux.json +197 -0
- package/data/commands/trivy.json +367 -0
- package/data/commands/twilio.json +382 -0
- package/data/commands/typeorm.json +262 -0
- package/data/commands/vue.json +60 -0
- package/data/commands/wp.json +857 -0
- package/data/commands/xcodebuild.json +141 -0
- package/data/commands/yq.json +57 -0
- package/data/completion/bash.json +1184 -0
- package/data/completion/c.json +1067 -0
- package/data/completion/cpp.json +824 -0
- package/data/completion/csharp.json +860 -0
- package/data/completion/dockerfile.json +536 -0
- package/data/completion/go.json +1346 -0
- package/data/completion/html.json +806 -0
- package/data/completion/java.json +1112 -0
- package/data/completion/javascript.json +914 -0
- package/data/completion/lua.json +968 -0
- package/data/completion/php.json +1535 -0
- package/data/completion/python.json +1427 -0
- package/data/completion/ruby.json +1531 -0
- package/data/completion/rust.json +698 -0
- package/data/completion/sql.json +887 -0
- package/data/completion/toml.json +428 -0
- package/data/completion/typescript.json +338 -0
- package/data/completion/yaml.json +563 -0
- package/data/defination/bash.json +565 -0
- package/data/defination/c.json +865 -0
- package/data/defination/cpp.json +348 -0
- package/data/defination/csharp.json +144 -0
- package/data/defination/dockerfile.json +113 -0
- package/data/defination/go.json +561 -0
- package/data/defination/html.json +559 -0
- package/data/defination/java.json +184 -0
- package/data/defination/javascript.json +265 -0
- package/data/defination/lua.json +181 -0
- package/data/defination/php.json +726 -0
- package/data/defination/python.json +717 -0
- package/data/defination/ruby.json +670 -0
- package/data/defination/rust.json +207 -0
- package/data/defination/sql.json +473 -0
- package/data/defination/toml.json +251 -0
- package/data/defination/typescript.json +29 -0
- package/data/defination/yaml.json +197 -0
- package/data/hover/bash.json +245 -0
- package/data/hover/c.json +265 -0
- package/data/hover/cpp.json +210 -0
- package/data/hover/csharp.json +290 -0
- package/data/hover/dockerfile.json +145 -0
- package/data/hover/go.json +580 -0
- package/data/hover/html.json +250 -0
- package/data/hover/java.json +395 -0
- package/data/hover/javascript.json +330 -0
- package/data/hover/lua.json +265 -0
- package/data/hover/php.json +300 -0
- package/data/hover/python.json +380 -0
- package/data/hover/ruby.json +265 -0
- package/data/hover/rust.json +275 -0
- package/data/hover/sql.json +230 -0
- package/data/hover/toml.json +145 -0
- package/data/hover/typescript.json +120 -0
- package/data/hover/yaml.json +165 -0
- package/data/manifest.json +242 -0
- package/package.json +1 -1
|
@@ -0,0 +1,857 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wp",
|
|
3
|
+
"description": "WP-CLI is the official command-line interface for WordPress, enabling management of posts, plugins, themes, users, databases, and more without a web browser.",
|
|
4
|
+
"category": "php-ecosystem",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish", "powershell"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{
|
|
9
|
+
"name": "core download",
|
|
10
|
+
"description": "Download WordPress core files",
|
|
11
|
+
"args": [],
|
|
12
|
+
"options": [
|
|
13
|
+
{"name": "--path", "description": "Specify the path in which to install WordPress", "type": "string"},
|
|
14
|
+
{"name": "--locale", "description": "Select which language you want to download", "type": "string"},
|
|
15
|
+
{"name": "--version", "description": "Select which version you want to download", "type": "string"},
|
|
16
|
+
{"name": "--force", "description": "Overwrites existing files if present"}
|
|
17
|
+
],
|
|
18
|
+
"examples": [
|
|
19
|
+
"wp core download",
|
|
20
|
+
"wp core download --locale=ja --version=6.4",
|
|
21
|
+
"wp core download --path=/var/www/html --force"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "core install",
|
|
26
|
+
"description": "Install WordPress with provided configuration",
|
|
27
|
+
"args": [],
|
|
28
|
+
"options": [
|
|
29
|
+
{"name": "--url", "description": "The address of the new site", "type": "string"},
|
|
30
|
+
{"name": "--title", "description": "The title of the new site", "type": "string"},
|
|
31
|
+
{"name": "--admin_user", "description": "The name of the admin user", "type": "string"},
|
|
32
|
+
{"name": "--admin_password", "description": "The password for the admin user", "type": "string"},
|
|
33
|
+
{"name": "--admin_email", "description": "The email address for the admin user", "type": "string"},
|
|
34
|
+
{"name": "--skip-email", "description": "Don't send the installation email"}
|
|
35
|
+
],
|
|
36
|
+
"examples": [
|
|
37
|
+
"wp core install --url=example.com --title='My Site' --admin_user=admin --admin_password=secret --admin_email=admin@example.com",
|
|
38
|
+
"wp core install --url=localhost:8080 --title='Dev Site' --admin_user=dev --admin_password=dev --admin_email=dev@dev.local --skip-email"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "core update",
|
|
43
|
+
"description": "Update WordPress core to the latest release or a specified version",
|
|
44
|
+
"args": [],
|
|
45
|
+
"options": [
|
|
46
|
+
{"name": "--version", "description": "Update to a specific version", "type": "string"},
|
|
47
|
+
{"name": "--force", "description": "Update even when installed version is greater than the requested version"},
|
|
48
|
+
{"name": "--minor", "description": "Only perform minor updates"},
|
|
49
|
+
{"name": "--locale", "description": "Select which language you want to update to", "type": "string"}
|
|
50
|
+
],
|
|
51
|
+
"examples": [
|
|
52
|
+
"wp core update",
|
|
53
|
+
"wp core update --version=6.4.2",
|
|
54
|
+
"wp core update --minor"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "core version",
|
|
59
|
+
"description": "Display the WordPress version",
|
|
60
|
+
"args": [],
|
|
61
|
+
"options": [
|
|
62
|
+
{"name": "--extra", "description": "Show extended version information"}
|
|
63
|
+
],
|
|
64
|
+
"examples": [
|
|
65
|
+
"wp core version",
|
|
66
|
+
"wp core version --extra"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "plugin install",
|
|
71
|
+
"description": "Install one or more plugins from wordpress.org, a URL, or a local zip file",
|
|
72
|
+
"args": [{"name": "plugin", "type": "string", "required": true, "description": "Plugin slug, URL, or path to a zip file"}],
|
|
73
|
+
"options": [
|
|
74
|
+
{"name": "--version", "description": "Install a specific version of the plugin", "type": "string"},
|
|
75
|
+
{"name": "--activate", "description": "Activate the plugin after installation"},
|
|
76
|
+
{"name": "--activate-network", "description": "Network-activate the plugin after installation"},
|
|
77
|
+
{"name": "--force", "description": "Overwrite if the plugin already exists"},
|
|
78
|
+
{"name": "--insecure", "description": "Retry downloads without certificate verification"}
|
|
79
|
+
],
|
|
80
|
+
"examples": [
|
|
81
|
+
"wp plugin install akismet",
|
|
82
|
+
"wp plugin install akismet --activate",
|
|
83
|
+
"wp plugin install woocommerce --version=8.5.0 --activate",
|
|
84
|
+
"wp plugin install https://example.com/my-plugin.zip --force"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "plugin activate",
|
|
89
|
+
"description": "Activate one or more plugins",
|
|
90
|
+
"args": [{"name": "plugin", "type": "string", "required": false, "description": "Plugin slug to activate"}],
|
|
91
|
+
"options": [
|
|
92
|
+
{"name": "--all", "description": "Activate all plugins"},
|
|
93
|
+
{"name": "--network", "description": "Network-activate the plugin"}
|
|
94
|
+
],
|
|
95
|
+
"examples": [
|
|
96
|
+
"wp plugin activate akismet",
|
|
97
|
+
"wp plugin activate --all",
|
|
98
|
+
"wp plugin activate woocommerce --network"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "plugin deactivate",
|
|
103
|
+
"description": "Deactivate one or more plugins",
|
|
104
|
+
"args": [{"name": "plugin", "type": "string", "required": false, "description": "Plugin slug to deactivate"}],
|
|
105
|
+
"options": [
|
|
106
|
+
{"name": "--all", "description": "Deactivate all plugins"},
|
|
107
|
+
{"name": "--uninstall", "description": "Uninstall the plugin after deactivation"},
|
|
108
|
+
{"name": "--network", "description": "Network-deactivate the plugin"}
|
|
109
|
+
],
|
|
110
|
+
"examples": [
|
|
111
|
+
"wp plugin deactivate akismet",
|
|
112
|
+
"wp plugin deactivate --all",
|
|
113
|
+
"wp plugin deactivate hello-dolly --uninstall"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "plugin delete",
|
|
118
|
+
"description": "Delete one or more plugins",
|
|
119
|
+
"args": [{"name": "plugin", "type": "string", "required": true, "description": "Plugin slug to delete"}],
|
|
120
|
+
"options": [
|
|
121
|
+
{"name": "--all", "description": "Delete all plugins"}
|
|
122
|
+
],
|
|
123
|
+
"examples": [
|
|
124
|
+
"wp plugin delete hello-dolly",
|
|
125
|
+
"wp plugin delete akismet hello-dolly"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "plugin list",
|
|
130
|
+
"description": "List all installed plugins with status and update availability",
|
|
131
|
+
"args": [],
|
|
132
|
+
"options": [
|
|
133
|
+
{"name": "--status", "description": "Filter by plugin status (active, inactive, must-use, dropin)", "type": "string"},
|
|
134
|
+
{"name": "--field", "description": "Print the value of a single field for each plugin", "type": "string"},
|
|
135
|
+
{"name": "--fields", "description": "Comma-separated list of fields to show", "type": "string"},
|
|
136
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml, count)", "type": "string"}
|
|
137
|
+
],
|
|
138
|
+
"examples": [
|
|
139
|
+
"wp plugin list",
|
|
140
|
+
"wp plugin list --status=active --format=json",
|
|
141
|
+
"wp plugin list --field=name --status=inactive"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "plugin update",
|
|
146
|
+
"description": "Update one or more plugins",
|
|
147
|
+
"args": [{"name": "plugin", "type": "string", "required": false, "description": "Plugin slug to update"}],
|
|
148
|
+
"options": [
|
|
149
|
+
{"name": "--all", "description": "Update all plugins"},
|
|
150
|
+
{"name": "--version", "description": "Update to a specific version", "type": "string"},
|
|
151
|
+
{"name": "--dry-run", "description": "Preview updates without applying them"},
|
|
152
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml, summary)", "type": "string"},
|
|
153
|
+
{"name": "--minor", "description": "Only perform minor updates"},
|
|
154
|
+
{"name": "--patch", "description": "Only perform patch updates"}
|
|
155
|
+
],
|
|
156
|
+
"examples": [
|
|
157
|
+
"wp plugin update --all",
|
|
158
|
+
"wp plugin update akismet",
|
|
159
|
+
"wp plugin update woocommerce --version=8.6.0",
|
|
160
|
+
"wp plugin update --all --dry-run"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "plugin search",
|
|
165
|
+
"description": "Search the wordpress.org plugin directory",
|
|
166
|
+
"args": [{"name": "search", "type": "string", "required": true, "description": "Search term"}],
|
|
167
|
+
"options": [
|
|
168
|
+
{"name": "--per-page", "description": "Number of results per page", "type": "integer"},
|
|
169
|
+
{"name": "--page", "description": "Page number to display", "type": "integer"},
|
|
170
|
+
{"name": "--field", "description": "Print a single field", "type": "string"},
|
|
171
|
+
{"name": "--fields", "description": "Comma-separated list of fields", "type": "string"},
|
|
172
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml, count)", "type": "string"}
|
|
173
|
+
],
|
|
174
|
+
"examples": [
|
|
175
|
+
"wp plugin search seo",
|
|
176
|
+
"wp plugin search cache --per-page=5 --format=json",
|
|
177
|
+
"wp plugin search ecommerce --fields=name,slug,rating"
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "theme install",
|
|
182
|
+
"description": "Install one or more themes from wordpress.org, a URL, or a local zip file",
|
|
183
|
+
"args": [{"name": "theme", "type": "string", "required": true, "description": "Theme slug, URL, or path to a zip file"}],
|
|
184
|
+
"options": [
|
|
185
|
+
{"name": "--version", "description": "Install a specific theme version", "type": "string"},
|
|
186
|
+
{"name": "--activate", "description": "Activate the theme after installation"},
|
|
187
|
+
{"name": "--force", "description": "Overwrite if theme already exists"},
|
|
188
|
+
{"name": "--insecure", "description": "Retry download without certificate verification"}
|
|
189
|
+
],
|
|
190
|
+
"examples": [
|
|
191
|
+
"wp theme install flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor flavor twent twentytwentyfour",
|
|
192
|
+
"wp theme install flavor --activate",
|
|
193
|
+
"wp theme install flavor twentytwentyfour --activate",
|
|
194
|
+
"wp theme install flavor https://example.com/my-theme.zip --force"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "theme activate",
|
|
199
|
+
"description": "Activate a theme",
|
|
200
|
+
"args": [{"name": "theme", "type": "string", "required": true, "description": "Theme slug to activate"}],
|
|
201
|
+
"options": [],
|
|
202
|
+
"examples": [
|
|
203
|
+
"wp theme activate twentytwentyfour"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "theme delete",
|
|
208
|
+
"description": "Delete one or more themes",
|
|
209
|
+
"args": [{"name": "theme", "type": "string", "required": true, "description": "Theme slug to delete"}],
|
|
210
|
+
"options": [
|
|
211
|
+
{"name": "--all", "description": "Delete all inactive themes"},
|
|
212
|
+
{"name": "--force", "description": "Delete active theme without confirmation"}
|
|
213
|
+
],
|
|
214
|
+
"examples": [
|
|
215
|
+
"wp theme delete flavor twentytwentythree",
|
|
216
|
+
"wp theme delete --all"
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "theme list",
|
|
221
|
+
"description": "List all installed themes",
|
|
222
|
+
"args": [],
|
|
223
|
+
"options": [
|
|
224
|
+
{"name": "--status", "description": "Filter by theme status (active, inactive, parent)", "type": "string"},
|
|
225
|
+
{"name": "--field", "description": "Print the value of a single field", "type": "string"},
|
|
226
|
+
{"name": "--fields", "description": "Comma-separated list of fields", "type": "string"},
|
|
227
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml, count)", "type": "string"}
|
|
228
|
+
],
|
|
229
|
+
"examples": [
|
|
230
|
+
"wp theme list",
|
|
231
|
+
"wp theme list --status=inactive --format=json"
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "theme update",
|
|
236
|
+
"description": "Update one or more themes",
|
|
237
|
+
"args": [{"name": "theme", "type": "string", "required": false, "description": "Theme slug to update"}],
|
|
238
|
+
"options": [
|
|
239
|
+
{"name": "--all", "description": "Update all themes"},
|
|
240
|
+
{"name": "--version", "description": "Update to a specific version", "type": "string"},
|
|
241
|
+
{"name": "--dry-run", "description": "Preview updates"},
|
|
242
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml, summary)", "type": "string"}
|
|
243
|
+
],
|
|
244
|
+
"examples": [
|
|
245
|
+
"wp theme update --all",
|
|
246
|
+
"wp theme update twentytwentyfour --version=1.2"
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "theme search",
|
|
251
|
+
"description": "Search the wordpress.org theme directory",
|
|
252
|
+
"args": [{"name": "search", "type": "string", "required": true, "description": "Search term"}],
|
|
253
|
+
"options": [
|
|
254
|
+
{"name": "--per-page", "description": "Number of results per page", "type": "integer"},
|
|
255
|
+
{"name": "--page", "description": "Page number to display", "type": "integer"},
|
|
256
|
+
{"name": "--fields", "description": "Comma-separated list of fields", "type": "string"},
|
|
257
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml, count)", "type": "string"}
|
|
258
|
+
],
|
|
259
|
+
"examples": [
|
|
260
|
+
"wp theme search developer",
|
|
261
|
+
"wp theme search blog --per-page=5 --format=json"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "post create",
|
|
266
|
+
"description": "Create a new post",
|
|
267
|
+
"args": [],
|
|
268
|
+
"options": [
|
|
269
|
+
{"name": "--post_title", "description": "Title of the post", "type": "string"},
|
|
270
|
+
{"name": "--post_content", "description": "Content of the post", "type": "string"},
|
|
271
|
+
{"name": "--post_status", "description": "Post status (publish, draft, pending, private, future)", "type": "string"},
|
|
272
|
+
{"name": "--post_type", "description": "Post type (post, page, custom)", "type": "string"},
|
|
273
|
+
{"name": "--post_author", "description": "Author ID", "type": "integer"},
|
|
274
|
+
{"name": "--post_excerpt", "description": "Post excerpt", "type": "string"},
|
|
275
|
+
{"name": "--post_date", "description": "Post date in Y-m-d H:i:s format", "type": "string"},
|
|
276
|
+
{"name": "--post_category", "description": "Comma-separated category IDs", "type": "string"},
|
|
277
|
+
{"name": "--tags_input", "description": "Comma-separated tag names", "type": "string"},
|
|
278
|
+
{"name": "--porcelain", "description": "Output just the new post ID"},
|
|
279
|
+
{"name": "--edit", "description": "Open system editor to write content"}
|
|
280
|
+
],
|
|
281
|
+
"examples": [
|
|
282
|
+
"wp post create --post_title='Hello World' --post_status=publish",
|
|
283
|
+
"wp post create --post_type=page --post_title='About' --post_content='About us page' --post_status=draft",
|
|
284
|
+
"wp post create --post_title='Scheduled Post' --post_status=future --post_date='2026-12-01 09:00:00'",
|
|
285
|
+
"wp post create ./content.txt --post_title='From File' --post_status=publish"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "post update",
|
|
290
|
+
"description": "Update one or more existing posts",
|
|
291
|
+
"args": [{"name": "id", "type": "integer", "required": true, "description": "Post ID(s) to update"}],
|
|
292
|
+
"options": [
|
|
293
|
+
{"name": "--post_title", "description": "New title", "type": "string"},
|
|
294
|
+
{"name": "--post_content", "description": "New content", "type": "string"},
|
|
295
|
+
{"name": "--post_status", "description": "New status", "type": "string"},
|
|
296
|
+
{"name": "--post_author", "description": "New author ID", "type": "integer"},
|
|
297
|
+
{"name": "--post_excerpt", "description": "New excerpt", "type": "string"}
|
|
298
|
+
],
|
|
299
|
+
"examples": [
|
|
300
|
+
"wp post update 123 --post_title='Updated Title'",
|
|
301
|
+
"wp post update 123 456 --post_status=draft"
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "post delete",
|
|
306
|
+
"description": "Delete an existing post",
|
|
307
|
+
"args": [{"name": "id", "type": "integer", "required": true, "description": "Post ID(s) to delete"}],
|
|
308
|
+
"options": [
|
|
309
|
+
{"name": "--force", "description": "Skip trash and permanently delete"},
|
|
310
|
+
{"name": "--defer-term-counting", "description": "Avoid recounting terms"}
|
|
311
|
+
],
|
|
312
|
+
"examples": [
|
|
313
|
+
"wp post delete 123",
|
|
314
|
+
"wp post delete 123 --force",
|
|
315
|
+
"wp post delete $(wp post list --post_type=revision --format=ids)"
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "post list",
|
|
320
|
+
"description": "List posts with filtering options",
|
|
321
|
+
"args": [],
|
|
322
|
+
"options": [
|
|
323
|
+
{"name": "--post_type", "description": "Post type (post, page, any)", "type": "string"},
|
|
324
|
+
{"name": "--post_status", "description": "Post status", "type": "string"},
|
|
325
|
+
{"name": "--posts_per_page", "description": "Number of posts per page", "type": "integer"},
|
|
326
|
+
{"name": "--field", "description": "Print a single field", "type": "string"},
|
|
327
|
+
{"name": "--fields", "description": "Comma-separated list of fields", "type": "string"},
|
|
328
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml, ids, count)", "type": "string"},
|
|
329
|
+
{"name": "--orderby", "description": "Sort by field (date, title, ID, modified, rand)", "type": "string"},
|
|
330
|
+
{"name": "--order", "description": "Sort order (ASC, DESC)", "type": "string"},
|
|
331
|
+
{"name": "--s", "description": "Search keyword", "type": "string"}
|
|
332
|
+
],
|
|
333
|
+
"examples": [
|
|
334
|
+
"wp post list",
|
|
335
|
+
"wp post list --post_type=page --format=json",
|
|
336
|
+
"wp post list --post_status=draft --fields=ID,post_title,post_date",
|
|
337
|
+
"wp post list --posts_per_page=5 --orderby=date --order=DESC"
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "post get",
|
|
342
|
+
"description": "Get details about a specific post",
|
|
343
|
+
"args": [{"name": "id", "type": "integer", "required": true, "description": "Post ID"}],
|
|
344
|
+
"options": [
|
|
345
|
+
{"name": "--field", "description": "Get the value of a specific field", "type": "string"},
|
|
346
|
+
{"name": "--fields", "description": "Comma-separated list of fields", "type": "string"},
|
|
347
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml)", "type": "string"}
|
|
348
|
+
],
|
|
349
|
+
"examples": [
|
|
350
|
+
"wp post get 123",
|
|
351
|
+
"wp post get 123 --field=post_title",
|
|
352
|
+
"wp post get 123 --format=json"
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "user create",
|
|
357
|
+
"description": "Create a new WordPress user",
|
|
358
|
+
"args": [
|
|
359
|
+
{"name": "user-login", "type": "string", "required": true, "description": "User login name"},
|
|
360
|
+
{"name": "user-email", "type": "string", "required": true, "description": "User email address"}
|
|
361
|
+
],
|
|
362
|
+
"options": [
|
|
363
|
+
{"name": "--role", "description": "User role (administrator, editor, author, contributor, subscriber)", "type": "string"},
|
|
364
|
+
{"name": "--user_pass", "description": "User password", "type": "string"},
|
|
365
|
+
{"name": "--display_name", "description": "Display name", "type": "string"},
|
|
366
|
+
{"name": "--first_name", "description": "First name", "type": "string"},
|
|
367
|
+
{"name": "--last_name", "description": "Last name", "type": "string"},
|
|
368
|
+
{"name": "--user_url", "description": "User website URL", "type": "string"},
|
|
369
|
+
{"name": "--send-email", "description": "Send user notification email"},
|
|
370
|
+
{"name": "--porcelain", "description": "Output just the new user ID"}
|
|
371
|
+
],
|
|
372
|
+
"examples": [
|
|
373
|
+
"wp user create bob bob@example.com --role=author",
|
|
374
|
+
"wp user create alice alice@example.com --role=editor --first_name=Alice --last_name=Smith --send-email",
|
|
375
|
+
"wp user create admin2 admin2@example.com --role=administrator --user_pass=strongpassword"
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "user update",
|
|
380
|
+
"description": "Update an existing user",
|
|
381
|
+
"args": [{"name": "user", "type": "string", "required": true, "description": "User ID, login, or email"}],
|
|
382
|
+
"options": [
|
|
383
|
+
{"name": "--user_pass", "description": "New password", "type": "string"},
|
|
384
|
+
{"name": "--display_name", "description": "New display name", "type": "string"},
|
|
385
|
+
{"name": "--first_name", "description": "First name", "type": "string"},
|
|
386
|
+
{"name": "--last_name", "description": "Last name", "type": "string"},
|
|
387
|
+
{"name": "--role", "description": "New role", "type": "string"},
|
|
388
|
+
{"name": "--user_email", "description": "New email", "type": "string"}
|
|
389
|
+
],
|
|
390
|
+
"examples": [
|
|
391
|
+
"wp user update 123 --display_name='John Doe'",
|
|
392
|
+
"wp user update bob --role=editor",
|
|
393
|
+
"wp user update bob@example.com --user_pass=newpassword"
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "user delete",
|
|
398
|
+
"description": "Delete one or more users",
|
|
399
|
+
"args": [{"name": "user", "type": "string", "required": true, "description": "User ID, login, or email"}],
|
|
400
|
+
"options": [
|
|
401
|
+
{"name": "--reassign", "description": "Reassign posts to this user ID", "type": "integer"},
|
|
402
|
+
{"name": "--yes", "description": "Skip confirmation"}
|
|
403
|
+
],
|
|
404
|
+
"examples": [
|
|
405
|
+
"wp user delete 123 --reassign=1",
|
|
406
|
+
"wp user delete bob --yes"
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "user list",
|
|
411
|
+
"description": "List all WordPress users",
|
|
412
|
+
"args": [],
|
|
413
|
+
"options": [
|
|
414
|
+
{"name": "--role", "description": "Filter by role", "type": "string"},
|
|
415
|
+
{"name": "--field", "description": "Single field to print", "type": "string"},
|
|
416
|
+
{"name": "--fields", "description": "Comma-separated fields", "type": "string"},
|
|
417
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml, ids, count)", "type": "string"},
|
|
418
|
+
{"name": "--orderby", "description": "Order by (ID, login, nicename, email, registered)", "type": "string"},
|
|
419
|
+
{"name": "--order", "description": "Sort order (ASC, DESC)", "type": "string"}
|
|
420
|
+
],
|
|
421
|
+
"examples": [
|
|
422
|
+
"wp user list",
|
|
423
|
+
"wp user list --role=administrator --format=json",
|
|
424
|
+
"wp user list --fields=ID,user_login,user_email,roles"
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "user get",
|
|
429
|
+
"description": "Get details about a specific user",
|
|
430
|
+
"args": [{"name": "user", "type": "string", "required": true, "description": "User ID, login, or email"}],
|
|
431
|
+
"options": [
|
|
432
|
+
{"name": "--field", "description": "Get a single field", "type": "string"},
|
|
433
|
+
{"name": "--fields", "description": "Comma-separated fields", "type": "string"},
|
|
434
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml)", "type": "string"}
|
|
435
|
+
],
|
|
436
|
+
"examples": [
|
|
437
|
+
"wp user get 1",
|
|
438
|
+
"wp user get admin --format=json",
|
|
439
|
+
"wp user get admin --field=user_email"
|
|
440
|
+
]
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "db create",
|
|
444
|
+
"description": "Create the database defined in wp-config.php",
|
|
445
|
+
"args": [],
|
|
446
|
+
"options": [
|
|
447
|
+
{"name": "--dbuser", "description": "Database username", "type": "string"},
|
|
448
|
+
{"name": "--dbpass", "description": "Database password", "type": "string"}
|
|
449
|
+
],
|
|
450
|
+
"examples": [
|
|
451
|
+
"wp db create"
|
|
452
|
+
]
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"name": "db drop",
|
|
456
|
+
"description": "Delete the database defined in wp-config.php",
|
|
457
|
+
"args": [],
|
|
458
|
+
"options": [
|
|
459
|
+
{"name": "--yes", "description": "Skip confirmation"}
|
|
460
|
+
],
|
|
461
|
+
"examples": [
|
|
462
|
+
"wp db drop --yes"
|
|
463
|
+
]
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "db optimize",
|
|
467
|
+
"description": "Optimize the WordPress database",
|
|
468
|
+
"args": [],
|
|
469
|
+
"options": [],
|
|
470
|
+
"examples": [
|
|
471
|
+
"wp db optimize"
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "db repair",
|
|
476
|
+
"description": "Repair the WordPress database",
|
|
477
|
+
"args": [],
|
|
478
|
+
"options": [],
|
|
479
|
+
"examples": [
|
|
480
|
+
"wp db repair"
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "db export",
|
|
485
|
+
"description": "Export the database to a file or STDOUT",
|
|
486
|
+
"args": [{"name": "file", "type": "string", "required": false, "description": "Output file path (defaults to STDOUT)"}],
|
|
487
|
+
"options": [
|
|
488
|
+
{"name": "--tables", "description": "Comma-separated list of specific tables to export", "type": "string"},
|
|
489
|
+
{"name": "--exclude_tables", "description": "Tables to exclude", "type": "string"},
|
|
490
|
+
{"name": "--porcelain", "description": "Output filename only"},
|
|
491
|
+
{"name": "--add-drop-table", "description": "Include DROP TABLE statements"}
|
|
492
|
+
],
|
|
493
|
+
"examples": [
|
|
494
|
+
"wp db export",
|
|
495
|
+
"wp db export backup.sql",
|
|
496
|
+
"wp db export --tables=wp_posts,wp_postmeta backup_posts.sql",
|
|
497
|
+
"wp db export - | gzip > backup.sql.gz"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "db import",
|
|
502
|
+
"description": "Import a database from a file or STDIN",
|
|
503
|
+
"args": [{"name": "file", "type": "string", "required": false, "description": "Input file path (defaults to STDIN)"}],
|
|
504
|
+
"options": [
|
|
505
|
+
{"name": "--skip-optimization", "description": "Skip setting key_buffer_size"}
|
|
506
|
+
],
|
|
507
|
+
"examples": [
|
|
508
|
+
"wp db import backup.sql",
|
|
509
|
+
"gunzip < backup.sql.gz | wp db import -"
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "db query",
|
|
514
|
+
"description": "Execute a SQL query against the database",
|
|
515
|
+
"args": [{"name": "query", "type": "string", "required": false, "description": "SQL query to execute"}],
|
|
516
|
+
"options": [],
|
|
517
|
+
"examples": [
|
|
518
|
+
"wp db query 'SELECT * FROM wp_options LIMIT 10'",
|
|
519
|
+
"wp db query 'SELECT COUNT(*) FROM wp_posts WHERE post_status=\"publish\"'",
|
|
520
|
+
"wp db query < query.sql"
|
|
521
|
+
]
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "option get",
|
|
525
|
+
"description": "Get the value of a site option",
|
|
526
|
+
"args": [{"name": "key", "type": "string", "required": true, "description": "Option key"}],
|
|
527
|
+
"options": [
|
|
528
|
+
{"name": "--format", "description": "Output format (var_export, json, yaml)", "type": "string"}
|
|
529
|
+
],
|
|
530
|
+
"examples": [
|
|
531
|
+
"wp option get siteurl",
|
|
532
|
+
"wp option get blogname",
|
|
533
|
+
"wp option get active_plugins --format=json"
|
|
534
|
+
]
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "option update",
|
|
538
|
+
"description": "Update a site option value",
|
|
539
|
+
"args": [
|
|
540
|
+
{"name": "key", "type": "string", "required": true, "description": "Option key"},
|
|
541
|
+
{"name": "value", "type": "string", "required": true, "description": "New value"}
|
|
542
|
+
],
|
|
543
|
+
"options": [
|
|
544
|
+
{"name": "--autoload", "description": "Set autoload (yes or no)", "type": "string"},
|
|
545
|
+
{"name": "--format", "description": "Format of the value (plaintext, json)", "type": "string"}
|
|
546
|
+
],
|
|
547
|
+
"examples": [
|
|
548
|
+
"wp option update blogname 'My Awesome Site'",
|
|
549
|
+
"wp option update siteurl 'https://example.com'",
|
|
550
|
+
"wp option update blogdescription 'Just another WordPress site'"
|
|
551
|
+
]
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "option delete",
|
|
555
|
+
"description": "Delete a site option",
|
|
556
|
+
"args": [{"name": "key", "type": "string", "required": true, "description": "Option key to delete"}],
|
|
557
|
+
"options": [],
|
|
558
|
+
"examples": [
|
|
559
|
+
"wp option delete my_custom_option"
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"name": "option list",
|
|
564
|
+
"description": "List site options",
|
|
565
|
+
"args": [],
|
|
566
|
+
"options": [
|
|
567
|
+
{"name": "--search", "description": "Filter by option name pattern", "type": "string"},
|
|
568
|
+
{"name": "--autoload", "description": "Filter by autoload status", "type": "string"},
|
|
569
|
+
{"name": "--fields", "description": "Comma-separated fields", "type": "string"},
|
|
570
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml, count)", "type": "string"}
|
|
571
|
+
],
|
|
572
|
+
"examples": [
|
|
573
|
+
"wp option list",
|
|
574
|
+
"wp option list --search='*siteurl*'",
|
|
575
|
+
"wp option list --autoload=yes --format=json"
|
|
576
|
+
]
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "config create",
|
|
580
|
+
"description": "Generate a wp-config.php file",
|
|
581
|
+
"args": [],
|
|
582
|
+
"options": [
|
|
583
|
+
{"name": "--dbname", "description": "Database name", "type": "string"},
|
|
584
|
+
{"name": "--dbuser", "description": "Database user", "type": "string"},
|
|
585
|
+
{"name": "--dbpass", "description": "Database password", "type": "string"},
|
|
586
|
+
{"name": "--dbhost", "description": "Database host (default: localhost)", "type": "string"},
|
|
587
|
+
{"name": "--dbprefix", "description": "Table prefix (default: wp_)", "type": "string"},
|
|
588
|
+
{"name": "--dbcharset", "description": "Database charset (default: utf8)", "type": "string"},
|
|
589
|
+
{"name": "--locale", "description": "WordPress locale", "type": "string"},
|
|
590
|
+
{"name": "--skip-salts", "description": "Skip generating unique auth keys and salts"},
|
|
591
|
+
{"name": "--skip-check", "description": "Skip database connection check"},
|
|
592
|
+
{"name": "--force", "description": "Overwrite existing wp-config.php"}
|
|
593
|
+
],
|
|
594
|
+
"examples": [
|
|
595
|
+
"wp config create --dbname=wordpress --dbuser=root --dbpass=secret",
|
|
596
|
+
"wp config create --dbname=wp --dbuser=wp_user --dbpass=pw --dbhost=db.example.com --dbprefix=mysite_"
|
|
597
|
+
]
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"name": "config get",
|
|
601
|
+
"description": "Get the value of a wp-config.php constant or variable",
|
|
602
|
+
"args": [{"name": "name", "type": "string", "required": true, "description": "Constant or variable name"}],
|
|
603
|
+
"options": [
|
|
604
|
+
{"name": "--type", "description": "Type of config value (constant, variable)", "type": "string"},
|
|
605
|
+
{"name": "--format", "description": "Output format (var_export, json, yaml)", "type": "string"}
|
|
606
|
+
],
|
|
607
|
+
"examples": [
|
|
608
|
+
"wp config get DB_NAME",
|
|
609
|
+
"wp config get DB_HOST",
|
|
610
|
+
"wp config get table_prefix --type=variable"
|
|
611
|
+
]
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"name": "config set",
|
|
615
|
+
"description": "Set the value of a wp-config.php constant or variable",
|
|
616
|
+
"args": [
|
|
617
|
+
{"name": "name", "type": "string", "required": true, "description": "Constant or variable name"},
|
|
618
|
+
{"name": "value", "type": "string", "required": true, "description": "Value to set"}
|
|
619
|
+
],
|
|
620
|
+
"options": [
|
|
621
|
+
{"name": "--type", "description": "Type of config value (constant, variable)", "type": "string"},
|
|
622
|
+
{"name": "--raw", "description": "Place the value without wrapping in quotes"},
|
|
623
|
+
{"name": "--add", "description": "Add the value if it doesn't exist"}
|
|
624
|
+
],
|
|
625
|
+
"examples": [
|
|
626
|
+
"wp config set WP_DEBUG true --raw",
|
|
627
|
+
"wp config set WP_DEBUG_LOG true --raw",
|
|
628
|
+
"wp config set DISALLOW_FILE_EDIT true --raw",
|
|
629
|
+
"wp config set WP_MEMORY_LIMIT '256M'"
|
|
630
|
+
]
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"name": "config delete",
|
|
634
|
+
"description": "Delete a constant or variable from wp-config.php",
|
|
635
|
+
"args": [{"name": "name", "type": "string", "required": true, "description": "Constant or variable name"}],
|
|
636
|
+
"options": [
|
|
637
|
+
{"name": "--type", "description": "Type of config value (constant, variable)", "type": "string"}
|
|
638
|
+
],
|
|
639
|
+
"examples": [
|
|
640
|
+
"wp config delete WP_DEBUG"
|
|
641
|
+
]
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"name": "config list",
|
|
645
|
+
"description": "List variables, constants, and file includes defined in wp-config.php",
|
|
646
|
+
"args": [],
|
|
647
|
+
"options": [
|
|
648
|
+
{"name": "--fields", "description": "Comma-separated fields to display", "type": "string"},
|
|
649
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml)", "type": "string"},
|
|
650
|
+
{"name": "--strict", "description": "Only output values from wp-config.php itself"}
|
|
651
|
+
],
|
|
652
|
+
"examples": [
|
|
653
|
+
"wp config list",
|
|
654
|
+
"wp config list --format=json",
|
|
655
|
+
"wp config list --fields=name,value --strict"
|
|
656
|
+
]
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "media import",
|
|
660
|
+
"description": "Import files as attachments into the WordPress media library",
|
|
661
|
+
"args": [{"name": "file", "type": "string", "required": true, "description": "Path or URL to file(s)"}],
|
|
662
|
+
"options": [
|
|
663
|
+
{"name": "--title", "description": "Attachment title", "type": "string"},
|
|
664
|
+
{"name": "--caption", "description": "Attachment caption", "type": "string"},
|
|
665
|
+
{"name": "--alt", "description": "Alt text", "type": "string"},
|
|
666
|
+
{"name": "--desc", "description": "Attachment description", "type": "string"},
|
|
667
|
+
{"name": "--post_id", "description": "Attach to a specific post ID", "type": "integer"},
|
|
668
|
+
{"name": "--featured_image", "description": "Set as the featured image of the post"},
|
|
669
|
+
{"name": "--porcelain", "description": "Output just the attachment IDs"},
|
|
670
|
+
{"name": "--preserve-filetime", "description": "Preserve file modified time"}
|
|
671
|
+
],
|
|
672
|
+
"examples": [
|
|
673
|
+
"wp media import /path/to/image.jpg",
|
|
674
|
+
"wp media import https://example.com/photo.jpg --title='My Photo'",
|
|
675
|
+
"wp media import ~/images/*.jpg --post_id=123 --featured_image"
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "search-replace",
|
|
680
|
+
"description": "Search and replace strings in the database, handling serialized data",
|
|
681
|
+
"args": [
|
|
682
|
+
{"name": "old", "type": "string", "required": true, "description": "String to search for"},
|
|
683
|
+
{"name": "new", "type": "string", "required": true, "description": "Replacement string"}
|
|
684
|
+
],
|
|
685
|
+
"options": [
|
|
686
|
+
{"name": "--dry-run", "description": "Show report without making changes"},
|
|
687
|
+
{"name": "--precise", "description": "Force regex-based search"},
|
|
688
|
+
{"name": "--recurse-objects", "description": "Recurse into nested objects"},
|
|
689
|
+
{"name": "--all-tables-with-prefix", "description": "Replace in all tables with the configured prefix"},
|
|
690
|
+
{"name": "--all-tables", "description": "Replace in all tables"},
|
|
691
|
+
{"name": "--export", "description": "Write transformed data as SQL to file", "type": "string"},
|
|
692
|
+
{"name": "--network", "description": "Search and replace on all network sites"},
|
|
693
|
+
{"name": "--skip-tables", "description": "Tables to skip", "type": "string"},
|
|
694
|
+
{"name": "--skip-columns", "description": "Columns to skip", "type": "string"},
|
|
695
|
+
{"name": "--include-columns", "description": "Only include specific columns", "type": "string"},
|
|
696
|
+
{"name": "--format", "description": "Output format (table, count)", "type": "string"}
|
|
697
|
+
],
|
|
698
|
+
"examples": [
|
|
699
|
+
"wp search-replace 'http://old-domain.com' 'https://new-domain.com' --dry-run",
|
|
700
|
+
"wp search-replace 'http://old-domain.com' 'https://new-domain.com' --all-tables-with-prefix",
|
|
701
|
+
"wp search-replace 'foo' 'bar' wp_posts wp_postmeta",
|
|
702
|
+
"wp search-replace '/staging\\.example\\.com/' 'example.com' --regex"
|
|
703
|
+
]
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "cache flush",
|
|
707
|
+
"description": "Flush the object cache",
|
|
708
|
+
"args": [],
|
|
709
|
+
"options": [],
|
|
710
|
+
"examples": [
|
|
711
|
+
"wp cache flush"
|
|
712
|
+
]
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"name": "cache clear",
|
|
716
|
+
"description": "Clear a specific cache group or all transients",
|
|
717
|
+
"args": [],
|
|
718
|
+
"options": [
|
|
719
|
+
{"name": "--expired", "description": "Only clear expired transients"},
|
|
720
|
+
{"name": "--all", "description": "Clear all transients (including non-expired)"},
|
|
721
|
+
{"name": "--network", "description": "Clear network transients"}
|
|
722
|
+
],
|
|
723
|
+
"examples": [
|
|
724
|
+
"wp transient delete --all",
|
|
725
|
+
"wp transient delete --expired",
|
|
726
|
+
"wp cache flush"
|
|
727
|
+
]
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"name": "rewrite flush",
|
|
731
|
+
"description": "Flush rewrite rules",
|
|
732
|
+
"args": [],
|
|
733
|
+
"options": [
|
|
734
|
+
{"name": "--hard", "description": "Perform a hard flush by updating .htaccess or web.config"}
|
|
735
|
+
],
|
|
736
|
+
"examples": [
|
|
737
|
+
"wp rewrite flush",
|
|
738
|
+
"wp rewrite flush --hard"
|
|
739
|
+
]
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "rewrite structure",
|
|
743
|
+
"description": "Update the permalink structure",
|
|
744
|
+
"args": [{"name": "permastruct", "type": "string", "required": true, "description": "Permalink structure string"}],
|
|
745
|
+
"options": [
|
|
746
|
+
{"name": "--category-base", "description": "Category base prefix", "type": "string"},
|
|
747
|
+
{"name": "--tag-base", "description": "Tag base prefix", "type": "string"},
|
|
748
|
+
{"name": "--hard", "description": "Perform a hard flush"}
|
|
749
|
+
],
|
|
750
|
+
"examples": [
|
|
751
|
+
"wp rewrite structure '/%year%/%monthnum%/%postname%/'",
|
|
752
|
+
"wp rewrite structure '/%postname%/' --hard",
|
|
753
|
+
"wp rewrite structure '/%category%/%postname%/' --category-base=topics"
|
|
754
|
+
]
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"name": "cron event list",
|
|
758
|
+
"description": "List scheduled cron events",
|
|
759
|
+
"args": [],
|
|
760
|
+
"options": [
|
|
761
|
+
{"name": "--fields", "description": "Comma-separated fields", "type": "string"},
|
|
762
|
+
{"name": "--format", "description": "Output format (table, csv, json, yaml, ids, count)", "type": "string"}
|
|
763
|
+
],
|
|
764
|
+
"examples": [
|
|
765
|
+
"wp cron event list",
|
|
766
|
+
"wp cron event list --format=json",
|
|
767
|
+
"wp cron event list --fields=hook,next_run_relative"
|
|
768
|
+
]
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"name": "cron event run",
|
|
772
|
+
"description": "Run a cron event immediately",
|
|
773
|
+
"args": [{"name": "hook", "type": "string", "required": true, "description": "Name of the cron hook to run"}],
|
|
774
|
+
"options": [
|
|
775
|
+
{"name": "--due-now", "description": "Run all events that are due now"},
|
|
776
|
+
{"name": "--all", "description": "Run all registered events"}
|
|
777
|
+
],
|
|
778
|
+
"examples": [
|
|
779
|
+
"wp cron event run wp_cron",
|
|
780
|
+
"wp cron event run --due-now",
|
|
781
|
+
"wp cron event run --all"
|
|
782
|
+
]
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"name": "cron event schedule",
|
|
786
|
+
"description": "Schedule a new cron event",
|
|
787
|
+
"args": [
|
|
788
|
+
{"name": "hook", "type": "string", "required": true, "description": "Hook name for the event"},
|
|
789
|
+
{"name": "next-run", "type": "string", "required": false, "description": "Unix timestamp or relative time for next run"}
|
|
790
|
+
],
|
|
791
|
+
"options": [
|
|
792
|
+
{"name": "--recurrence", "description": "Recurrence schedule (hourly, twicedaily, daily, weekly)", "type": "string"}
|
|
793
|
+
],
|
|
794
|
+
"examples": [
|
|
795
|
+
"wp cron event schedule my_custom_hook now hourly",
|
|
796
|
+
"wp cron event schedule cleanup_task '+1 hour' --recurrence=daily"
|
|
797
|
+
]
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"name": "maintenance-mode activate",
|
|
801
|
+
"description": "Activate maintenance mode by creating .maintenance file",
|
|
802
|
+
"args": [],
|
|
803
|
+
"options": [
|
|
804
|
+
{"name": "--force", "description": "Force enable even if already active"}
|
|
805
|
+
],
|
|
806
|
+
"examples": [
|
|
807
|
+
"wp maintenance-mode activate"
|
|
808
|
+
]
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"name": "maintenance-mode deactivate",
|
|
812
|
+
"description": "Deactivate maintenance mode by removing .maintenance file",
|
|
813
|
+
"args": [],
|
|
814
|
+
"options": [],
|
|
815
|
+
"examples": [
|
|
816
|
+
"wp maintenance-mode deactivate"
|
|
817
|
+
]
|
|
818
|
+
}
|
|
819
|
+
],
|
|
820
|
+
"globalOptions": [
|
|
821
|
+
{"name": "--path", "description": "Path to the WordPress files", "type": "string"},
|
|
822
|
+
{"name": "--url", "description": "Pretend the request came from the given URL", "type": "string"},
|
|
823
|
+
{"name": "--user", "description": "Set the WordPress user for the command", "type": "string"},
|
|
824
|
+
{"name": "--skip-plugins", "description": "Skip loading all plugins or a comma-separated list of plugins", "type": "string"},
|
|
825
|
+
{"name": "--skip-themes", "description": "Skip loading all themes or a comma-separated list of themes", "type": "string"},
|
|
826
|
+
{"name": "--quiet", "short": "-q", "description": "Suppress informational messages"},
|
|
827
|
+
{"name": "--debug", "description": "Show all PHP errors and add verbosity to WP-CLI output"},
|
|
828
|
+
{"name": "--color", "description": "Force colored output"},
|
|
829
|
+
{"name": "--no-color", "description": "Disable colored output"},
|
|
830
|
+
{"name": "--format", "description": "Output format (table, json, csv, yaml, count)", "type": "string"},
|
|
831
|
+
{"name": "--prompt", "description": "Prompt the user to enter values for all command arguments"},
|
|
832
|
+
{"name": "--exec", "description": "Execute PHP code before running the command", "type": "string"},
|
|
833
|
+
{"name": "--require", "description": "Load PHP file before running the command", "type": "string"},
|
|
834
|
+
{"name": "--version", "short": "-V", "description": "Show WP-CLI version"},
|
|
835
|
+
{"name": "--help", "short": "-h", "description": "Show help for a command"}
|
|
836
|
+
],
|
|
837
|
+
"examples": [
|
|
838
|
+
"wp core download && wp config create --dbname=wp --dbuser=root --dbpass='' && wp db create && wp core install --url=localhost --title='Site' --admin_user=admin --admin_password=admin --admin_email=admin@local.test",
|
|
839
|
+
"wp plugin list --status=active --format=json",
|
|
840
|
+
"wp search-replace 'http://old.com' 'https://new.com' --all-tables --dry-run",
|
|
841
|
+
"wp db export backup-$(date +%Y%m%d).sql",
|
|
842
|
+
"wp user create editor editor@example.com --role=editor --send-email",
|
|
843
|
+
"wp cache flush && wp rewrite flush --hard",
|
|
844
|
+
"wp post list --post_type=post --post_status=publish --format=ids | xargs wp post delete --force",
|
|
845
|
+
"wp cron event list --format=table"
|
|
846
|
+
],
|
|
847
|
+
"relatedCommands": ["php", "composer", "mysql"],
|
|
848
|
+
"contextEngine": {
|
|
849
|
+
"detectors": [
|
|
850
|
+
{"name": "wp_config_exists", "description": "Detect wp-config.php in current or parent directories", "command": "test -f wp-config.php && echo 'found' || test -f ../wp-config.php && echo 'found' || echo 'not_found'", "parser": "lines", "cacheFor": 60},
|
|
851
|
+
{"name": "wp_content_dir", "description": "Detect wp-content directory indicating WordPress installation", "command": "test -d wp-content && echo 'found' || test -d ../wp-content && echo 'found' || echo 'not_found'", "parser": "lines", "cacheFor": 60},
|
|
852
|
+
{"name": "wp_cli_version", "description": "Check installed WP-CLI version", "command": "wp cli version 2>/dev/null", "parser": "lines", "cacheFor": 300},
|
|
853
|
+
{"name": "wp_plugins_active", "description": "List currently active plugins", "command": "wp plugin list --status=active --field=name 2>/dev/null", "parser": "lines", "cacheFor": 30},
|
|
854
|
+
{"name": "wp_theme_active", "description": "Get the currently active theme", "command": "wp theme list --status=active --field=name 2>/dev/null", "parser": "lines", "cacheFor": 30}
|
|
855
|
+
]
|
|
856
|
+
}
|
|
857
|
+
}
|