@loopress/cli 0.21.0 → 0.23.0
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/README.md +457 -67
- package/dist/commands/acf/list.d.ts +2 -2
- package/dist/commands/acf/list.js +2 -5
- package/dist/commands/acf/pull.js +9 -22
- package/dist/commands/acf/push.js +3 -6
- package/dist/commands/api/list.js +2 -1
- package/dist/commands/api/publish.js +6 -22
- package/dist/commands/api/pull.js +12 -17
- package/dist/commands/api/push.js +7 -10
- package/dist/commands/app/list.d.ts +17 -0
- package/dist/commands/app/list.js +35 -0
- package/dist/commands/app/pull.d.ts +27 -0
- package/dist/commands/app/pull.js +94 -0
- package/dist/commands/app/push.d.ts +28 -0
- package/dist/commands/app/push.js +130 -0
- package/dist/commands/app/remove.d.ts +20 -0
- package/dist/commands/app/remove.js +42 -0
- package/dist/commands/composer/push.d.ts +1 -0
- package/dist/commands/composer/push.js +43 -19
- package/dist/commands/dev.js +1 -1
- package/dist/commands/doctor.js +2 -1
- package/dist/commands/form/list.d.ts +2 -4
- package/dist/commands/form/list.js +3 -10
- package/dist/commands/form/pull.js +15 -24
- package/dist/commands/form/push.js +17 -42
- package/dist/commands/init.js +1 -0
- package/dist/commands/login.js +6 -2
- package/dist/commands/logout.js +2 -1
- package/dist/commands/page/pull.js +17 -28
- package/dist/commands/page/push.js +27 -52
- package/dist/commands/plugin/add.d.ts +1 -0
- package/dist/commands/plugin/add.js +18 -8
- package/dist/commands/plugin/audit.d.ts +30 -0
- package/dist/commands/plugin/audit.js +138 -0
- package/dist/commands/plugin/pull.d.ts +1 -1
- package/dist/commands/plugin/pull.js +13 -15
- package/dist/commands/plugin/push.d.ts +14 -5
- package/dist/commands/plugin/push.js +171 -60
- package/dist/commands/plugin/status.d.ts +22 -0
- package/dist/commands/plugin/status.js +65 -0
- package/dist/commands/project/config.js +4 -1
- package/dist/commands/project/list.d.ts +16 -1
- package/dist/commands/project/list.js +22 -16
- package/dist/commands/project/pull.js +3 -2
- package/dist/commands/project/push.d.ts +5 -0
- package/dist/commands/project/push.js +79 -58
- package/dist/commands/promote.d.ts +18 -0
- package/dist/commands/promote.js +90 -0
- package/dist/commands/pull.d.ts +12 -0
- package/dist/commands/pull.js +51 -0
- package/dist/commands/push.d.ts +13 -0
- package/dist/commands/push.js +57 -0
- package/dist/commands/seo/list.d.ts +9 -2
- package/dist/commands/seo/list.js +9 -11
- package/dist/commands/seo/pull.js +14 -37
- package/dist/commands/seo/push.js +24 -48
- package/dist/commands/snippet/list.js +2 -1
- package/dist/commands/snippet/publish.js +5 -21
- package/dist/commands/snippet/pull.js +15 -20
- package/dist/commands/snippet/push.js +21 -30
- package/dist/commands/theme/add.d.ts +13 -0
- package/dist/commands/theme/add.js +35 -0
- package/dist/commands/theme/pull.d.ts +21 -0
- package/dist/commands/theme/pull.js +37 -0
- package/dist/commands/theme/push.d.ts +23 -0
- package/dist/commands/theme/push.js +130 -0
- package/dist/commands/theme/status.d.ts +20 -0
- package/dist/commands/theme/status.js +51 -0
- package/dist/commands/validate.d.ts +8 -0
- package/dist/commands/validate.js +24 -0
- package/dist/lib/app-manifest.d.ts +36 -0
- package/dist/lib/app-manifest.js +162 -0
- package/dist/lib/base.d.ts +10 -0
- package/dist/lib/base.js +56 -22
- package/dist/lib/guard-production-push.d.ts +12 -0
- package/dist/lib/guard-production-push.js +20 -0
- package/dist/lib/load-snippets.js +65 -60
- package/dist/lib/local-callback-server.js +9 -4
- package/dist/lib/push-command.d.ts +3 -0
- package/dist/lib/push-command.js +22 -15
- package/dist/lib/put-or-create.d.ts +13 -0
- package/dist/lib/put-or-create.js +19 -0
- package/dist/lib/readdir-tolerant.d.ts +5 -0
- package/dist/lib/readdir-tolerant.js +11 -0
- package/dist/lib/resolve-linked-project.d.ts +8 -0
- package/dist/lib/resolve-linked-project.js +27 -0
- package/dist/lib/validate-local.d.ts +10 -0
- package/dist/lib/validate-local.js +183 -0
- package/dist/types/plugin.d.ts +1 -0
- package/dist/types/project-config.generated.d.ts +11 -1
- package/dist/utils/plugin-sync.d.ts +26 -0
- package/dist/utils/plugin-sync.js +31 -0
- package/dist/utils/plugins.d.ts +15 -2
- package/dist/utils/plugins.js +57 -12
- package/dist/utils/pluralize.d.ts +1 -0
- package/dist/utils/pluralize.js +5 -0
- package/dist/utils/themes.d.ts +30 -0
- package/dist/utils/themes.js +29 -0
- package/dist/utils/version.d.ts +2 -0
- package/dist/utils/version.js +21 -0
- package/oclif.manifest.json +986 -125
- package/package.json +25 -20
- package/schemas/project-config.schema.json +22 -4
package/oclif.manifest.json
CHANGED
|
@@ -157,6 +157,182 @@
|
|
|
157
157
|
"logout.js"
|
|
158
158
|
]
|
|
159
159
|
},
|
|
160
|
+
"promote": {
|
|
161
|
+
"aliases": [],
|
|
162
|
+
"args": {
|
|
163
|
+
"from": {
|
|
164
|
+
"description": "Environment to copy the configuration from",
|
|
165
|
+
"name": "from",
|
|
166
|
+
"required": true
|
|
167
|
+
},
|
|
168
|
+
"to": {
|
|
169
|
+
"description": "Environment to copy the configuration to",
|
|
170
|
+
"name": "to",
|
|
171
|
+
"required": true
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"description": "Copy every tracked resource from one environment to another by pulling from <from> then pushing to <to>. Local tracked files are overwritten with <from> in the process.",
|
|
175
|
+
"examples": [
|
|
176
|
+
"$ lps promote staging production",
|
|
177
|
+
"$ lps promote production staging --dry-run"
|
|
178
|
+
],
|
|
179
|
+
"flags": {
|
|
180
|
+
"dry-run": {
|
|
181
|
+
"char": "d",
|
|
182
|
+
"description": "Show what would change without making changes",
|
|
183
|
+
"name": "dry-run",
|
|
184
|
+
"allowNo": false,
|
|
185
|
+
"type": "boolean"
|
|
186
|
+
},
|
|
187
|
+
"yes": {
|
|
188
|
+
"char": "y",
|
|
189
|
+
"description": "Answer yes to confirmation prompts",
|
|
190
|
+
"name": "yes",
|
|
191
|
+
"allowNo": false,
|
|
192
|
+
"type": "boolean"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"hasDynamicHelp": false,
|
|
196
|
+
"hiddenAliases": [],
|
|
197
|
+
"id": "promote",
|
|
198
|
+
"pluginAlias": "@loopress/cli",
|
|
199
|
+
"pluginName": "@loopress/cli",
|
|
200
|
+
"pluginType": "core",
|
|
201
|
+
"strict": true,
|
|
202
|
+
"enableJsonFlag": false,
|
|
203
|
+
"isESM": true,
|
|
204
|
+
"relativePath": [
|
|
205
|
+
"dist",
|
|
206
|
+
"commands",
|
|
207
|
+
"promote.js"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"pull": {
|
|
211
|
+
"aliases": [],
|
|
212
|
+
"args": {},
|
|
213
|
+
"description": "Pull all content, plugins, composer dependencies, ACF, API routes, forms, pages, SEO, and snippets, from WordPress",
|
|
214
|
+
"examples": [
|
|
215
|
+
"$ lps pull",
|
|
216
|
+
"$ lps pull --env staging",
|
|
217
|
+
"$ lps pull --dry-run"
|
|
218
|
+
],
|
|
219
|
+
"flags": {
|
|
220
|
+
"env": {
|
|
221
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
222
|
+
"name": "env",
|
|
223
|
+
"hasDynamicHelp": false,
|
|
224
|
+
"multiple": false,
|
|
225
|
+
"type": "option"
|
|
226
|
+
},
|
|
227
|
+
"dry-run": {
|
|
228
|
+
"char": "d",
|
|
229
|
+
"description": "Show what would change without making changes",
|
|
230
|
+
"name": "dry-run",
|
|
231
|
+
"allowNo": false,
|
|
232
|
+
"type": "boolean"
|
|
233
|
+
},
|
|
234
|
+
"yes": {
|
|
235
|
+
"char": "y",
|
|
236
|
+
"description": "Answer yes to confirmation prompts",
|
|
237
|
+
"name": "yes",
|
|
238
|
+
"allowNo": false,
|
|
239
|
+
"type": "boolean"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"hasDynamicHelp": false,
|
|
243
|
+
"hiddenAliases": [],
|
|
244
|
+
"id": "pull",
|
|
245
|
+
"pluginAlias": "@loopress/cli",
|
|
246
|
+
"pluginName": "@loopress/cli",
|
|
247
|
+
"pluginType": "core",
|
|
248
|
+
"strict": true,
|
|
249
|
+
"enableJsonFlag": false,
|
|
250
|
+
"dryRunFlag": {
|
|
251
|
+
"dry-run": {
|
|
252
|
+
"char": "d",
|
|
253
|
+
"description": "Show what would change without making changes",
|
|
254
|
+
"allowNo": false,
|
|
255
|
+
"type": "boolean"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"yesFlag": {
|
|
259
|
+
"yes": {
|
|
260
|
+
"char": "y",
|
|
261
|
+
"description": "Answer yes to confirmation prompts",
|
|
262
|
+
"allowNo": false,
|
|
263
|
+
"type": "boolean"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"isESM": true,
|
|
267
|
+
"relativePath": [
|
|
268
|
+
"dist",
|
|
269
|
+
"commands",
|
|
270
|
+
"pull.js"
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
"push": {
|
|
274
|
+
"aliases": [],
|
|
275
|
+
"args": {},
|
|
276
|
+
"description": "Push all local content, plugins, composer dependencies, ACF, API routes, forms, pages, SEO, and snippets, to WordPress",
|
|
277
|
+
"examples": [
|
|
278
|
+
"$ lps push",
|
|
279
|
+
"$ lps push --env staging",
|
|
280
|
+
"$ lps push --dry-run"
|
|
281
|
+
],
|
|
282
|
+
"flags": {
|
|
283
|
+
"env": {
|
|
284
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
285
|
+
"name": "env",
|
|
286
|
+
"hasDynamicHelp": false,
|
|
287
|
+
"multiple": false,
|
|
288
|
+
"type": "option"
|
|
289
|
+
},
|
|
290
|
+
"dry-run": {
|
|
291
|
+
"char": "d",
|
|
292
|
+
"description": "Show what would change without making changes",
|
|
293
|
+
"name": "dry-run",
|
|
294
|
+
"allowNo": false,
|
|
295
|
+
"type": "boolean"
|
|
296
|
+
},
|
|
297
|
+
"yes": {
|
|
298
|
+
"char": "y",
|
|
299
|
+
"description": "Answer yes to confirmation prompts",
|
|
300
|
+
"name": "yes",
|
|
301
|
+
"allowNo": false,
|
|
302
|
+
"type": "boolean"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"hasDynamicHelp": false,
|
|
306
|
+
"hiddenAliases": [],
|
|
307
|
+
"id": "push",
|
|
308
|
+
"pluginAlias": "@loopress/cli",
|
|
309
|
+
"pluginName": "@loopress/cli",
|
|
310
|
+
"pluginType": "core",
|
|
311
|
+
"strict": true,
|
|
312
|
+
"enableJsonFlag": false,
|
|
313
|
+
"dryRunFlag": {
|
|
314
|
+
"dry-run": {
|
|
315
|
+
"char": "d",
|
|
316
|
+
"description": "Show what would change without making changes",
|
|
317
|
+
"allowNo": false,
|
|
318
|
+
"type": "boolean"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"yesFlag": {
|
|
322
|
+
"yes": {
|
|
323
|
+
"char": "y",
|
|
324
|
+
"description": "Answer yes to confirmation prompts",
|
|
325
|
+
"allowNo": false,
|
|
326
|
+
"type": "boolean"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"isESM": true,
|
|
330
|
+
"relativePath": [
|
|
331
|
+
"dist",
|
|
332
|
+
"commands",
|
|
333
|
+
"push.js"
|
|
334
|
+
]
|
|
335
|
+
},
|
|
160
336
|
"sentry-test": {
|
|
161
337
|
"aliases": [],
|
|
162
338
|
"args": {},
|
|
@@ -217,6 +393,37 @@
|
|
|
217
393
|
"status.js"
|
|
218
394
|
]
|
|
219
395
|
},
|
|
396
|
+
"validate": {
|
|
397
|
+
"aliases": [],
|
|
398
|
+
"args": {},
|
|
399
|
+
"description": "Check local tracked files are well formed and push-ready, without contacting WordPress",
|
|
400
|
+
"examples": [
|
|
401
|
+
"$ lps validate"
|
|
402
|
+
],
|
|
403
|
+
"flags": {
|
|
404
|
+
"json": {
|
|
405
|
+
"description": "Format output as json.",
|
|
406
|
+
"helpGroup": "GLOBAL",
|
|
407
|
+
"name": "json",
|
|
408
|
+
"allowNo": false,
|
|
409
|
+
"type": "boolean"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"hasDynamicHelp": false,
|
|
413
|
+
"hiddenAliases": [],
|
|
414
|
+
"id": "validate",
|
|
415
|
+
"pluginAlias": "@loopress/cli",
|
|
416
|
+
"pluginName": "@loopress/cli",
|
|
417
|
+
"pluginType": "core",
|
|
418
|
+
"strict": true,
|
|
419
|
+
"enableJsonFlag": true,
|
|
420
|
+
"isESM": true,
|
|
421
|
+
"relativePath": [
|
|
422
|
+
"dist",
|
|
423
|
+
"commands",
|
|
424
|
+
"validate.js"
|
|
425
|
+
]
|
|
426
|
+
},
|
|
220
427
|
"acf:list": {
|
|
221
428
|
"aliases": [],
|
|
222
429
|
"args": {},
|
|
@@ -226,6 +433,13 @@
|
|
|
226
433
|
"$ lps acf list --type field-groups"
|
|
227
434
|
],
|
|
228
435
|
"flags": {
|
|
436
|
+
"json": {
|
|
437
|
+
"description": "Format output as json.",
|
|
438
|
+
"helpGroup": "GLOBAL",
|
|
439
|
+
"name": "json",
|
|
440
|
+
"allowNo": false,
|
|
441
|
+
"type": "boolean"
|
|
442
|
+
},
|
|
229
443
|
"env": {
|
|
230
444
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
231
445
|
"name": "env",
|
|
@@ -233,13 +447,6 @@
|
|
|
233
447
|
"multiple": false,
|
|
234
448
|
"type": "option"
|
|
235
449
|
},
|
|
236
|
-
"json": {
|
|
237
|
-
"char": "j",
|
|
238
|
-
"description": "Output in JSON format",
|
|
239
|
-
"name": "json",
|
|
240
|
-
"allowNo": false,
|
|
241
|
-
"type": "boolean"
|
|
242
|
-
},
|
|
243
450
|
"type": {
|
|
244
451
|
"description": "Limit to specific ACF object types",
|
|
245
452
|
"name": "type",
|
|
@@ -261,7 +468,7 @@
|
|
|
261
468
|
"pluginName": "@loopress/cli",
|
|
262
469
|
"pluginType": "core",
|
|
263
470
|
"strict": true,
|
|
264
|
-
"enableJsonFlag":
|
|
471
|
+
"enableJsonFlag": true,
|
|
265
472
|
"dryRunFlag": {
|
|
266
473
|
"dry-run": {
|
|
267
474
|
"char": "d",
|
|
@@ -650,38 +857,37 @@
|
|
|
650
857
|
"push.js"
|
|
651
858
|
]
|
|
652
859
|
},
|
|
653
|
-
"
|
|
860
|
+
"app:list": {
|
|
654
861
|
"aliases": [],
|
|
655
862
|
"args": {},
|
|
656
|
-
"description": "
|
|
863
|
+
"description": "List single-page apps deployed to WordPress",
|
|
657
864
|
"examples": [
|
|
658
|
-
"$ lps
|
|
659
|
-
"$ lps composer init --dry-run"
|
|
865
|
+
"$ lps app list"
|
|
660
866
|
],
|
|
661
867
|
"flags": {
|
|
868
|
+
"json": {
|
|
869
|
+
"description": "Format output as json.",
|
|
870
|
+
"helpGroup": "GLOBAL",
|
|
871
|
+
"name": "json",
|
|
872
|
+
"allowNo": false,
|
|
873
|
+
"type": "boolean"
|
|
874
|
+
},
|
|
662
875
|
"env": {
|
|
663
876
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
664
877
|
"name": "env",
|
|
665
878
|
"hasDynamicHelp": false,
|
|
666
879
|
"multiple": false,
|
|
667
880
|
"type": "option"
|
|
668
|
-
},
|
|
669
|
-
"dry-run": {
|
|
670
|
-
"char": "d",
|
|
671
|
-
"description": "Show what would change without making changes",
|
|
672
|
-
"name": "dry-run",
|
|
673
|
-
"allowNo": false,
|
|
674
|
-
"type": "boolean"
|
|
675
881
|
}
|
|
676
882
|
},
|
|
677
883
|
"hasDynamicHelp": false,
|
|
678
884
|
"hiddenAliases": [],
|
|
679
|
-
"id": "
|
|
885
|
+
"id": "app:list",
|
|
680
886
|
"pluginAlias": "@loopress/cli",
|
|
681
887
|
"pluginName": "@loopress/cli",
|
|
682
888
|
"pluginType": "core",
|
|
683
889
|
"strict": true,
|
|
684
|
-
"enableJsonFlag":
|
|
890
|
+
"enableJsonFlag": true,
|
|
685
891
|
"dryRunFlag": {
|
|
686
892
|
"dry-run": {
|
|
687
893
|
"char": "d",
|
|
@@ -702,17 +908,21 @@
|
|
|
702
908
|
"relativePath": [
|
|
703
909
|
"dist",
|
|
704
910
|
"commands",
|
|
705
|
-
"
|
|
706
|
-
"
|
|
911
|
+
"app",
|
|
912
|
+
"list.js"
|
|
707
913
|
]
|
|
708
914
|
},
|
|
709
|
-
"
|
|
915
|
+
"app:pull": {
|
|
710
916
|
"aliases": [],
|
|
711
|
-
"args": {
|
|
712
|
-
|
|
917
|
+
"args": {
|
|
918
|
+
"path": {
|
|
919
|
+
"description": "Path to apps directory (overrides project config)",
|
|
920
|
+
"name": "path"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
"description": "Pull single-page app bundles from WordPress into local files",
|
|
713
924
|
"examples": [
|
|
714
|
-
"$ lps
|
|
715
|
-
"$ lps composer pull --dry-run"
|
|
925
|
+
"$ lps app pull"
|
|
716
926
|
],
|
|
717
927
|
"flags": {
|
|
718
928
|
"json": {
|
|
@@ -735,11 +945,18 @@
|
|
|
735
945
|
"name": "dry-run",
|
|
736
946
|
"allowNo": false,
|
|
737
947
|
"type": "boolean"
|
|
948
|
+
},
|
|
949
|
+
"yes": {
|
|
950
|
+
"char": "y",
|
|
951
|
+
"description": "Answer yes to confirmation prompts",
|
|
952
|
+
"name": "yes",
|
|
953
|
+
"allowNo": false,
|
|
954
|
+
"type": "boolean"
|
|
738
955
|
}
|
|
739
956
|
},
|
|
740
957
|
"hasDynamicHelp": false,
|
|
741
958
|
"hiddenAliases": [],
|
|
742
|
-
"id": "
|
|
959
|
+
"id": "app:pull",
|
|
743
960
|
"pluginAlias": "@loopress/cli",
|
|
744
961
|
"pluginName": "@loopress/cli",
|
|
745
962
|
"pluginType": "core",
|
|
@@ -765,17 +982,22 @@
|
|
|
765
982
|
"relativePath": [
|
|
766
983
|
"dist",
|
|
767
984
|
"commands",
|
|
768
|
-
"
|
|
985
|
+
"app",
|
|
769
986
|
"pull.js"
|
|
770
987
|
]
|
|
771
988
|
},
|
|
772
|
-
"
|
|
989
|
+
"app:push": {
|
|
773
990
|
"aliases": [],
|
|
774
|
-
"args": {
|
|
775
|
-
|
|
991
|
+
"args": {
|
|
992
|
+
"name": {
|
|
993
|
+
"description": "Push only this app (defaults to every app in the directory)",
|
|
994
|
+
"name": "name"
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
"description": "Push built single-page app bundles to WordPress. Each app is an `apps/<name>/` directory holding a loopress.app.json and a built dist/ folder. Only files whose content changed are uploaded.",
|
|
776
998
|
"examples": [
|
|
777
|
-
"$ lps
|
|
778
|
-
"$ lps
|
|
999
|
+
"$ lps app push",
|
|
1000
|
+
"$ lps app push search"
|
|
779
1001
|
],
|
|
780
1002
|
"flags": {
|
|
781
1003
|
"json": {
|
|
@@ -809,7 +1031,7 @@
|
|
|
809
1031
|
},
|
|
810
1032
|
"hasDynamicHelp": false,
|
|
811
1033
|
"hiddenAliases": [],
|
|
812
|
-
"id": "
|
|
1034
|
+
"id": "app:push",
|
|
813
1035
|
"pluginAlias": "@loopress/cli",
|
|
814
1036
|
"pluginName": "@loopress/cli",
|
|
815
1037
|
"pluginType": "core",
|
|
@@ -819,31 +1041,285 @@
|
|
|
819
1041
|
"relativePath": [
|
|
820
1042
|
"dist",
|
|
821
1043
|
"commands",
|
|
822
|
-
"
|
|
1044
|
+
"app",
|
|
823
1045
|
"push.js"
|
|
824
1046
|
]
|
|
825
1047
|
},
|
|
826
|
-
"
|
|
1048
|
+
"app:remove": {
|
|
827
1049
|
"aliases": [],
|
|
828
|
-
"args": {
|
|
829
|
-
|
|
1050
|
+
"args": {
|
|
1051
|
+
"name": {
|
|
1052
|
+
"description": "App to remove from WordPress",
|
|
1053
|
+
"name": "name",
|
|
1054
|
+
"required": true
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
"description": "Remove a single-page app from WordPress: deletes its bundle from wp-content/loopress/apps/ and unregisters the shortcode. Local files are left untouched.",
|
|
830
1058
|
"examples": [
|
|
831
|
-
"$ lps
|
|
1059
|
+
"$ lps app remove search"
|
|
832
1060
|
],
|
|
833
1061
|
"flags": {
|
|
834
|
-
"
|
|
835
|
-
"description": "
|
|
836
|
-
"
|
|
837
|
-
"
|
|
1062
|
+
"json": {
|
|
1063
|
+
"description": "Format output as json.",
|
|
1064
|
+
"helpGroup": "GLOBAL",
|
|
1065
|
+
"name": "json",
|
|
1066
|
+
"allowNo": false,
|
|
1067
|
+
"type": "boolean"
|
|
1068
|
+
},
|
|
1069
|
+
"env": {
|
|
1070
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1071
|
+
"name": "env",
|
|
1072
|
+
"hasDynamicHelp": false,
|
|
838
1073
|
"multiple": false,
|
|
839
1074
|
"type": "option"
|
|
840
1075
|
},
|
|
1076
|
+
"dry-run": {
|
|
1077
|
+
"char": "d",
|
|
1078
|
+
"description": "Show what would change without making changes",
|
|
1079
|
+
"name": "dry-run",
|
|
1080
|
+
"allowNo": false,
|
|
1081
|
+
"type": "boolean"
|
|
1082
|
+
},
|
|
1083
|
+
"yes": {
|
|
1084
|
+
"char": "y",
|
|
1085
|
+
"description": "Answer yes to confirmation prompts",
|
|
1086
|
+
"name": "yes",
|
|
1087
|
+
"allowNo": false,
|
|
1088
|
+
"type": "boolean"
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
"hasDynamicHelp": false,
|
|
1092
|
+
"hiddenAliases": [],
|
|
1093
|
+
"id": "app:remove",
|
|
1094
|
+
"pluginAlias": "@loopress/cli",
|
|
1095
|
+
"pluginName": "@loopress/cli",
|
|
1096
|
+
"pluginType": "core",
|
|
1097
|
+
"strict": true,
|
|
1098
|
+
"enableJsonFlag": true,
|
|
1099
|
+
"dryRunFlag": {
|
|
1100
|
+
"dry-run": {
|
|
1101
|
+
"char": "d",
|
|
1102
|
+
"description": "Show what would change without making changes",
|
|
1103
|
+
"allowNo": false,
|
|
1104
|
+
"type": "boolean"
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
"yesFlag": {
|
|
1108
|
+
"yes": {
|
|
1109
|
+
"char": "y",
|
|
1110
|
+
"description": "Answer yes to confirmation prompts",
|
|
1111
|
+
"allowNo": false,
|
|
1112
|
+
"type": "boolean"
|
|
1113
|
+
}
|
|
1114
|
+
},
|
|
1115
|
+
"isESM": true,
|
|
1116
|
+
"relativePath": [
|
|
1117
|
+
"dist",
|
|
1118
|
+
"commands",
|
|
1119
|
+
"app",
|
|
1120
|
+
"remove.js"
|
|
1121
|
+
]
|
|
1122
|
+
},
|
|
1123
|
+
"composer:init": {
|
|
1124
|
+
"aliases": [],
|
|
1125
|
+
"args": {},
|
|
1126
|
+
"description": "Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes",
|
|
1127
|
+
"examples": [
|
|
1128
|
+
"$ lps composer init",
|
|
1129
|
+
"$ lps composer init --dry-run"
|
|
1130
|
+
],
|
|
1131
|
+
"flags": {
|
|
1132
|
+
"env": {
|
|
1133
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1134
|
+
"name": "env",
|
|
1135
|
+
"hasDynamicHelp": false,
|
|
1136
|
+
"multiple": false,
|
|
1137
|
+
"type": "option"
|
|
1138
|
+
},
|
|
1139
|
+
"dry-run": {
|
|
1140
|
+
"char": "d",
|
|
1141
|
+
"description": "Show what would change without making changes",
|
|
1142
|
+
"name": "dry-run",
|
|
1143
|
+
"allowNo": false,
|
|
1144
|
+
"type": "boolean"
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
"hasDynamicHelp": false,
|
|
1148
|
+
"hiddenAliases": [],
|
|
1149
|
+
"id": "composer:init",
|
|
1150
|
+
"pluginAlias": "@loopress/cli",
|
|
1151
|
+
"pluginName": "@loopress/cli",
|
|
1152
|
+
"pluginType": "core",
|
|
1153
|
+
"strict": true,
|
|
1154
|
+
"enableJsonFlag": false,
|
|
1155
|
+
"dryRunFlag": {
|
|
1156
|
+
"dry-run": {
|
|
1157
|
+
"char": "d",
|
|
1158
|
+
"description": "Show what would change without making changes",
|
|
1159
|
+
"allowNo": false,
|
|
1160
|
+
"type": "boolean"
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
"yesFlag": {
|
|
1164
|
+
"yes": {
|
|
1165
|
+
"char": "y",
|
|
1166
|
+
"description": "Answer yes to confirmation prompts",
|
|
1167
|
+
"allowNo": false,
|
|
1168
|
+
"type": "boolean"
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
"isESM": true,
|
|
1172
|
+
"relativePath": [
|
|
1173
|
+
"dist",
|
|
1174
|
+
"commands",
|
|
1175
|
+
"composer",
|
|
1176
|
+
"init.js"
|
|
1177
|
+
]
|
|
1178
|
+
},
|
|
1179
|
+
"composer:pull": {
|
|
1180
|
+
"aliases": [],
|
|
1181
|
+
"args": {},
|
|
1182
|
+
"description": "Pull composer.json and composer.lock from WordPress",
|
|
1183
|
+
"examples": [
|
|
1184
|
+
"$ lps composer pull",
|
|
1185
|
+
"$ lps composer pull --dry-run"
|
|
1186
|
+
],
|
|
1187
|
+
"flags": {
|
|
1188
|
+
"json": {
|
|
1189
|
+
"description": "Format output as json.",
|
|
1190
|
+
"helpGroup": "GLOBAL",
|
|
1191
|
+
"name": "json",
|
|
1192
|
+
"allowNo": false,
|
|
1193
|
+
"type": "boolean"
|
|
1194
|
+
},
|
|
1195
|
+
"env": {
|
|
1196
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1197
|
+
"name": "env",
|
|
1198
|
+
"hasDynamicHelp": false,
|
|
1199
|
+
"multiple": false,
|
|
1200
|
+
"type": "option"
|
|
1201
|
+
},
|
|
1202
|
+
"dry-run": {
|
|
1203
|
+
"char": "d",
|
|
1204
|
+
"description": "Show what would change without making changes",
|
|
1205
|
+
"name": "dry-run",
|
|
1206
|
+
"allowNo": false,
|
|
1207
|
+
"type": "boolean"
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
"hasDynamicHelp": false,
|
|
1211
|
+
"hiddenAliases": [],
|
|
1212
|
+
"id": "composer:pull",
|
|
1213
|
+
"pluginAlias": "@loopress/cli",
|
|
1214
|
+
"pluginName": "@loopress/cli",
|
|
1215
|
+
"pluginType": "core",
|
|
1216
|
+
"strict": true,
|
|
1217
|
+
"enableJsonFlag": true,
|
|
1218
|
+
"dryRunFlag": {
|
|
1219
|
+
"dry-run": {
|
|
1220
|
+
"char": "d",
|
|
1221
|
+
"description": "Show what would change without making changes",
|
|
1222
|
+
"allowNo": false,
|
|
1223
|
+
"type": "boolean"
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
"yesFlag": {
|
|
1227
|
+
"yes": {
|
|
1228
|
+
"char": "y",
|
|
1229
|
+
"description": "Answer yes to confirmation prompts",
|
|
1230
|
+
"allowNo": false,
|
|
1231
|
+
"type": "boolean"
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
"isESM": true,
|
|
1235
|
+
"relativePath": [
|
|
1236
|
+
"dist",
|
|
1237
|
+
"commands",
|
|
1238
|
+
"composer",
|
|
1239
|
+
"pull.js"
|
|
1240
|
+
]
|
|
1241
|
+
},
|
|
1242
|
+
"composer:push": {
|
|
1243
|
+
"aliases": [],
|
|
1244
|
+
"args": {},
|
|
1245
|
+
"description": "Push composer.json (and composer.lock, if present) to WordPress and run Composer",
|
|
1246
|
+
"examples": [
|
|
1247
|
+
"$ lps composer push",
|
|
1248
|
+
"$ lps composer push --dry-run"
|
|
1249
|
+
],
|
|
1250
|
+
"flags": {
|
|
1251
|
+
"json": {
|
|
1252
|
+
"description": "Format output as json.",
|
|
1253
|
+
"helpGroup": "GLOBAL",
|
|
1254
|
+
"name": "json",
|
|
1255
|
+
"allowNo": false,
|
|
1256
|
+
"type": "boolean"
|
|
1257
|
+
},
|
|
1258
|
+
"env": {
|
|
1259
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1260
|
+
"name": "env",
|
|
1261
|
+
"hasDynamicHelp": false,
|
|
1262
|
+
"multiple": false,
|
|
1263
|
+
"type": "option"
|
|
1264
|
+
},
|
|
1265
|
+
"dry-run": {
|
|
1266
|
+
"char": "d",
|
|
1267
|
+
"description": "Show what would change without making changes",
|
|
1268
|
+
"name": "dry-run",
|
|
1269
|
+
"allowNo": false,
|
|
1270
|
+
"type": "boolean"
|
|
1271
|
+
},
|
|
1272
|
+
"yes": {
|
|
1273
|
+
"char": "y",
|
|
1274
|
+
"description": "Answer yes to confirmation prompts",
|
|
1275
|
+
"name": "yes",
|
|
1276
|
+
"allowNo": false,
|
|
1277
|
+
"type": "boolean"
|
|
1278
|
+
},
|
|
1279
|
+
"force": {
|
|
1280
|
+
"description": "Allow downgrades and take over plugins/themes installed outside Loopress",
|
|
1281
|
+
"name": "force",
|
|
1282
|
+
"allowNo": false,
|
|
1283
|
+
"type": "boolean"
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
"hasDynamicHelp": false,
|
|
1287
|
+
"hiddenAliases": [],
|
|
1288
|
+
"id": "composer:push",
|
|
1289
|
+
"pluginAlias": "@loopress/cli",
|
|
1290
|
+
"pluginName": "@loopress/cli",
|
|
1291
|
+
"pluginType": "core",
|
|
1292
|
+
"strict": true,
|
|
1293
|
+
"enableJsonFlag": true,
|
|
1294
|
+
"isESM": true,
|
|
1295
|
+
"relativePath": [
|
|
1296
|
+
"dist",
|
|
1297
|
+
"commands",
|
|
1298
|
+
"composer",
|
|
1299
|
+
"push.js"
|
|
1300
|
+
]
|
|
1301
|
+
},
|
|
1302
|
+
"form:list": {
|
|
1303
|
+
"aliases": [],
|
|
1304
|
+
"args": {},
|
|
1305
|
+
"description": "List forms from WordPress",
|
|
1306
|
+
"examples": [
|
|
1307
|
+
"$ lps form list"
|
|
1308
|
+
],
|
|
1309
|
+
"flags": {
|
|
841
1310
|
"json": {
|
|
842
|
-
"
|
|
843
|
-
"
|
|
1311
|
+
"description": "Format output as json.",
|
|
1312
|
+
"helpGroup": "GLOBAL",
|
|
844
1313
|
"name": "json",
|
|
845
1314
|
"allowNo": false,
|
|
846
1315
|
"type": "boolean"
|
|
1316
|
+
},
|
|
1317
|
+
"env": {
|
|
1318
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1319
|
+
"name": "env",
|
|
1320
|
+
"hasDynamicHelp": false,
|
|
1321
|
+
"multiple": false,
|
|
1322
|
+
"type": "option"
|
|
847
1323
|
}
|
|
848
1324
|
},
|
|
849
1325
|
"hasDynamicHelp": false,
|
|
@@ -853,7 +1329,7 @@
|
|
|
853
1329
|
"pluginName": "@loopress/cli",
|
|
854
1330
|
"pluginType": "core",
|
|
855
1331
|
"strict": true,
|
|
856
|
-
"enableJsonFlag":
|
|
1332
|
+
"enableJsonFlag": true,
|
|
857
1333
|
"dryRunFlag": {
|
|
858
1334
|
"dry-run": {
|
|
859
1335
|
"char": "d",
|
|
@@ -995,12 +1471,82 @@
|
|
|
995
1471
|
"push.js"
|
|
996
1472
|
]
|
|
997
1473
|
},
|
|
998
|
-
"
|
|
1474
|
+
"plugin:add": {
|
|
1475
|
+
"aliases": [],
|
|
1476
|
+
"args": {
|
|
1477
|
+
"slug": {
|
|
1478
|
+
"description": "Plugin slug on WordPress.org",
|
|
1479
|
+
"name": "slug",
|
|
1480
|
+
"required": true
|
|
1481
|
+
}
|
|
1482
|
+
},
|
|
1483
|
+
"description": "Add a WordPress.org plugin to loopress.json",
|
|
1484
|
+
"examples": [
|
|
1485
|
+
"$ lps plugin add woocommerce",
|
|
1486
|
+
"$ lps plugin add woocommerce --version 9.4.2",
|
|
1487
|
+
"$ lps plugin add contact-form-7 --dry-run"
|
|
1488
|
+
],
|
|
1489
|
+
"flags": {
|
|
1490
|
+
"env": {
|
|
1491
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1492
|
+
"name": "env",
|
|
1493
|
+
"hasDynamicHelp": false,
|
|
1494
|
+
"multiple": false,
|
|
1495
|
+
"type": "option"
|
|
1496
|
+
},
|
|
1497
|
+
"dry-run": {
|
|
1498
|
+
"char": "d",
|
|
1499
|
+
"description": "Show what would change without making changes",
|
|
1500
|
+
"name": "dry-run",
|
|
1501
|
+
"allowNo": false,
|
|
1502
|
+
"type": "boolean"
|
|
1503
|
+
},
|
|
1504
|
+
"version": {
|
|
1505
|
+
"description": "Exact version to pin (default: \"latest\", tracked on every push)",
|
|
1506
|
+
"name": "version",
|
|
1507
|
+
"hasDynamicHelp": false,
|
|
1508
|
+
"multiple": false,
|
|
1509
|
+
"type": "option"
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
"hasDynamicHelp": false,
|
|
1513
|
+
"hiddenAliases": [],
|
|
1514
|
+
"id": "plugin:add",
|
|
1515
|
+
"pluginAlias": "@loopress/cli",
|
|
1516
|
+
"pluginName": "@loopress/cli",
|
|
1517
|
+
"pluginType": "core",
|
|
1518
|
+
"strict": true,
|
|
1519
|
+
"enableJsonFlag": false,
|
|
1520
|
+
"dryRunFlag": {
|
|
1521
|
+
"dry-run": {
|
|
1522
|
+
"char": "d",
|
|
1523
|
+
"description": "Show what would change without making changes",
|
|
1524
|
+
"allowNo": false,
|
|
1525
|
+
"type": "boolean"
|
|
1526
|
+
}
|
|
1527
|
+
},
|
|
1528
|
+
"yesFlag": {
|
|
1529
|
+
"yes": {
|
|
1530
|
+
"char": "y",
|
|
1531
|
+
"description": "Answer yes to confirmation prompts",
|
|
1532
|
+
"allowNo": false,
|
|
1533
|
+
"type": "boolean"
|
|
1534
|
+
}
|
|
1535
|
+
},
|
|
1536
|
+
"isESM": true,
|
|
1537
|
+
"relativePath": [
|
|
1538
|
+
"dist",
|
|
1539
|
+
"commands",
|
|
1540
|
+
"plugin",
|
|
1541
|
+
"add.js"
|
|
1542
|
+
]
|
|
1543
|
+
},
|
|
1544
|
+
"plugin:audit": {
|
|
999
1545
|
"aliases": [],
|
|
1000
1546
|
"args": {},
|
|
1001
|
-
"description": "
|
|
1547
|
+
"description": "Check the plugins in loopress.json for known vulnerabilities and health issues",
|
|
1002
1548
|
"examples": [
|
|
1003
|
-
"$ lps
|
|
1549
|
+
"$ lps plugin audit"
|
|
1004
1550
|
],
|
|
1005
1551
|
"flags": {
|
|
1006
1552
|
"json": {
|
|
@@ -1020,7 +1566,7 @@
|
|
|
1020
1566
|
},
|
|
1021
1567
|
"hasDynamicHelp": false,
|
|
1022
1568
|
"hiddenAliases": [],
|
|
1023
|
-
"id": "
|
|
1569
|
+
"id": "plugin:audit",
|
|
1024
1570
|
"pluginAlias": "@loopress/cli",
|
|
1025
1571
|
"pluginName": "@loopress/cli",
|
|
1026
1572
|
"pluginType": "core",
|
|
@@ -1046,21 +1592,17 @@
|
|
|
1046
1592
|
"relativePath": [
|
|
1047
1593
|
"dist",
|
|
1048
1594
|
"commands",
|
|
1049
|
-
"
|
|
1050
|
-
"
|
|
1595
|
+
"plugin",
|
|
1596
|
+
"audit.js"
|
|
1051
1597
|
]
|
|
1052
1598
|
},
|
|
1053
|
-
"
|
|
1599
|
+
"plugin:pull": {
|
|
1054
1600
|
"aliases": [],
|
|
1055
|
-
"args": {
|
|
1056
|
-
|
|
1057
|
-
"description": "Path to pages directory (overrides project config)",
|
|
1058
|
-
"name": "path"
|
|
1059
|
-
}
|
|
1060
|
-
},
|
|
1061
|
-
"description": "Pull pages from WordPress",
|
|
1601
|
+
"args": {},
|
|
1602
|
+
"description": "Pull installed plugins from WordPress into loopress.json, pinned to their live versions",
|
|
1062
1603
|
"examples": [
|
|
1063
|
-
"$ lps
|
|
1604
|
+
"$ lps plugin pull",
|
|
1605
|
+
"$ lps plugin pull --dry-run"
|
|
1064
1606
|
],
|
|
1065
1607
|
"flags": {
|
|
1066
1608
|
"json": {
|
|
@@ -1083,18 +1625,11 @@
|
|
|
1083
1625
|
"name": "dry-run",
|
|
1084
1626
|
"allowNo": false,
|
|
1085
1627
|
"type": "boolean"
|
|
1086
|
-
},
|
|
1087
|
-
"yes": {
|
|
1088
|
-
"char": "y",
|
|
1089
|
-
"description": "Answer yes to confirmation prompts",
|
|
1090
|
-
"name": "yes",
|
|
1091
|
-
"allowNo": false,
|
|
1092
|
-
"type": "boolean"
|
|
1093
1628
|
}
|
|
1094
1629
|
},
|
|
1095
1630
|
"hasDynamicHelp": false,
|
|
1096
1631
|
"hiddenAliases": [],
|
|
1097
|
-
"id": "
|
|
1632
|
+
"id": "plugin:pull",
|
|
1098
1633
|
"pluginAlias": "@loopress/cli",
|
|
1099
1634
|
"pluginName": "@loopress/cli",
|
|
1100
1635
|
"pluginType": "core",
|
|
@@ -1120,21 +1655,18 @@
|
|
|
1120
1655
|
"relativePath": [
|
|
1121
1656
|
"dist",
|
|
1122
1657
|
"commands",
|
|
1123
|
-
"
|
|
1658
|
+
"plugin",
|
|
1124
1659
|
"pull.js"
|
|
1125
1660
|
]
|
|
1126
1661
|
},
|
|
1127
|
-
"
|
|
1662
|
+
"plugin:push": {
|
|
1128
1663
|
"aliases": [],
|
|
1129
|
-
"args": {
|
|
1130
|
-
|
|
1131
|
-
"description": "Path to pages directory (overrides project config)",
|
|
1132
|
-
"name": "path"
|
|
1133
|
-
}
|
|
1134
|
-
},
|
|
1135
|
-
"description": "Push pages to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>` convention.",
|
|
1664
|
+
"args": {},
|
|
1665
|
+
"description": "Install plugins on WordPress to match loopress.json, pinned via Composer + WPackagist",
|
|
1136
1666
|
"examples": [
|
|
1137
|
-
"$ lps
|
|
1667
|
+
"$ lps plugin push",
|
|
1668
|
+
"$ lps plugin push --dry-run",
|
|
1669
|
+
"$ lps plugin push --force --prune"
|
|
1138
1670
|
],
|
|
1139
1671
|
"flags": {
|
|
1140
1672
|
"json": {
|
|
@@ -1164,11 +1696,23 @@
|
|
|
1164
1696
|
"name": "yes",
|
|
1165
1697
|
"allowNo": false,
|
|
1166
1698
|
"type": "boolean"
|
|
1699
|
+
},
|
|
1700
|
+
"force": {
|
|
1701
|
+
"description": "Allow downgrades and let Loopress take over plugins installed outside it (replaces their files)",
|
|
1702
|
+
"name": "force",
|
|
1703
|
+
"allowNo": false,
|
|
1704
|
+
"type": "boolean"
|
|
1705
|
+
},
|
|
1706
|
+
"prune": {
|
|
1707
|
+
"description": "Deactivate plugins that are active on the site but absent from loopress.json",
|
|
1708
|
+
"name": "prune",
|
|
1709
|
+
"allowNo": false,
|
|
1710
|
+
"type": "boolean"
|
|
1167
1711
|
}
|
|
1168
1712
|
},
|
|
1169
1713
|
"hasDynamicHelp": false,
|
|
1170
1714
|
"hiddenAliases": [],
|
|
1171
|
-
"id": "
|
|
1715
|
+
"id": "plugin:push",
|
|
1172
1716
|
"pluginAlias": "@loopress/cli",
|
|
1173
1717
|
"pluginName": "@loopress/cli",
|
|
1174
1718
|
"pluginType": "core",
|
|
@@ -1178,48 +1722,96 @@
|
|
|
1178
1722
|
"relativePath": [
|
|
1179
1723
|
"dist",
|
|
1180
1724
|
"commands",
|
|
1181
|
-
"
|
|
1725
|
+
"plugin",
|
|
1182
1726
|
"push.js"
|
|
1183
1727
|
]
|
|
1184
1728
|
},
|
|
1185
|
-
"plugin:
|
|
1729
|
+
"plugin:status": {
|
|
1186
1730
|
"aliases": [],
|
|
1187
|
-
"args": {
|
|
1188
|
-
|
|
1189
|
-
"description": "Plugin slug on WordPress.org",
|
|
1190
|
-
"name": "slug",
|
|
1191
|
-
"required": true
|
|
1192
|
-
}
|
|
1193
|
-
},
|
|
1194
|
-
"description": "Add a WordPress.org plugin to loopress.json",
|
|
1731
|
+
"args": {},
|
|
1732
|
+
"description": "Compare the plugins on WordPress against loopress.json and report drift",
|
|
1195
1733
|
"examples": [
|
|
1196
|
-
"$ lps plugin
|
|
1197
|
-
"$ lps plugin add contact-form-7 --dry-run"
|
|
1734
|
+
"$ lps plugin status"
|
|
1198
1735
|
],
|
|
1199
1736
|
"flags": {
|
|
1737
|
+
"json": {
|
|
1738
|
+
"description": "Format output as json.",
|
|
1739
|
+
"helpGroup": "GLOBAL",
|
|
1740
|
+
"name": "json",
|
|
1741
|
+
"allowNo": false,
|
|
1742
|
+
"type": "boolean"
|
|
1743
|
+
},
|
|
1200
1744
|
"env": {
|
|
1201
1745
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1202
1746
|
"name": "env",
|
|
1203
1747
|
"hasDynamicHelp": false,
|
|
1204
1748
|
"multiple": false,
|
|
1205
1749
|
"type": "option"
|
|
1206
|
-
}
|
|
1750
|
+
}
|
|
1751
|
+
},
|
|
1752
|
+
"hasDynamicHelp": false,
|
|
1753
|
+
"hiddenAliases": [],
|
|
1754
|
+
"id": "plugin:status",
|
|
1755
|
+
"pluginAlias": "@loopress/cli",
|
|
1756
|
+
"pluginName": "@loopress/cli",
|
|
1757
|
+
"pluginType": "core",
|
|
1758
|
+
"strict": true,
|
|
1759
|
+
"enableJsonFlag": true,
|
|
1760
|
+
"dryRunFlag": {
|
|
1207
1761
|
"dry-run": {
|
|
1208
1762
|
"char": "d",
|
|
1209
1763
|
"description": "Show what would change without making changes",
|
|
1210
|
-
"name": "dry-run",
|
|
1211
1764
|
"allowNo": false,
|
|
1212
1765
|
"type": "boolean"
|
|
1213
1766
|
}
|
|
1214
1767
|
},
|
|
1768
|
+
"yesFlag": {
|
|
1769
|
+
"yes": {
|
|
1770
|
+
"char": "y",
|
|
1771
|
+
"description": "Answer yes to confirmation prompts",
|
|
1772
|
+
"allowNo": false,
|
|
1773
|
+
"type": "boolean"
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
"isESM": true,
|
|
1777
|
+
"relativePath": [
|
|
1778
|
+
"dist",
|
|
1779
|
+
"commands",
|
|
1780
|
+
"plugin",
|
|
1781
|
+
"status.js"
|
|
1782
|
+
]
|
|
1783
|
+
},
|
|
1784
|
+
"page:list": {
|
|
1785
|
+
"aliases": [],
|
|
1786
|
+
"args": {},
|
|
1787
|
+
"description": "List pages from WordPress",
|
|
1788
|
+
"examples": [
|
|
1789
|
+
"$ lps page list"
|
|
1790
|
+
],
|
|
1791
|
+
"flags": {
|
|
1792
|
+
"json": {
|
|
1793
|
+
"description": "Format output as json.",
|
|
1794
|
+
"helpGroup": "GLOBAL",
|
|
1795
|
+
"name": "json",
|
|
1796
|
+
"allowNo": false,
|
|
1797
|
+
"type": "boolean"
|
|
1798
|
+
},
|
|
1799
|
+
"env": {
|
|
1800
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1801
|
+
"name": "env",
|
|
1802
|
+
"hasDynamicHelp": false,
|
|
1803
|
+
"multiple": false,
|
|
1804
|
+
"type": "option"
|
|
1805
|
+
}
|
|
1806
|
+
},
|
|
1215
1807
|
"hasDynamicHelp": false,
|
|
1216
1808
|
"hiddenAliases": [],
|
|
1217
|
-
"id": "
|
|
1809
|
+
"id": "page:list",
|
|
1218
1810
|
"pluginAlias": "@loopress/cli",
|
|
1219
1811
|
"pluginName": "@loopress/cli",
|
|
1220
1812
|
"pluginType": "core",
|
|
1221
1813
|
"strict": true,
|
|
1222
|
-
"enableJsonFlag":
|
|
1814
|
+
"enableJsonFlag": true,
|
|
1223
1815
|
"dryRunFlag": {
|
|
1224
1816
|
"dry-run": {
|
|
1225
1817
|
"char": "d",
|
|
@@ -1240,17 +1832,21 @@
|
|
|
1240
1832
|
"relativePath": [
|
|
1241
1833
|
"dist",
|
|
1242
1834
|
"commands",
|
|
1243
|
-
"
|
|
1244
|
-
"
|
|
1835
|
+
"page",
|
|
1836
|
+
"list.js"
|
|
1245
1837
|
]
|
|
1246
1838
|
},
|
|
1247
|
-
"
|
|
1839
|
+
"page:pull": {
|
|
1248
1840
|
"aliases": [],
|
|
1249
|
-
"args": {
|
|
1250
|
-
|
|
1841
|
+
"args": {
|
|
1842
|
+
"path": {
|
|
1843
|
+
"description": "Path to pages directory (overrides project config)",
|
|
1844
|
+
"name": "path"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
"description": "Pull pages from WordPress",
|
|
1251
1848
|
"examples": [
|
|
1252
|
-
"$ lps
|
|
1253
|
-
"$ lps plugin pull --dry-run"
|
|
1849
|
+
"$ lps page pull"
|
|
1254
1850
|
],
|
|
1255
1851
|
"flags": {
|
|
1256
1852
|
"json": {
|
|
@@ -1273,11 +1869,18 @@
|
|
|
1273
1869
|
"name": "dry-run",
|
|
1274
1870
|
"allowNo": false,
|
|
1275
1871
|
"type": "boolean"
|
|
1872
|
+
},
|
|
1873
|
+
"yes": {
|
|
1874
|
+
"char": "y",
|
|
1875
|
+
"description": "Answer yes to confirmation prompts",
|
|
1876
|
+
"name": "yes",
|
|
1877
|
+
"allowNo": false,
|
|
1878
|
+
"type": "boolean"
|
|
1276
1879
|
}
|
|
1277
1880
|
},
|
|
1278
1881
|
"hasDynamicHelp": false,
|
|
1279
1882
|
"hiddenAliases": [],
|
|
1280
|
-
"id": "
|
|
1883
|
+
"id": "page:pull",
|
|
1281
1884
|
"pluginAlias": "@loopress/cli",
|
|
1282
1885
|
"pluginName": "@loopress/cli",
|
|
1283
1886
|
"pluginType": "core",
|
|
@@ -1303,17 +1906,21 @@
|
|
|
1303
1906
|
"relativePath": [
|
|
1304
1907
|
"dist",
|
|
1305
1908
|
"commands",
|
|
1306
|
-
"
|
|
1909
|
+
"page",
|
|
1307
1910
|
"pull.js"
|
|
1308
1911
|
]
|
|
1309
1912
|
},
|
|
1310
|
-
"
|
|
1913
|
+
"page:push": {
|
|
1311
1914
|
"aliases": [],
|
|
1312
|
-
"args": {
|
|
1313
|
-
|
|
1915
|
+
"args": {
|
|
1916
|
+
"path": {
|
|
1917
|
+
"description": "Path to pages directory (overrides project config)",
|
|
1918
|
+
"name": "path"
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
"description": "Push pages to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>` convention.",
|
|
1314
1922
|
"examples": [
|
|
1315
|
-
"$ lps
|
|
1316
|
-
"$ lps plugin push --dry-run"
|
|
1923
|
+
"$ lps page push"
|
|
1317
1924
|
],
|
|
1318
1925
|
"flags": {
|
|
1319
1926
|
"json": {
|
|
@@ -1347,7 +1954,7 @@
|
|
|
1347
1954
|
},
|
|
1348
1955
|
"hasDynamicHelp": false,
|
|
1349
1956
|
"hiddenAliases": [],
|
|
1350
|
-
"id": "
|
|
1957
|
+
"id": "page:push",
|
|
1351
1958
|
"pluginAlias": "@loopress/cli",
|
|
1352
1959
|
"pluginName": "@loopress/cli",
|
|
1353
1960
|
"pluginType": "core",
|
|
@@ -1357,7 +1964,7 @@
|
|
|
1357
1964
|
"relativePath": [
|
|
1358
1965
|
"dist",
|
|
1359
1966
|
"commands",
|
|
1360
|
-
"
|
|
1967
|
+
"page",
|
|
1361
1968
|
"push.js"
|
|
1362
1969
|
]
|
|
1363
1970
|
},
|
|
@@ -1392,7 +1999,15 @@
|
|
|
1392
1999
|
"examples": [
|
|
1393
2000
|
"$ lps project list"
|
|
1394
2001
|
],
|
|
1395
|
-
"flags": {
|
|
2002
|
+
"flags": {
|
|
2003
|
+
"json": {
|
|
2004
|
+
"description": "Format output as json.",
|
|
2005
|
+
"helpGroup": "GLOBAL",
|
|
2006
|
+
"name": "json",
|
|
2007
|
+
"allowNo": false,
|
|
2008
|
+
"type": "boolean"
|
|
2009
|
+
}
|
|
2010
|
+
},
|
|
1396
2011
|
"hasDynamicHelp": false,
|
|
1397
2012
|
"hiddenAliases": [],
|
|
1398
2013
|
"id": "project:list",
|
|
@@ -1400,7 +2015,7 @@
|
|
|
1400
2015
|
"pluginName": "@loopress/cli",
|
|
1401
2016
|
"pluginType": "core",
|
|
1402
2017
|
"strict": true,
|
|
1403
|
-
"enableJsonFlag":
|
|
2018
|
+
"enableJsonFlag": true,
|
|
1404
2019
|
"isESM": true,
|
|
1405
2020
|
"relativePath": [
|
|
1406
2021
|
"dist",
|
|
@@ -1571,6 +2186,13 @@
|
|
|
1571
2186
|
"$ lps seo list --post-type post"
|
|
1572
2187
|
],
|
|
1573
2188
|
"flags": {
|
|
2189
|
+
"json": {
|
|
2190
|
+
"description": "Format output as json.",
|
|
2191
|
+
"helpGroup": "GLOBAL",
|
|
2192
|
+
"name": "json",
|
|
2193
|
+
"allowNo": false,
|
|
2194
|
+
"type": "boolean"
|
|
2195
|
+
},
|
|
1574
2196
|
"env": {
|
|
1575
2197
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1576
2198
|
"name": "env",
|
|
@@ -1578,13 +2200,6 @@
|
|
|
1578
2200
|
"multiple": false,
|
|
1579
2201
|
"type": "option"
|
|
1580
2202
|
},
|
|
1581
|
-
"json": {
|
|
1582
|
-
"char": "j",
|
|
1583
|
-
"description": "Output in JSON format",
|
|
1584
|
-
"name": "json",
|
|
1585
|
-
"allowNo": false,
|
|
1586
|
-
"type": "boolean"
|
|
1587
|
-
},
|
|
1588
2203
|
"post-type": {
|
|
1589
2204
|
"description": "Limit to specific post types",
|
|
1590
2205
|
"name": "post-type",
|
|
@@ -1600,7 +2215,7 @@
|
|
|
1600
2215
|
"pluginName": "@loopress/cli",
|
|
1601
2216
|
"pluginType": "core",
|
|
1602
2217
|
"strict": true,
|
|
1603
|
-
"enableJsonFlag":
|
|
2218
|
+
"enableJsonFlag": true,
|
|
1604
2219
|
"dryRunFlag": {
|
|
1605
2220
|
"dry-run": {
|
|
1606
2221
|
"char": "d",
|
|
@@ -2016,7 +2631,253 @@
|
|
|
2016
2631
|
"telemetry",
|
|
2017
2632
|
"enable.js"
|
|
2018
2633
|
]
|
|
2634
|
+
},
|
|
2635
|
+
"theme:add": {
|
|
2636
|
+
"aliases": [],
|
|
2637
|
+
"args": {
|
|
2638
|
+
"slug": {
|
|
2639
|
+
"description": "Theme slug on WordPress.org",
|
|
2640
|
+
"name": "slug",
|
|
2641
|
+
"required": true
|
|
2642
|
+
}
|
|
2643
|
+
},
|
|
2644
|
+
"description": "Add a WordPress.org theme to loopress.json",
|
|
2645
|
+
"examples": [
|
|
2646
|
+
"$ lps theme add generatepress",
|
|
2647
|
+
"$ lps theme add generatepress --version 3.4.0"
|
|
2648
|
+
],
|
|
2649
|
+
"flags": {
|
|
2650
|
+
"env": {
|
|
2651
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2652
|
+
"name": "env",
|
|
2653
|
+
"hasDynamicHelp": false,
|
|
2654
|
+
"multiple": false,
|
|
2655
|
+
"type": "option"
|
|
2656
|
+
},
|
|
2657
|
+
"dry-run": {
|
|
2658
|
+
"char": "d",
|
|
2659
|
+
"description": "Show what would change without making changes",
|
|
2660
|
+
"name": "dry-run",
|
|
2661
|
+
"allowNo": false,
|
|
2662
|
+
"type": "boolean"
|
|
2663
|
+
},
|
|
2664
|
+
"version": {
|
|
2665
|
+
"description": "Exact version to pin (default: \"latest\")",
|
|
2666
|
+
"name": "version",
|
|
2667
|
+
"hasDynamicHelp": false,
|
|
2668
|
+
"multiple": false,
|
|
2669
|
+
"type": "option"
|
|
2670
|
+
}
|
|
2671
|
+
},
|
|
2672
|
+
"hasDynamicHelp": false,
|
|
2673
|
+
"hiddenAliases": [],
|
|
2674
|
+
"id": "theme:add",
|
|
2675
|
+
"pluginAlias": "@loopress/cli",
|
|
2676
|
+
"pluginName": "@loopress/cli",
|
|
2677
|
+
"pluginType": "core",
|
|
2678
|
+
"strict": true,
|
|
2679
|
+
"enableJsonFlag": false,
|
|
2680
|
+
"dryRunFlag": {
|
|
2681
|
+
"dry-run": {
|
|
2682
|
+
"char": "d",
|
|
2683
|
+
"description": "Show what would change without making changes",
|
|
2684
|
+
"allowNo": false,
|
|
2685
|
+
"type": "boolean"
|
|
2686
|
+
}
|
|
2687
|
+
},
|
|
2688
|
+
"yesFlag": {
|
|
2689
|
+
"yes": {
|
|
2690
|
+
"char": "y",
|
|
2691
|
+
"description": "Answer yes to confirmation prompts",
|
|
2692
|
+
"allowNo": false,
|
|
2693
|
+
"type": "boolean"
|
|
2694
|
+
}
|
|
2695
|
+
},
|
|
2696
|
+
"isESM": true,
|
|
2697
|
+
"relativePath": [
|
|
2698
|
+
"dist",
|
|
2699
|
+
"commands",
|
|
2700
|
+
"theme",
|
|
2701
|
+
"add.js"
|
|
2702
|
+
]
|
|
2703
|
+
},
|
|
2704
|
+
"theme:pull": {
|
|
2705
|
+
"aliases": [],
|
|
2706
|
+
"args": {},
|
|
2707
|
+
"description": "Pull installed themes from WordPress into loopress.json, pinned to their live versions",
|
|
2708
|
+
"examples": [
|
|
2709
|
+
"$ lps theme pull"
|
|
2710
|
+
],
|
|
2711
|
+
"flags": {
|
|
2712
|
+
"json": {
|
|
2713
|
+
"description": "Format output as json.",
|
|
2714
|
+
"helpGroup": "GLOBAL",
|
|
2715
|
+
"name": "json",
|
|
2716
|
+
"allowNo": false,
|
|
2717
|
+
"type": "boolean"
|
|
2718
|
+
},
|
|
2719
|
+
"env": {
|
|
2720
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2721
|
+
"name": "env",
|
|
2722
|
+
"hasDynamicHelp": false,
|
|
2723
|
+
"multiple": false,
|
|
2724
|
+
"type": "option"
|
|
2725
|
+
},
|
|
2726
|
+
"dry-run": {
|
|
2727
|
+
"char": "d",
|
|
2728
|
+
"description": "Show what would change without making changes",
|
|
2729
|
+
"name": "dry-run",
|
|
2730
|
+
"allowNo": false,
|
|
2731
|
+
"type": "boolean"
|
|
2732
|
+
}
|
|
2733
|
+
},
|
|
2734
|
+
"hasDynamicHelp": false,
|
|
2735
|
+
"hiddenAliases": [],
|
|
2736
|
+
"id": "theme:pull",
|
|
2737
|
+
"pluginAlias": "@loopress/cli",
|
|
2738
|
+
"pluginName": "@loopress/cli",
|
|
2739
|
+
"pluginType": "core",
|
|
2740
|
+
"strict": true,
|
|
2741
|
+
"enableJsonFlag": true,
|
|
2742
|
+
"dryRunFlag": {
|
|
2743
|
+
"dry-run": {
|
|
2744
|
+
"char": "d",
|
|
2745
|
+
"description": "Show what would change without making changes",
|
|
2746
|
+
"allowNo": false,
|
|
2747
|
+
"type": "boolean"
|
|
2748
|
+
}
|
|
2749
|
+
},
|
|
2750
|
+
"yesFlag": {
|
|
2751
|
+
"yes": {
|
|
2752
|
+
"char": "y",
|
|
2753
|
+
"description": "Answer yes to confirmation prompts",
|
|
2754
|
+
"allowNo": false,
|
|
2755
|
+
"type": "boolean"
|
|
2756
|
+
}
|
|
2757
|
+
},
|
|
2758
|
+
"isESM": true,
|
|
2759
|
+
"relativePath": [
|
|
2760
|
+
"dist",
|
|
2761
|
+
"commands",
|
|
2762
|
+
"theme",
|
|
2763
|
+
"pull.js"
|
|
2764
|
+
]
|
|
2765
|
+
},
|
|
2766
|
+
"theme:push": {
|
|
2767
|
+
"aliases": [],
|
|
2768
|
+
"args": {},
|
|
2769
|
+
"description": "Install themes on WordPress to match loopress.json (versions only, never switches the active theme)",
|
|
2770
|
+
"examples": [
|
|
2771
|
+
"$ lps theme push",
|
|
2772
|
+
"$ lps theme push --force"
|
|
2773
|
+
],
|
|
2774
|
+
"flags": {
|
|
2775
|
+
"json": {
|
|
2776
|
+
"description": "Format output as json.",
|
|
2777
|
+
"helpGroup": "GLOBAL",
|
|
2778
|
+
"name": "json",
|
|
2779
|
+
"allowNo": false,
|
|
2780
|
+
"type": "boolean"
|
|
2781
|
+
},
|
|
2782
|
+
"env": {
|
|
2783
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2784
|
+
"name": "env",
|
|
2785
|
+
"hasDynamicHelp": false,
|
|
2786
|
+
"multiple": false,
|
|
2787
|
+
"type": "option"
|
|
2788
|
+
},
|
|
2789
|
+
"dry-run": {
|
|
2790
|
+
"char": "d",
|
|
2791
|
+
"description": "Show what would change without making changes",
|
|
2792
|
+
"name": "dry-run",
|
|
2793
|
+
"allowNo": false,
|
|
2794
|
+
"type": "boolean"
|
|
2795
|
+
},
|
|
2796
|
+
"yes": {
|
|
2797
|
+
"char": "y",
|
|
2798
|
+
"description": "Answer yes to confirmation prompts",
|
|
2799
|
+
"name": "yes",
|
|
2800
|
+
"allowNo": false,
|
|
2801
|
+
"type": "boolean"
|
|
2802
|
+
},
|
|
2803
|
+
"force": {
|
|
2804
|
+
"description": "Allow downgrades and take over themes installed outside Loopress",
|
|
2805
|
+
"name": "force",
|
|
2806
|
+
"allowNo": false,
|
|
2807
|
+
"type": "boolean"
|
|
2808
|
+
}
|
|
2809
|
+
},
|
|
2810
|
+
"hasDynamicHelp": false,
|
|
2811
|
+
"hiddenAliases": [],
|
|
2812
|
+
"id": "theme:push",
|
|
2813
|
+
"pluginAlias": "@loopress/cli",
|
|
2814
|
+
"pluginName": "@loopress/cli",
|
|
2815
|
+
"pluginType": "core",
|
|
2816
|
+
"strict": true,
|
|
2817
|
+
"enableJsonFlag": true,
|
|
2818
|
+
"isESM": true,
|
|
2819
|
+
"relativePath": [
|
|
2820
|
+
"dist",
|
|
2821
|
+
"commands",
|
|
2822
|
+
"theme",
|
|
2823
|
+
"push.js"
|
|
2824
|
+
]
|
|
2825
|
+
},
|
|
2826
|
+
"theme:status": {
|
|
2827
|
+
"aliases": [],
|
|
2828
|
+
"args": {},
|
|
2829
|
+
"description": "Compare the themes on WordPress against loopress.json and report version drift",
|
|
2830
|
+
"examples": [
|
|
2831
|
+
"$ lps theme status"
|
|
2832
|
+
],
|
|
2833
|
+
"flags": {
|
|
2834
|
+
"json": {
|
|
2835
|
+
"description": "Format output as json.",
|
|
2836
|
+
"helpGroup": "GLOBAL",
|
|
2837
|
+
"name": "json",
|
|
2838
|
+
"allowNo": false,
|
|
2839
|
+
"type": "boolean"
|
|
2840
|
+
},
|
|
2841
|
+
"env": {
|
|
2842
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2843
|
+
"name": "env",
|
|
2844
|
+
"hasDynamicHelp": false,
|
|
2845
|
+
"multiple": false,
|
|
2846
|
+
"type": "option"
|
|
2847
|
+
}
|
|
2848
|
+
},
|
|
2849
|
+
"hasDynamicHelp": false,
|
|
2850
|
+
"hiddenAliases": [],
|
|
2851
|
+
"id": "theme:status",
|
|
2852
|
+
"pluginAlias": "@loopress/cli",
|
|
2853
|
+
"pluginName": "@loopress/cli",
|
|
2854
|
+
"pluginType": "core",
|
|
2855
|
+
"strict": true,
|
|
2856
|
+
"enableJsonFlag": true,
|
|
2857
|
+
"dryRunFlag": {
|
|
2858
|
+
"dry-run": {
|
|
2859
|
+
"char": "d",
|
|
2860
|
+
"description": "Show what would change without making changes",
|
|
2861
|
+
"allowNo": false,
|
|
2862
|
+
"type": "boolean"
|
|
2863
|
+
}
|
|
2864
|
+
},
|
|
2865
|
+
"yesFlag": {
|
|
2866
|
+
"yes": {
|
|
2867
|
+
"char": "y",
|
|
2868
|
+
"description": "Answer yes to confirmation prompts",
|
|
2869
|
+
"allowNo": false,
|
|
2870
|
+
"type": "boolean"
|
|
2871
|
+
}
|
|
2872
|
+
},
|
|
2873
|
+
"isESM": true,
|
|
2874
|
+
"relativePath": [
|
|
2875
|
+
"dist",
|
|
2876
|
+
"commands",
|
|
2877
|
+
"theme",
|
|
2878
|
+
"status.js"
|
|
2879
|
+
]
|
|
2019
2880
|
}
|
|
2020
2881
|
},
|
|
2021
|
-
"version": "0.
|
|
2882
|
+
"version": "0.23.0"
|
|
2022
2883
|
}
|