@loopress/cli 0.24.1 → 0.26.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 +721 -90
- package/dist/commands/acf/push.d.ts +1 -0
- package/dist/commands/acf/push.js +25 -2
- package/dist/commands/acf/rollback.d.ts +2 -0
- package/dist/commands/acf/rollback.js +5 -0
- package/dist/commands/api/rollback.d.ts +2 -0
- package/dist/commands/api/rollback.js +5 -0
- package/dist/commands/diff.js +1 -1
- package/dist/commands/doctor.d.ts +17 -1
- package/dist/commands/doctor.js +55 -38
- package/dist/commands/form/pull.js +4 -1
- package/dist/commands/form/push.d.ts +1 -0
- package/dist/commands/form/push.js +29 -3
- package/dist/commands/form/rollback.d.ts +2 -0
- package/dist/commands/form/rollback.js +5 -0
- package/dist/commands/hook/rollback.d.ts +2 -0
- package/dist/commands/hook/rollback.js +5 -0
- package/dist/commands/init.js +2 -0
- package/dist/commands/menu/diff.d.ts +2 -0
- package/dist/commands/menu/diff.js +5 -0
- package/dist/commands/menu/list.d.ts +13 -0
- package/dist/commands/menu/list.js +32 -0
- package/dist/commands/menu/pull.d.ts +15 -0
- package/dist/commands/menu/pull.js +72 -0
- package/dist/commands/menu/push.d.ts +17 -0
- package/dist/commands/menu/push.js +120 -0
- package/dist/commands/menu/rollback.d.ts +2 -0
- package/dist/commands/menu/rollback.js +5 -0
- package/dist/commands/option/add.js +1 -1
- package/dist/commands/option/push.d.ts +1 -0
- package/dist/commands/option/push.js +26 -1
- package/dist/commands/option/rollback.d.ts +2 -0
- package/dist/commands/option/rollback.js +5 -0
- package/dist/commands/page/diff.d.ts +2 -0
- package/dist/commands/page/diff.js +5 -0
- package/dist/commands/page/list.d.ts +8 -0
- package/dist/commands/page/list.js +22 -0
- package/dist/commands/page/push.d.ts +20 -0
- package/dist/commands/page/push.js +60 -0
- package/dist/commands/plugin/push.d.ts +1 -0
- package/dist/commands/plugin/push.js +14 -0
- package/dist/commands/promote.d.ts +8 -1
- package/dist/commands/promote.js +2 -0
- package/dist/commands/pull.d.ts +11 -1
- package/dist/commands/pull.js +9 -2
- package/dist/commands/push.d.ts +11 -1
- package/dist/commands/push.js +10 -2
- package/dist/commands/seo/pull.js +6 -2
- package/dist/commands/seo/push.d.ts +1 -0
- package/dist/commands/seo/push.js +33 -3
- package/dist/commands/seo/rollback.d.ts +2 -0
- package/dist/commands/seo/rollback.js +5 -0
- package/dist/commands/snippet/push.d.ts +1 -0
- package/dist/commands/snippet/push.js +31 -1
- package/dist/commands/snippet/rollback.d.ts +2 -0
- package/dist/commands/snippet/rollback.js +5 -0
- package/dist/commands/theme-styles/diff.d.ts +2 -0
- package/dist/commands/theme-styles/diff.js +5 -0
- package/dist/commands/theme-styles/pull.d.ts +12 -0
- package/dist/commands/theme-styles/pull.js +31 -0
- package/dist/commands/theme-styles/push.d.ts +12 -0
- package/dist/commands/theme-styles/push.js +45 -0
- package/dist/commands/theme-styles/rollback.d.ts +2 -0
- package/dist/commands/theme-styles/rollback.js +5 -0
- package/dist/lib/app-manifest.js +4 -27
- package/dist/lib/base.d.ts +2 -0
- package/dist/lib/base.js +6 -0
- package/dist/lib/dev-watch.d.ts +1 -1
- package/dist/lib/dev-watch.js +2 -1
- package/dist/lib/find-orphaned-files.js +5 -47
- package/dist/lib/load-files.js +4 -42
- package/dist/lib/php-files-command.d.ts +1 -0
- package/dist/lib/php-files-command.js +84 -47
- package/dist/lib/push-command.d.ts +4 -0
- package/dist/lib/push-command.js +49 -0
- package/dist/lib/readdir-tolerant.d.ts +1 -0
- package/dist/lib/readdir-tolerant.js +12 -0
- package/dist/lib/resource-state.js +116 -3
- package/dist/lib/rollback-command.d.ts +21 -0
- package/dist/lib/rollback-command.js +180 -0
- package/dist/lib/rollback-materialize.d.ts +1 -0
- package/dist/lib/rollback-materialize.js +121 -0
- package/dist/lib/snapshot-store.d.ts +30 -0
- package/dist/lib/snapshot-store.js +133 -0
- package/dist/lib/validate-local.js +7 -1
- package/dist/types/project-config.generated.d.ts +12 -0
- package/dist/utils/acf-format.d.ts +1 -0
- package/dist/utils/acf-format.js +6 -0
- package/dist/utils/form-format.d.ts +4 -0
- package/dist/utils/form-format.js +3 -7
- package/dist/utils/menu-format.d.ts +24 -0
- package/dist/utils/menu-format.js +8 -0
- package/dist/utils/option-format.d.ts +1 -0
- package/dist/utils/page-format.d.ts +27 -0
- package/dist/utils/page-format.js +111 -0
- package/dist/utils/resource-dirs.d.ts +3 -0
- package/dist/utils/resource-dirs.js +6 -0
- package/dist/utils/seo-format.d.ts +8 -0
- package/dist/utils/seo-format.js +3 -0
- package/dist/utils/snippet-format.d.ts +1 -0
- package/dist/utils/snippet-format.js +1 -0
- package/dist/utils/theme-styles-format.d.ts +26 -0
- package/dist/utils/theme-styles-format.js +55 -0
- package/oclif.manifest.json +1633 -168
- package/package.json +4 -2
- package/schemas/project-config.schema.json +15 -0
package/oclif.manifest.json
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
],
|
|
12
12
|
"flags": {
|
|
13
13
|
"only": {
|
|
14
|
-
"description": "Only watch these resource types (comma-separated): snippets, api, plugins",
|
|
14
|
+
"description": "Only watch these resource types (comma-separated): snippets, pages, api, plugins",
|
|
15
15
|
"name": "only",
|
|
16
16
|
"hasDynamicHelp": false,
|
|
17
17
|
"multiple": false,
|
|
18
18
|
"type": "option"
|
|
19
19
|
},
|
|
20
20
|
"skip": {
|
|
21
|
-
"description": "Skip these resource types (comma-separated): snippets, api, plugins",
|
|
21
|
+
"description": "Skip these resource types (comma-separated): snippets, pages, api, plugins",
|
|
22
22
|
"name": "skip",
|
|
23
23
|
"hasDynamicHelp": false,
|
|
24
24
|
"multiple": false,
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"diff": {
|
|
44
44
|
"aliases": [],
|
|
45
45
|
"args": {},
|
|
46
|
-
"description": "Show what differs between your local tracked files and a WordPress environment, or between two environments. Covers snippets, forms, ACF, API routes, Hooks, SEO, and Composer. Plugins and themes have their own `lps plugin status` / `lps theme status`. Exit code: 0 in sync, 1 on drift, 2 when a resource could not be compared, so it doubles as a CI drift gate.",
|
|
46
|
+
"description": "Show what differs between your local tracked files and a WordPress environment, or between two environments. Covers snippets, forms, ACF, API routes, Hooks, pages, SEO, Options, Menus, Theme styles, and Composer. Plugins and themes have their own `lps plugin status` / `lps theme status`. Exit code: 0 in sync, 1 on drift, 2 when a resource could not be compared, so it doubles as a CI drift gate.",
|
|
47
47
|
"examples": [
|
|
48
48
|
"$ lps diff",
|
|
49
49
|
"$ lps diff --env staging",
|
|
@@ -84,8 +84,11 @@
|
|
|
84
84
|
"acf",
|
|
85
85
|
"api",
|
|
86
86
|
"hook",
|
|
87
|
+
"page",
|
|
87
88
|
"seo",
|
|
89
|
+
"menu",
|
|
88
90
|
"option",
|
|
91
|
+
"theme-styles",
|
|
89
92
|
"composer"
|
|
90
93
|
],
|
|
91
94
|
"type": "option"
|
|
@@ -101,8 +104,11 @@
|
|
|
101
104
|
"acf",
|
|
102
105
|
"api",
|
|
103
106
|
"hook",
|
|
107
|
+
"page",
|
|
104
108
|
"seo",
|
|
109
|
+
"menu",
|
|
105
110
|
"option",
|
|
111
|
+
"theme-styles",
|
|
106
112
|
"composer"
|
|
107
113
|
],
|
|
108
114
|
"type": "option"
|
|
@@ -156,6 +162,13 @@
|
|
|
156
162
|
"$ lps doctor --env production"
|
|
157
163
|
],
|
|
158
164
|
"flags": {
|
|
165
|
+
"json": {
|
|
166
|
+
"description": "Format output as json.",
|
|
167
|
+
"helpGroup": "GLOBAL",
|
|
168
|
+
"name": "json",
|
|
169
|
+
"allowNo": false,
|
|
170
|
+
"type": "boolean"
|
|
171
|
+
},
|
|
159
172
|
"env": {
|
|
160
173
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
161
174
|
"name": "env",
|
|
@@ -171,7 +184,7 @@
|
|
|
171
184
|
"pluginName": "@loopress/cli",
|
|
172
185
|
"pluginType": "core",
|
|
173
186
|
"strict": true,
|
|
174
|
-
"enableJsonFlag":
|
|
187
|
+
"enableJsonFlag": true,
|
|
175
188
|
"dryRunFlag": {
|
|
176
189
|
"dry-run": {
|
|
177
190
|
"char": "d",
|
|
@@ -284,6 +297,13 @@
|
|
|
284
297
|
"$ lps promote production staging --dry-run"
|
|
285
298
|
],
|
|
286
299
|
"flags": {
|
|
300
|
+
"json": {
|
|
301
|
+
"description": "Format output as json.",
|
|
302
|
+
"helpGroup": "GLOBAL",
|
|
303
|
+
"name": "json",
|
|
304
|
+
"allowNo": false,
|
|
305
|
+
"type": "boolean"
|
|
306
|
+
},
|
|
287
307
|
"dry-run": {
|
|
288
308
|
"char": "d",
|
|
289
309
|
"description": "Show what would change without making changes",
|
|
@@ -306,7 +326,7 @@
|
|
|
306
326
|
"pluginName": "@loopress/cli",
|
|
307
327
|
"pluginType": "core",
|
|
308
328
|
"strict": true,
|
|
309
|
-
"enableJsonFlag":
|
|
329
|
+
"enableJsonFlag": true,
|
|
310
330
|
"isESM": true,
|
|
311
331
|
"relativePath": [
|
|
312
332
|
"dist",
|
|
@@ -317,13 +337,20 @@
|
|
|
317
337
|
"pull": {
|
|
318
338
|
"aliases": [],
|
|
319
339
|
"args": {},
|
|
320
|
-
"description": "Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, from WordPress",
|
|
340
|
+
"description": "Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, menus, options, and snippets, from WordPress",
|
|
321
341
|
"examples": [
|
|
322
342
|
"$ lps pull",
|
|
323
343
|
"$ lps pull --env staging",
|
|
324
344
|
"$ lps pull --dry-run"
|
|
325
345
|
],
|
|
326
346
|
"flags": {
|
|
347
|
+
"json": {
|
|
348
|
+
"description": "Format output as json.",
|
|
349
|
+
"helpGroup": "GLOBAL",
|
|
350
|
+
"name": "json",
|
|
351
|
+
"allowNo": false,
|
|
352
|
+
"type": "boolean"
|
|
353
|
+
},
|
|
327
354
|
"env": {
|
|
328
355
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
329
356
|
"name": "env",
|
|
@@ -353,7 +380,7 @@
|
|
|
353
380
|
"pluginName": "@loopress/cli",
|
|
354
381
|
"pluginType": "core",
|
|
355
382
|
"strict": true,
|
|
356
|
-
"enableJsonFlag":
|
|
383
|
+
"enableJsonFlag": true,
|
|
357
384
|
"dryRunFlag": {
|
|
358
385
|
"dry-run": {
|
|
359
386
|
"char": "d",
|
|
@@ -380,13 +407,20 @@
|
|
|
380
407
|
"push": {
|
|
381
408
|
"aliases": [],
|
|
382
409
|
"args": {},
|
|
383
|
-
"description": "Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, to WordPress",
|
|
410
|
+
"description": "Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, pages, SEO, menus, options, and snippets, to WordPress",
|
|
384
411
|
"examples": [
|
|
385
412
|
"$ lps push",
|
|
386
413
|
"$ lps push --env staging",
|
|
387
414
|
"$ lps push --dry-run"
|
|
388
415
|
],
|
|
389
416
|
"flags": {
|
|
417
|
+
"json": {
|
|
418
|
+
"description": "Format output as json.",
|
|
419
|
+
"helpGroup": "GLOBAL",
|
|
420
|
+
"name": "json",
|
|
421
|
+
"allowNo": false,
|
|
422
|
+
"type": "boolean"
|
|
423
|
+
},
|
|
390
424
|
"env": {
|
|
391
425
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
392
426
|
"name": "env",
|
|
@@ -416,7 +450,7 @@
|
|
|
416
450
|
"pluginName": "@loopress/cli",
|
|
417
451
|
"pluginType": "core",
|
|
418
452
|
"strict": true,
|
|
419
|
-
"enableJsonFlag":
|
|
453
|
+
"enableJsonFlag": true,
|
|
420
454
|
"dryRunFlag": {
|
|
421
455
|
"dry-run": {
|
|
422
456
|
"char": "d",
|
|
@@ -822,6 +856,96 @@
|
|
|
822
856
|
"push.js"
|
|
823
857
|
]
|
|
824
858
|
},
|
|
859
|
+
"acf:rollback": {
|
|
860
|
+
"aliases": [],
|
|
861
|
+
"args": {
|
|
862
|
+
"path": {
|
|
863
|
+
"description": "Path to ACF directory (overrides project config)",
|
|
864
|
+
"name": "path"
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
"description": "Restore ACF field groups, post types, taxonomies, and options pages to a snapshot taken automatically before an earlier `lps acf push`",
|
|
868
|
+
"examples": [
|
|
869
|
+
"$ lps acf rollback",
|
|
870
|
+
"$ lps acf rollback --list",
|
|
871
|
+
"$ lps acf rollback --to 1732000000000",
|
|
872
|
+
"$ lps acf rollback --dry-run"
|
|
873
|
+
],
|
|
874
|
+
"flags": {
|
|
875
|
+
"json": {
|
|
876
|
+
"description": "Format output as json.",
|
|
877
|
+
"helpGroup": "GLOBAL",
|
|
878
|
+
"name": "json",
|
|
879
|
+
"allowNo": false,
|
|
880
|
+
"type": "boolean"
|
|
881
|
+
},
|
|
882
|
+
"env": {
|
|
883
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
884
|
+
"name": "env",
|
|
885
|
+
"hasDynamicHelp": false,
|
|
886
|
+
"multiple": false,
|
|
887
|
+
"type": "option"
|
|
888
|
+
},
|
|
889
|
+
"dry-run": {
|
|
890
|
+
"char": "d",
|
|
891
|
+
"description": "Show what would change without making changes",
|
|
892
|
+
"name": "dry-run",
|
|
893
|
+
"allowNo": false,
|
|
894
|
+
"type": "boolean"
|
|
895
|
+
},
|
|
896
|
+
"yes": {
|
|
897
|
+
"char": "y",
|
|
898
|
+
"description": "Answer yes to confirmation prompts",
|
|
899
|
+
"name": "yes",
|
|
900
|
+
"allowNo": false,
|
|
901
|
+
"type": "boolean"
|
|
902
|
+
},
|
|
903
|
+
"list": {
|
|
904
|
+
"description": "List available snapshots instead of rolling back",
|
|
905
|
+
"name": "list",
|
|
906
|
+
"allowNo": false,
|
|
907
|
+
"type": "boolean"
|
|
908
|
+
},
|
|
909
|
+
"to": {
|
|
910
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
911
|
+
"name": "to",
|
|
912
|
+
"hasDynamicHelp": false,
|
|
913
|
+
"multiple": false,
|
|
914
|
+
"type": "option"
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
"hasDynamicHelp": false,
|
|
918
|
+
"hiddenAliases": [],
|
|
919
|
+
"id": "acf:rollback",
|
|
920
|
+
"pluginAlias": "@loopress/cli",
|
|
921
|
+
"pluginName": "@loopress/cli",
|
|
922
|
+
"pluginType": "core",
|
|
923
|
+
"strict": true,
|
|
924
|
+
"enableJsonFlag": true,
|
|
925
|
+
"dryRunFlag": {
|
|
926
|
+
"dry-run": {
|
|
927
|
+
"char": "d",
|
|
928
|
+
"description": "Show what would change without making changes",
|
|
929
|
+
"allowNo": false,
|
|
930
|
+
"type": "boolean"
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
"yesFlag": {
|
|
934
|
+
"yes": {
|
|
935
|
+
"char": "y",
|
|
936
|
+
"description": "Answer yes to confirmation prompts",
|
|
937
|
+
"allowNo": false,
|
|
938
|
+
"type": "boolean"
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
"isESM": true,
|
|
942
|
+
"relativePath": [
|
|
943
|
+
"dist",
|
|
944
|
+
"commands",
|
|
945
|
+
"acf",
|
|
946
|
+
"rollback.js"
|
|
947
|
+
]
|
|
948
|
+
},
|
|
825
949
|
"api:diff": {
|
|
826
950
|
"aliases": [],
|
|
827
951
|
"args": {
|
|
@@ -1201,6 +1325,96 @@
|
|
|
1201
1325
|
"rm.js"
|
|
1202
1326
|
]
|
|
1203
1327
|
},
|
|
1328
|
+
"api:rollback": {
|
|
1329
|
+
"aliases": [],
|
|
1330
|
+
"args": {
|
|
1331
|
+
"path": {
|
|
1332
|
+
"description": "Path to api directory (overrides project config)",
|
|
1333
|
+
"name": "path"
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
"description": "Restore API route files to a snapshot taken automatically before an earlier `lps api push`",
|
|
1337
|
+
"examples": [
|
|
1338
|
+
"$ lps api rollback",
|
|
1339
|
+
"$ lps api rollback --list",
|
|
1340
|
+
"$ lps api rollback --to 1732000000000",
|
|
1341
|
+
"$ lps api rollback --dry-run"
|
|
1342
|
+
],
|
|
1343
|
+
"flags": {
|
|
1344
|
+
"json": {
|
|
1345
|
+
"description": "Format output as json.",
|
|
1346
|
+
"helpGroup": "GLOBAL",
|
|
1347
|
+
"name": "json",
|
|
1348
|
+
"allowNo": false,
|
|
1349
|
+
"type": "boolean"
|
|
1350
|
+
},
|
|
1351
|
+
"env": {
|
|
1352
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1353
|
+
"name": "env",
|
|
1354
|
+
"hasDynamicHelp": false,
|
|
1355
|
+
"multiple": false,
|
|
1356
|
+
"type": "option"
|
|
1357
|
+
},
|
|
1358
|
+
"dry-run": {
|
|
1359
|
+
"char": "d",
|
|
1360
|
+
"description": "Show what would change without making changes",
|
|
1361
|
+
"name": "dry-run",
|
|
1362
|
+
"allowNo": false,
|
|
1363
|
+
"type": "boolean"
|
|
1364
|
+
},
|
|
1365
|
+
"yes": {
|
|
1366
|
+
"char": "y",
|
|
1367
|
+
"description": "Answer yes to confirmation prompts",
|
|
1368
|
+
"name": "yes",
|
|
1369
|
+
"allowNo": false,
|
|
1370
|
+
"type": "boolean"
|
|
1371
|
+
},
|
|
1372
|
+
"list": {
|
|
1373
|
+
"description": "List available snapshots instead of rolling back",
|
|
1374
|
+
"name": "list",
|
|
1375
|
+
"allowNo": false,
|
|
1376
|
+
"type": "boolean"
|
|
1377
|
+
},
|
|
1378
|
+
"to": {
|
|
1379
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
1380
|
+
"name": "to",
|
|
1381
|
+
"hasDynamicHelp": false,
|
|
1382
|
+
"multiple": false,
|
|
1383
|
+
"type": "option"
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
"hasDynamicHelp": false,
|
|
1387
|
+
"hiddenAliases": [],
|
|
1388
|
+
"id": "api:rollback",
|
|
1389
|
+
"pluginAlias": "@loopress/cli",
|
|
1390
|
+
"pluginName": "@loopress/cli",
|
|
1391
|
+
"pluginType": "core",
|
|
1392
|
+
"strict": true,
|
|
1393
|
+
"enableJsonFlag": true,
|
|
1394
|
+
"dryRunFlag": {
|
|
1395
|
+
"dry-run": {
|
|
1396
|
+
"char": "d",
|
|
1397
|
+
"description": "Show what would change without making changes",
|
|
1398
|
+
"allowNo": false,
|
|
1399
|
+
"type": "boolean"
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
"yesFlag": {
|
|
1403
|
+
"yes": {
|
|
1404
|
+
"char": "y",
|
|
1405
|
+
"description": "Answer yes to confirmation prompts",
|
|
1406
|
+
"allowNo": false,
|
|
1407
|
+
"type": "boolean"
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
"isESM": true,
|
|
1411
|
+
"relativePath": [
|
|
1412
|
+
"dist",
|
|
1413
|
+
"commands",
|
|
1414
|
+
"api",
|
|
1415
|
+
"rollback.js"
|
|
1416
|
+
]
|
|
1417
|
+
},
|
|
1204
1418
|
"composer:init": {
|
|
1205
1419
|
"aliases": [],
|
|
1206
1420
|
"args": {},
|
|
@@ -1899,19 +2113,20 @@
|
|
|
1899
2113
|
"push.js"
|
|
1900
2114
|
]
|
|
1901
2115
|
},
|
|
1902
|
-
"
|
|
2116
|
+
"form:rollback": {
|
|
1903
2117
|
"aliases": [],
|
|
1904
2118
|
"args": {
|
|
1905
2119
|
"path": {
|
|
1906
|
-
"description": "Path to
|
|
2120
|
+
"description": "Path to forms directory (overrides project config)",
|
|
1907
2121
|
"name": "path"
|
|
1908
2122
|
}
|
|
1909
2123
|
},
|
|
1910
|
-
"description": "
|
|
2124
|
+
"description": "Restore forms to a snapshot taken automatically before an earlier `lps form push`",
|
|
1911
2125
|
"examples": [
|
|
1912
|
-
"$ lps
|
|
1913
|
-
"$ lps
|
|
1914
|
-
"$ lps
|
|
2126
|
+
"$ lps form rollback",
|
|
2127
|
+
"$ lps form rollback --list",
|
|
2128
|
+
"$ lps form rollback --to 1732000000000",
|
|
2129
|
+
"$ lps form rollback --dry-run"
|
|
1915
2130
|
],
|
|
1916
2131
|
"flags": {
|
|
1917
2132
|
"json": {
|
|
@@ -1928,9 +2143,29 @@
|
|
|
1928
2143
|
"multiple": false,
|
|
1929
2144
|
"type": "option"
|
|
1930
2145
|
},
|
|
1931
|
-
"
|
|
1932
|
-
"
|
|
1933
|
-
"
|
|
2146
|
+
"dry-run": {
|
|
2147
|
+
"char": "d",
|
|
2148
|
+
"description": "Show what would change without making changes",
|
|
2149
|
+
"name": "dry-run",
|
|
2150
|
+
"allowNo": false,
|
|
2151
|
+
"type": "boolean"
|
|
2152
|
+
},
|
|
2153
|
+
"yes": {
|
|
2154
|
+
"char": "y",
|
|
2155
|
+
"description": "Answer yes to confirmation prompts",
|
|
2156
|
+
"name": "yes",
|
|
2157
|
+
"allowNo": false,
|
|
2158
|
+
"type": "boolean"
|
|
2159
|
+
},
|
|
2160
|
+
"list": {
|
|
2161
|
+
"description": "List available snapshots instead of rolling back",
|
|
2162
|
+
"name": "list",
|
|
2163
|
+
"allowNo": false,
|
|
2164
|
+
"type": "boolean"
|
|
2165
|
+
},
|
|
2166
|
+
"to": {
|
|
2167
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
2168
|
+
"name": "to",
|
|
1934
2169
|
"hasDynamicHelp": false,
|
|
1935
2170
|
"multiple": false,
|
|
1936
2171
|
"type": "option"
|
|
@@ -1938,7 +2173,7 @@
|
|
|
1938
2173
|
},
|
|
1939
2174
|
"hasDynamicHelp": false,
|
|
1940
2175
|
"hiddenAliases": [],
|
|
1941
|
-
"id": "
|
|
2176
|
+
"id": "form:rollback",
|
|
1942
2177
|
"pluginAlias": "@loopress/cli",
|
|
1943
2178
|
"pluginName": "@loopress/cli",
|
|
1944
2179
|
"pluginType": "core",
|
|
@@ -1960,28 +2195,27 @@
|
|
|
1960
2195
|
"type": "boolean"
|
|
1961
2196
|
}
|
|
1962
2197
|
},
|
|
1963
|
-
"againstFlag": {
|
|
1964
|
-
"against": {
|
|
1965
|
-
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
1966
|
-
"input": [],
|
|
1967
|
-
"multiple": false,
|
|
1968
|
-
"type": "option"
|
|
1969
|
-
}
|
|
1970
|
-
},
|
|
1971
2198
|
"isESM": true,
|
|
1972
2199
|
"relativePath": [
|
|
1973
2200
|
"dist",
|
|
1974
2201
|
"commands",
|
|
1975
|
-
"
|
|
1976
|
-
"
|
|
2202
|
+
"form",
|
|
2203
|
+
"rollback.js"
|
|
1977
2204
|
]
|
|
1978
2205
|
},
|
|
1979
|
-
"hook:
|
|
2206
|
+
"hook:diff": {
|
|
1980
2207
|
"aliases": [],
|
|
1981
|
-
"args": {
|
|
1982
|
-
|
|
2208
|
+
"args": {
|
|
2209
|
+
"path": {
|
|
2210
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
2211
|
+
"name": "path"
|
|
2212
|
+
}
|
|
2213
|
+
},
|
|
2214
|
+
"description": "Show what differs in hook files between your local files and a WordPress environment, or between two environments",
|
|
1983
2215
|
"examples": [
|
|
1984
|
-
"$ lps hook
|
|
2216
|
+
"$ lps hook diff",
|
|
2217
|
+
"$ lps hook diff --env staging",
|
|
2218
|
+
"$ lps hook diff --env staging --against production"
|
|
1985
2219
|
],
|
|
1986
2220
|
"flags": {
|
|
1987
2221
|
"json": {
|
|
@@ -1997,11 +2231,81 @@
|
|
|
1997
2231
|
"hasDynamicHelp": false,
|
|
1998
2232
|
"multiple": false,
|
|
1999
2233
|
"type": "option"
|
|
2234
|
+
},
|
|
2235
|
+
"against": {
|
|
2236
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
2237
|
+
"name": "against",
|
|
2238
|
+
"hasDynamicHelp": false,
|
|
2239
|
+
"multiple": false,
|
|
2240
|
+
"type": "option"
|
|
2000
2241
|
}
|
|
2001
2242
|
},
|
|
2002
2243
|
"hasDynamicHelp": false,
|
|
2003
2244
|
"hiddenAliases": [],
|
|
2004
|
-
"id": "hook:
|
|
2245
|
+
"id": "hook:diff",
|
|
2246
|
+
"pluginAlias": "@loopress/cli",
|
|
2247
|
+
"pluginName": "@loopress/cli",
|
|
2248
|
+
"pluginType": "core",
|
|
2249
|
+
"strict": true,
|
|
2250
|
+
"enableJsonFlag": true,
|
|
2251
|
+
"dryRunFlag": {
|
|
2252
|
+
"dry-run": {
|
|
2253
|
+
"char": "d",
|
|
2254
|
+
"description": "Show what would change without making changes",
|
|
2255
|
+
"allowNo": false,
|
|
2256
|
+
"type": "boolean"
|
|
2257
|
+
}
|
|
2258
|
+
},
|
|
2259
|
+
"yesFlag": {
|
|
2260
|
+
"yes": {
|
|
2261
|
+
"char": "y",
|
|
2262
|
+
"description": "Answer yes to confirmation prompts",
|
|
2263
|
+
"allowNo": false,
|
|
2264
|
+
"type": "boolean"
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
"againstFlag": {
|
|
2268
|
+
"against": {
|
|
2269
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
2270
|
+
"input": [],
|
|
2271
|
+
"multiple": false,
|
|
2272
|
+
"type": "option"
|
|
2273
|
+
}
|
|
2274
|
+
},
|
|
2275
|
+
"isESM": true,
|
|
2276
|
+
"relativePath": [
|
|
2277
|
+
"dist",
|
|
2278
|
+
"commands",
|
|
2279
|
+
"hook",
|
|
2280
|
+
"diff.js"
|
|
2281
|
+
]
|
|
2282
|
+
},
|
|
2283
|
+
"hook:list": {
|
|
2284
|
+
"aliases": [],
|
|
2285
|
+
"args": {},
|
|
2286
|
+
"description": "List hook files (actions, filters, cron) from WordPress",
|
|
2287
|
+
"examples": [
|
|
2288
|
+
"$ lps hook list"
|
|
2289
|
+
],
|
|
2290
|
+
"flags": {
|
|
2291
|
+
"json": {
|
|
2292
|
+
"description": "Format output as json.",
|
|
2293
|
+
"helpGroup": "GLOBAL",
|
|
2294
|
+
"name": "json",
|
|
2295
|
+
"allowNo": false,
|
|
2296
|
+
"type": "boolean"
|
|
2297
|
+
},
|
|
2298
|
+
"env": {
|
|
2299
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2300
|
+
"name": "env",
|
|
2301
|
+
"hasDynamicHelp": false,
|
|
2302
|
+
"multiple": false,
|
|
2303
|
+
"type": "option"
|
|
2304
|
+
}
|
|
2305
|
+
},
|
|
2306
|
+
"hasDynamicHelp": false,
|
|
2307
|
+
"hiddenAliases": [],
|
|
2308
|
+
"id": "hook:list",
|
|
2005
2309
|
"pluginAlias": "@loopress/cli",
|
|
2006
2310
|
"pluginName": "@loopress/cli",
|
|
2007
2311
|
"pluginType": "core",
|
|
@@ -2248,19 +2552,20 @@
|
|
|
2248
2552
|
"rm.js"
|
|
2249
2553
|
]
|
|
2250
2554
|
},
|
|
2251
|
-
"
|
|
2555
|
+
"hook:rollback": {
|
|
2252
2556
|
"aliases": [],
|
|
2253
2557
|
"args": {
|
|
2254
|
-
"
|
|
2255
|
-
"description": "
|
|
2256
|
-
"name": "
|
|
2257
|
-
"required": true
|
|
2558
|
+
"path": {
|
|
2559
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
2560
|
+
"name": "path"
|
|
2258
2561
|
}
|
|
2259
2562
|
},
|
|
2260
|
-
"description": "
|
|
2563
|
+
"description": "Restore hook files to a snapshot taken automatically before an earlier `lps hook push`",
|
|
2261
2564
|
"examples": [
|
|
2262
|
-
"$ lps
|
|
2263
|
-
"$ lps
|
|
2565
|
+
"$ lps hook rollback",
|
|
2566
|
+
"$ lps hook rollback --list",
|
|
2567
|
+
"$ lps hook rollback --to 1732000000000",
|
|
2568
|
+
"$ lps hook rollback --dry-run"
|
|
2264
2569
|
],
|
|
2265
2570
|
"flags": {
|
|
2266
2571
|
"json": {
|
|
@@ -2284,9 +2589,22 @@
|
|
|
2284
2589
|
"allowNo": false,
|
|
2285
2590
|
"type": "boolean"
|
|
2286
2591
|
},
|
|
2287
|
-
"
|
|
2288
|
-
"
|
|
2289
|
-
"
|
|
2592
|
+
"yes": {
|
|
2593
|
+
"char": "y",
|
|
2594
|
+
"description": "Answer yes to confirmation prompts",
|
|
2595
|
+
"name": "yes",
|
|
2596
|
+
"allowNo": false,
|
|
2597
|
+
"type": "boolean"
|
|
2598
|
+
},
|
|
2599
|
+
"list": {
|
|
2600
|
+
"description": "List available snapshots instead of rolling back",
|
|
2601
|
+
"name": "list",
|
|
2602
|
+
"allowNo": false,
|
|
2603
|
+
"type": "boolean"
|
|
2604
|
+
},
|
|
2605
|
+
"to": {
|
|
2606
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
2607
|
+
"name": "to",
|
|
2290
2608
|
"hasDynamicHelp": false,
|
|
2291
2609
|
"multiple": false,
|
|
2292
2610
|
"type": "option"
|
|
@@ -2294,7 +2612,7 @@
|
|
|
2294
2612
|
},
|
|
2295
2613
|
"hasDynamicHelp": false,
|
|
2296
2614
|
"hiddenAliases": [],
|
|
2297
|
-
"id": "
|
|
2615
|
+
"id": "hook:rollback",
|
|
2298
2616
|
"pluginAlias": "@loopress/cli",
|
|
2299
2617
|
"pluginName": "@loopress/cli",
|
|
2300
2618
|
"pluginType": "core",
|
|
@@ -2320,23 +2638,23 @@
|
|
|
2320
2638
|
"relativePath": [
|
|
2321
2639
|
"dist",
|
|
2322
2640
|
"commands",
|
|
2323
|
-
"
|
|
2324
|
-
"
|
|
2641
|
+
"hook",
|
|
2642
|
+
"rollback.js"
|
|
2325
2643
|
]
|
|
2326
2644
|
},
|
|
2327
|
-
"
|
|
2645
|
+
"menu:diff": {
|
|
2328
2646
|
"aliases": [],
|
|
2329
2647
|
"args": {
|
|
2330
2648
|
"path": {
|
|
2331
|
-
"description": "Path to
|
|
2649
|
+
"description": "Path to menus directory (overrides project config)",
|
|
2332
2650
|
"name": "path"
|
|
2333
2651
|
}
|
|
2334
2652
|
},
|
|
2335
|
-
"description": "Show what differs
|
|
2653
|
+
"description": "Show what differs in nav menus and the active theme menu locations between your local files and a WordPress environment, or between two environments",
|
|
2336
2654
|
"examples": [
|
|
2337
|
-
"$ lps
|
|
2338
|
-
"$ lps
|
|
2339
|
-
"$ lps
|
|
2655
|
+
"$ lps menu diff",
|
|
2656
|
+
"$ lps menu diff --env staging",
|
|
2657
|
+
"$ lps menu diff --env staging --against production"
|
|
2340
2658
|
],
|
|
2341
2659
|
"flags": {
|
|
2342
2660
|
"json": {
|
|
@@ -2363,7 +2681,7 @@
|
|
|
2363
2681
|
},
|
|
2364
2682
|
"hasDynamicHelp": false,
|
|
2365
2683
|
"hiddenAliases": [],
|
|
2366
|
-
"id": "
|
|
2684
|
+
"id": "menu:diff",
|
|
2367
2685
|
"pluginAlias": "@loopress/cli",
|
|
2368
2686
|
"pluginName": "@loopress/cli",
|
|
2369
2687
|
"pluginType": "core",
|
|
@@ -2397,17 +2715,16 @@
|
|
|
2397
2715
|
"relativePath": [
|
|
2398
2716
|
"dist",
|
|
2399
2717
|
"commands",
|
|
2400
|
-
"
|
|
2718
|
+
"menu",
|
|
2401
2719
|
"diff.js"
|
|
2402
2720
|
]
|
|
2403
2721
|
},
|
|
2404
|
-
"
|
|
2722
|
+
"menu:list": {
|
|
2405
2723
|
"aliases": [],
|
|
2406
2724
|
"args": {},
|
|
2407
|
-
"description": "List
|
|
2725
|
+
"description": "List nav menus and the active theme menu locations on WordPress",
|
|
2408
2726
|
"examples": [
|
|
2409
|
-
"$ lps
|
|
2410
|
-
"$ lps option list --no-core"
|
|
2727
|
+
"$ lps menu list"
|
|
2411
2728
|
],
|
|
2412
2729
|
"flags": {
|
|
2413
2730
|
"json": {
|
|
@@ -2423,17 +2740,11 @@
|
|
|
2423
2740
|
"hasDynamicHelp": false,
|
|
2424
2741
|
"multiple": false,
|
|
2425
2742
|
"type": "option"
|
|
2426
|
-
},
|
|
2427
|
-
"no-core": {
|
|
2428
|
-
"description": "Exclude WordPress-native default options and the CORE column from the output, including --json",
|
|
2429
|
-
"name": "no-core",
|
|
2430
|
-
"allowNo": false,
|
|
2431
|
-
"type": "boolean"
|
|
2432
2743
|
}
|
|
2433
2744
|
},
|
|
2434
2745
|
"hasDynamicHelp": false,
|
|
2435
2746
|
"hiddenAliases": [],
|
|
2436
|
-
"id": "
|
|
2747
|
+
"id": "menu:list",
|
|
2437
2748
|
"pluginAlias": "@loopress/cli",
|
|
2438
2749
|
"pluginName": "@loopress/cli",
|
|
2439
2750
|
"pluginType": "core",
|
|
@@ -2459,30 +2770,23 @@
|
|
|
2459
2770
|
"relativePath": [
|
|
2460
2771
|
"dist",
|
|
2461
2772
|
"commands",
|
|
2462
|
-
"
|
|
2773
|
+
"menu",
|
|
2463
2774
|
"list.js"
|
|
2464
2775
|
]
|
|
2465
2776
|
},
|
|
2466
|
-
"
|
|
2777
|
+
"menu:pull": {
|
|
2467
2778
|
"aliases": [],
|
|
2468
2779
|
"args": {
|
|
2469
2780
|
"path": {
|
|
2470
|
-
"description": "Path to
|
|
2781
|
+
"description": "Path to menus directory (overrides project config)",
|
|
2471
2782
|
"name": "path"
|
|
2472
2783
|
}
|
|
2473
2784
|
},
|
|
2474
|
-
"description": "
|
|
2785
|
+
"description": "Pull nav menus and the active theme menu locations from WordPress",
|
|
2475
2786
|
"examples": [
|
|
2476
|
-
"$ lps
|
|
2787
|
+
"$ lps menu pull"
|
|
2477
2788
|
],
|
|
2478
2789
|
"flags": {
|
|
2479
|
-
"json": {
|
|
2480
|
-
"description": "Format output as json.",
|
|
2481
|
-
"helpGroup": "GLOBAL",
|
|
2482
|
-
"name": "json",
|
|
2483
|
-
"allowNo": false,
|
|
2484
|
-
"type": "boolean"
|
|
2485
|
-
},
|
|
2486
2790
|
"env": {
|
|
2487
2791
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2488
2792
|
"name": "env",
|
|
@@ -2507,12 +2811,12 @@
|
|
|
2507
2811
|
},
|
|
2508
2812
|
"hasDynamicHelp": false,
|
|
2509
2813
|
"hiddenAliases": [],
|
|
2510
|
-
"id": "
|
|
2814
|
+
"id": "menu:pull",
|
|
2511
2815
|
"pluginAlias": "@loopress/cli",
|
|
2512
2816
|
"pluginName": "@loopress/cli",
|
|
2513
2817
|
"pluginType": "core",
|
|
2514
2818
|
"strict": true,
|
|
2515
|
-
"enableJsonFlag":
|
|
2819
|
+
"enableJsonFlag": false,
|
|
2516
2820
|
"dryRunFlag": {
|
|
2517
2821
|
"dry-run": {
|
|
2518
2822
|
"char": "d",
|
|
@@ -2533,30 +2837,23 @@
|
|
|
2533
2837
|
"relativePath": [
|
|
2534
2838
|
"dist",
|
|
2535
2839
|
"commands",
|
|
2536
|
-
"
|
|
2840
|
+
"menu",
|
|
2537
2841
|
"pull.js"
|
|
2538
2842
|
]
|
|
2539
2843
|
},
|
|
2540
|
-
"
|
|
2844
|
+
"menu:push": {
|
|
2541
2845
|
"aliases": [],
|
|
2542
2846
|
"args": {
|
|
2543
2847
|
"path": {
|
|
2544
|
-
"description": "Path to
|
|
2848
|
+
"description": "Path to menus directory (overrides project config)",
|
|
2545
2849
|
"name": "path"
|
|
2546
2850
|
}
|
|
2547
2851
|
},
|
|
2548
|
-
"description": "Push
|
|
2852
|
+
"description": "Push local nav menus and the active theme menu locations to WordPress. Each menu's post_type/taxonomy items are resolved by slug on the target environment, never by a raw id; an item whose target does not exist there fails the whole menu rather than guessing.",
|
|
2549
2853
|
"examples": [
|
|
2550
|
-
"$ lps
|
|
2854
|
+
"$ lps menu push"
|
|
2551
2855
|
],
|
|
2552
2856
|
"flags": {
|
|
2553
|
-
"json": {
|
|
2554
|
-
"description": "Format output as json.",
|
|
2555
|
-
"helpGroup": "GLOBAL",
|
|
2556
|
-
"name": "json",
|
|
2557
|
-
"allowNo": false,
|
|
2558
|
-
"type": "boolean"
|
|
2559
|
-
},
|
|
2560
2857
|
"env": {
|
|
2561
2858
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2562
2859
|
"name": "env",
|
|
@@ -2581,33 +2878,33 @@
|
|
|
2581
2878
|
},
|
|
2582
2879
|
"hasDynamicHelp": false,
|
|
2583
2880
|
"hiddenAliases": [],
|
|
2584
|
-
"id": "
|
|
2881
|
+
"id": "menu:push",
|
|
2585
2882
|
"pluginAlias": "@loopress/cli",
|
|
2586
2883
|
"pluginName": "@loopress/cli",
|
|
2587
2884
|
"pluginType": "core",
|
|
2588
2885
|
"strict": true,
|
|
2589
|
-
"enableJsonFlag": true,
|
|
2590
2886
|
"isESM": true,
|
|
2591
2887
|
"relativePath": [
|
|
2592
2888
|
"dist",
|
|
2593
2889
|
"commands",
|
|
2594
|
-
"
|
|
2890
|
+
"menu",
|
|
2595
2891
|
"push.js"
|
|
2596
2892
|
]
|
|
2597
2893
|
},
|
|
2598
|
-
"
|
|
2894
|
+
"menu:rollback": {
|
|
2599
2895
|
"aliases": [],
|
|
2600
2896
|
"args": {
|
|
2601
|
-
"
|
|
2602
|
-
"description": "
|
|
2603
|
-
"name": "
|
|
2604
|
-
"required": true
|
|
2897
|
+
"path": {
|
|
2898
|
+
"description": "Path to menus directory (overrides project config)",
|
|
2899
|
+
"name": "path"
|
|
2605
2900
|
}
|
|
2606
2901
|
},
|
|
2607
|
-
"description": "
|
|
2902
|
+
"description": "Restore nav menus and menu locations to a snapshot taken automatically before an earlier `lps menu push`",
|
|
2608
2903
|
"examples": [
|
|
2609
|
-
"$ lps
|
|
2610
|
-
"$ lps
|
|
2904
|
+
"$ lps menu rollback",
|
|
2905
|
+
"$ lps menu rollback --list",
|
|
2906
|
+
"$ lps menu rollback --to 1732000000000",
|
|
2907
|
+
"$ lps menu rollback --dry-run"
|
|
2611
2908
|
],
|
|
2612
2909
|
"flags": {
|
|
2613
2910
|
"json": {
|
|
@@ -2638,15 +2935,15 @@
|
|
|
2638
2935
|
"allowNo": false,
|
|
2639
2936
|
"type": "boolean"
|
|
2640
2937
|
},
|
|
2641
|
-
"
|
|
2642
|
-
"description": "
|
|
2643
|
-
"name": "
|
|
2938
|
+
"list": {
|
|
2939
|
+
"description": "List available snapshots instead of rolling back",
|
|
2940
|
+
"name": "list",
|
|
2644
2941
|
"allowNo": false,
|
|
2645
2942
|
"type": "boolean"
|
|
2646
2943
|
},
|
|
2647
|
-
"
|
|
2648
|
-
"description": "
|
|
2649
|
-
"name": "
|
|
2944
|
+
"to": {
|
|
2945
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
2946
|
+
"name": "to",
|
|
2650
2947
|
"hasDynamicHelp": false,
|
|
2651
2948
|
"multiple": false,
|
|
2652
2949
|
"type": "option"
|
|
@@ -2654,7 +2951,7 @@
|
|
|
2654
2951
|
},
|
|
2655
2952
|
"hasDynamicHelp": false,
|
|
2656
2953
|
"hiddenAliases": [],
|
|
2657
|
-
"id": "
|
|
2954
|
+
"id": "menu:rollback",
|
|
2658
2955
|
"pluginAlias": "@loopress/cli",
|
|
2659
2956
|
"pluginName": "@loopress/cli",
|
|
2660
2957
|
"pluginType": "core",
|
|
@@ -2680,26 +2977,32 @@
|
|
|
2680
2977
|
"relativePath": [
|
|
2681
2978
|
"dist",
|
|
2682
2979
|
"commands",
|
|
2683
|
-
"
|
|
2684
|
-
"
|
|
2980
|
+
"menu",
|
|
2981
|
+
"rollback.js"
|
|
2685
2982
|
]
|
|
2686
2983
|
},
|
|
2687
|
-
"
|
|
2984
|
+
"option:add": {
|
|
2688
2985
|
"aliases": [],
|
|
2689
2986
|
"args": {
|
|
2690
|
-
"
|
|
2691
|
-
"description": "
|
|
2692
|
-
"name": "
|
|
2987
|
+
"name": {
|
|
2988
|
+
"description": "Option name to start tracking (see `lps option list`)",
|
|
2989
|
+
"name": "name",
|
|
2693
2990
|
"required": true
|
|
2694
2991
|
}
|
|
2695
2992
|
},
|
|
2696
|
-
"description": "
|
|
2993
|
+
"description": "Fetch a WordPress option by name and start tracking it locally. Run `lps option list` first to find the name: this copies a raw value across environments, verify it does not embed post/user IDs before pushing it elsewhere.",
|
|
2697
2994
|
"examples": [
|
|
2698
|
-
"$ lps
|
|
2699
|
-
"$ lps
|
|
2700
|
-
"$ lps plugin add contact-form-7 --dry-run"
|
|
2995
|
+
"$ lps option add wpseo_titles",
|
|
2996
|
+
"$ lps option add siteurl"
|
|
2701
2997
|
],
|
|
2702
2998
|
"flags": {
|
|
2999
|
+
"json": {
|
|
3000
|
+
"description": "Format output as json.",
|
|
3001
|
+
"helpGroup": "GLOBAL",
|
|
3002
|
+
"name": "json",
|
|
3003
|
+
"allowNo": false,
|
|
3004
|
+
"type": "boolean"
|
|
3005
|
+
},
|
|
2703
3006
|
"env": {
|
|
2704
3007
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2705
3008
|
"name": "env",
|
|
@@ -2714,9 +3017,9 @@
|
|
|
2714
3017
|
"allowNo": false,
|
|
2715
3018
|
"type": "boolean"
|
|
2716
3019
|
},
|
|
2717
|
-
"
|
|
2718
|
-
"description": "
|
|
2719
|
-
"name": "
|
|
3020
|
+
"path": {
|
|
3021
|
+
"description": "Path to options directory (overrides project config)",
|
|
3022
|
+
"name": "path",
|
|
2720
3023
|
"hasDynamicHelp": false,
|
|
2721
3024
|
"multiple": false,
|
|
2722
3025
|
"type": "option"
|
|
@@ -2724,12 +3027,12 @@
|
|
|
2724
3027
|
},
|
|
2725
3028
|
"hasDynamicHelp": false,
|
|
2726
3029
|
"hiddenAliases": [],
|
|
2727
|
-
"id": "
|
|
3030
|
+
"id": "option:add",
|
|
2728
3031
|
"pluginAlias": "@loopress/cli",
|
|
2729
3032
|
"pluginName": "@loopress/cli",
|
|
2730
3033
|
"pluginType": "core",
|
|
2731
3034
|
"strict": true,
|
|
2732
|
-
"enableJsonFlag":
|
|
3035
|
+
"enableJsonFlag": true,
|
|
2733
3036
|
"dryRunFlag": {
|
|
2734
3037
|
"dry-run": {
|
|
2735
3038
|
"char": "d",
|
|
@@ -2750,16 +3053,23 @@
|
|
|
2750
3053
|
"relativePath": [
|
|
2751
3054
|
"dist",
|
|
2752
3055
|
"commands",
|
|
2753
|
-
"
|
|
3056
|
+
"option",
|
|
2754
3057
|
"add.js"
|
|
2755
3058
|
]
|
|
2756
3059
|
},
|
|
2757
|
-
"
|
|
3060
|
+
"option:diff": {
|
|
2758
3061
|
"aliases": [],
|
|
2759
|
-
"args": {
|
|
2760
|
-
|
|
3062
|
+
"args": {
|
|
3063
|
+
"path": {
|
|
3064
|
+
"description": "Path to options directory (overrides project config)",
|
|
3065
|
+
"name": "path"
|
|
3066
|
+
}
|
|
3067
|
+
},
|
|
3068
|
+
"description": "Show what differs, for locally tracked options, between your local files and a WordPress environment, or between two environments",
|
|
2761
3069
|
"examples": [
|
|
2762
|
-
"$ lps
|
|
3070
|
+
"$ lps option diff",
|
|
3071
|
+
"$ lps option diff --env staging",
|
|
3072
|
+
"$ lps option diff --env staging --against production"
|
|
2763
3073
|
],
|
|
2764
3074
|
"flags": {
|
|
2765
3075
|
"json": {
|
|
@@ -2775,11 +3085,18 @@
|
|
|
2775
3085
|
"hasDynamicHelp": false,
|
|
2776
3086
|
"multiple": false,
|
|
2777
3087
|
"type": "option"
|
|
3088
|
+
},
|
|
3089
|
+
"against": {
|
|
3090
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3091
|
+
"name": "against",
|
|
3092
|
+
"hasDynamicHelp": false,
|
|
3093
|
+
"multiple": false,
|
|
3094
|
+
"type": "option"
|
|
2778
3095
|
}
|
|
2779
3096
|
},
|
|
2780
3097
|
"hasDynamicHelp": false,
|
|
2781
3098
|
"hiddenAliases": [],
|
|
2782
|
-
"id": "
|
|
3099
|
+
"id": "option:diff",
|
|
2783
3100
|
"pluginAlias": "@loopress/cli",
|
|
2784
3101
|
"pluginName": "@loopress/cli",
|
|
2785
3102
|
"pluginType": "core",
|
|
@@ -2801,21 +3118,29 @@
|
|
|
2801
3118
|
"type": "boolean"
|
|
2802
3119
|
}
|
|
2803
3120
|
},
|
|
3121
|
+
"againstFlag": {
|
|
3122
|
+
"against": {
|
|
3123
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3124
|
+
"input": [],
|
|
3125
|
+
"multiple": false,
|
|
3126
|
+
"type": "option"
|
|
3127
|
+
}
|
|
3128
|
+
},
|
|
2804
3129
|
"isESM": true,
|
|
2805
3130
|
"relativePath": [
|
|
2806
3131
|
"dist",
|
|
2807
3132
|
"commands",
|
|
2808
|
-
"
|
|
2809
|
-
"
|
|
3133
|
+
"option",
|
|
3134
|
+
"diff.js"
|
|
2810
3135
|
]
|
|
2811
3136
|
},
|
|
2812
|
-
"
|
|
3137
|
+
"option:list": {
|
|
2813
3138
|
"aliases": [],
|
|
2814
3139
|
"args": {},
|
|
2815
|
-
"description": "
|
|
3140
|
+
"description": "List WordPress option names currently on the site (names and autoload only, never values). CORE flags a WordPress-native default (certain); SOURCE? is a best-effort guessed plugin slug, found by name or by scanning active plugins' own PHP source (uncertain unless confirmed, occasionally wrong or blank, never trust it over CORE); PLUGIN is that slug's own declared display name, a label only, no confidence of its own. Use this to find the name of the option you want, then `lps option add <name>` to track it.",
|
|
2816
3141
|
"examples": [
|
|
2817
|
-
"$ lps
|
|
2818
|
-
"$ lps
|
|
3142
|
+
"$ lps option list",
|
|
3143
|
+
"$ lps option list --no-core"
|
|
2819
3144
|
],
|
|
2820
3145
|
"flags": {
|
|
2821
3146
|
"json": {
|
|
@@ -2832,17 +3157,16 @@
|
|
|
2832
3157
|
"multiple": false,
|
|
2833
3158
|
"type": "option"
|
|
2834
3159
|
},
|
|
2835
|
-
"
|
|
2836
|
-
"
|
|
2837
|
-
"
|
|
2838
|
-
"name": "dry-run",
|
|
3160
|
+
"no-core": {
|
|
3161
|
+
"description": "Exclude WordPress-native default options and the CORE column from the output, including --json",
|
|
3162
|
+
"name": "no-core",
|
|
2839
3163
|
"allowNo": false,
|
|
2840
3164
|
"type": "boolean"
|
|
2841
3165
|
}
|
|
2842
3166
|
},
|
|
2843
3167
|
"hasDynamicHelp": false,
|
|
2844
3168
|
"hiddenAliases": [],
|
|
2845
|
-
"id": "
|
|
3169
|
+
"id": "option:list",
|
|
2846
3170
|
"pluginAlias": "@loopress/cli",
|
|
2847
3171
|
"pluginName": "@loopress/cli",
|
|
2848
3172
|
"pluginType": "core",
|
|
@@ -2868,11 +3192,702 @@
|
|
|
2868
3192
|
"relativePath": [
|
|
2869
3193
|
"dist",
|
|
2870
3194
|
"commands",
|
|
2871
|
-
"
|
|
2872
|
-
"
|
|
3195
|
+
"option",
|
|
3196
|
+
"list.js"
|
|
2873
3197
|
]
|
|
2874
3198
|
},
|
|
2875
|
-
"
|
|
3199
|
+
"option:pull": {
|
|
3200
|
+
"aliases": [],
|
|
3201
|
+
"args": {
|
|
3202
|
+
"path": {
|
|
3203
|
+
"description": "Path to options directory (overrides project config)",
|
|
3204
|
+
"name": "path"
|
|
3205
|
+
}
|
|
3206
|
+
},
|
|
3207
|
+
"description": "Refresh locally tracked options from WordPress. Options not yet tracked are never pulled, run `lps option add <name>` for those first.",
|
|
3208
|
+
"examples": [
|
|
3209
|
+
"$ lps option pull"
|
|
3210
|
+
],
|
|
3211
|
+
"flags": {
|
|
3212
|
+
"json": {
|
|
3213
|
+
"description": "Format output as json.",
|
|
3214
|
+
"helpGroup": "GLOBAL",
|
|
3215
|
+
"name": "json",
|
|
3216
|
+
"allowNo": false,
|
|
3217
|
+
"type": "boolean"
|
|
3218
|
+
},
|
|
3219
|
+
"env": {
|
|
3220
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3221
|
+
"name": "env",
|
|
3222
|
+
"hasDynamicHelp": false,
|
|
3223
|
+
"multiple": false,
|
|
3224
|
+
"type": "option"
|
|
3225
|
+
},
|
|
3226
|
+
"dry-run": {
|
|
3227
|
+
"char": "d",
|
|
3228
|
+
"description": "Show what would change without making changes",
|
|
3229
|
+
"name": "dry-run",
|
|
3230
|
+
"allowNo": false,
|
|
3231
|
+
"type": "boolean"
|
|
3232
|
+
},
|
|
3233
|
+
"yes": {
|
|
3234
|
+
"char": "y",
|
|
3235
|
+
"description": "Answer yes to confirmation prompts",
|
|
3236
|
+
"name": "yes",
|
|
3237
|
+
"allowNo": false,
|
|
3238
|
+
"type": "boolean"
|
|
3239
|
+
}
|
|
3240
|
+
},
|
|
3241
|
+
"hasDynamicHelp": false,
|
|
3242
|
+
"hiddenAliases": [],
|
|
3243
|
+
"id": "option:pull",
|
|
3244
|
+
"pluginAlias": "@loopress/cli",
|
|
3245
|
+
"pluginName": "@loopress/cli",
|
|
3246
|
+
"pluginType": "core",
|
|
3247
|
+
"strict": true,
|
|
3248
|
+
"enableJsonFlag": true,
|
|
3249
|
+
"dryRunFlag": {
|
|
3250
|
+
"dry-run": {
|
|
3251
|
+
"char": "d",
|
|
3252
|
+
"description": "Show what would change without making changes",
|
|
3253
|
+
"allowNo": false,
|
|
3254
|
+
"type": "boolean"
|
|
3255
|
+
}
|
|
3256
|
+
},
|
|
3257
|
+
"yesFlag": {
|
|
3258
|
+
"yes": {
|
|
3259
|
+
"char": "y",
|
|
3260
|
+
"description": "Answer yes to confirmation prompts",
|
|
3261
|
+
"allowNo": false,
|
|
3262
|
+
"type": "boolean"
|
|
3263
|
+
}
|
|
3264
|
+
},
|
|
3265
|
+
"isESM": true,
|
|
3266
|
+
"relativePath": [
|
|
3267
|
+
"dist",
|
|
3268
|
+
"commands",
|
|
3269
|
+
"option",
|
|
3270
|
+
"pull.js"
|
|
3271
|
+
]
|
|
3272
|
+
},
|
|
3273
|
+
"option:push": {
|
|
3274
|
+
"aliases": [],
|
|
3275
|
+
"args": {
|
|
3276
|
+
"path": {
|
|
3277
|
+
"description": "Path to options directory (overrides project config)",
|
|
3278
|
+
"name": "path"
|
|
3279
|
+
}
|
|
3280
|
+
},
|
|
3281
|
+
"description": "Push locally tracked, non-readonly options to WordPress (upsert only, never deletes an untracked option). Options marked \"readonly\": true in their local file are skipped, edit the file to override.",
|
|
3282
|
+
"examples": [
|
|
3283
|
+
"$ lps option push"
|
|
3284
|
+
],
|
|
3285
|
+
"flags": {
|
|
3286
|
+
"json": {
|
|
3287
|
+
"description": "Format output as json.",
|
|
3288
|
+
"helpGroup": "GLOBAL",
|
|
3289
|
+
"name": "json",
|
|
3290
|
+
"allowNo": false,
|
|
3291
|
+
"type": "boolean"
|
|
3292
|
+
},
|
|
3293
|
+
"env": {
|
|
3294
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3295
|
+
"name": "env",
|
|
3296
|
+
"hasDynamicHelp": false,
|
|
3297
|
+
"multiple": false,
|
|
3298
|
+
"type": "option"
|
|
3299
|
+
},
|
|
3300
|
+
"dry-run": {
|
|
3301
|
+
"char": "d",
|
|
3302
|
+
"description": "Show what would change without making changes",
|
|
3303
|
+
"name": "dry-run",
|
|
3304
|
+
"allowNo": false,
|
|
3305
|
+
"type": "boolean"
|
|
3306
|
+
},
|
|
3307
|
+
"yes": {
|
|
3308
|
+
"char": "y",
|
|
3309
|
+
"description": "Answer yes to confirmation prompts",
|
|
3310
|
+
"name": "yes",
|
|
3311
|
+
"allowNo": false,
|
|
3312
|
+
"type": "boolean"
|
|
3313
|
+
}
|
|
3314
|
+
},
|
|
3315
|
+
"hasDynamicHelp": false,
|
|
3316
|
+
"hiddenAliases": [],
|
|
3317
|
+
"id": "option:push",
|
|
3318
|
+
"pluginAlias": "@loopress/cli",
|
|
3319
|
+
"pluginName": "@loopress/cli",
|
|
3320
|
+
"pluginType": "core",
|
|
3321
|
+
"strict": true,
|
|
3322
|
+
"enableJsonFlag": true,
|
|
3323
|
+
"isESM": true,
|
|
3324
|
+
"relativePath": [
|
|
3325
|
+
"dist",
|
|
3326
|
+
"commands",
|
|
3327
|
+
"option",
|
|
3328
|
+
"push.js"
|
|
3329
|
+
]
|
|
3330
|
+
},
|
|
3331
|
+
"option:remove": {
|
|
3332
|
+
"aliases": [],
|
|
3333
|
+
"args": {
|
|
3334
|
+
"name": {
|
|
3335
|
+
"description": "Option name to stop tracking",
|
|
3336
|
+
"name": "name",
|
|
3337
|
+
"required": true
|
|
3338
|
+
}
|
|
3339
|
+
},
|
|
3340
|
+
"description": "Stop tracking an option locally and delete it from WordPress. Local untracking always happens (git-reversible); pass --local-only to skip the WordPress delete and only stop tracking.",
|
|
3341
|
+
"examples": [
|
|
3342
|
+
"$ lps option remove wpseo_titles",
|
|
3343
|
+
"$ lps option remove wpseo_titles --local-only"
|
|
3344
|
+
],
|
|
3345
|
+
"flags": {
|
|
3346
|
+
"json": {
|
|
3347
|
+
"description": "Format output as json.",
|
|
3348
|
+
"helpGroup": "GLOBAL",
|
|
3349
|
+
"name": "json",
|
|
3350
|
+
"allowNo": false,
|
|
3351
|
+
"type": "boolean"
|
|
3352
|
+
},
|
|
3353
|
+
"env": {
|
|
3354
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3355
|
+
"name": "env",
|
|
3356
|
+
"hasDynamicHelp": false,
|
|
3357
|
+
"multiple": false,
|
|
3358
|
+
"type": "option"
|
|
3359
|
+
},
|
|
3360
|
+
"dry-run": {
|
|
3361
|
+
"char": "d",
|
|
3362
|
+
"description": "Show what would change without making changes",
|
|
3363
|
+
"name": "dry-run",
|
|
3364
|
+
"allowNo": false,
|
|
3365
|
+
"type": "boolean"
|
|
3366
|
+
},
|
|
3367
|
+
"yes": {
|
|
3368
|
+
"char": "y",
|
|
3369
|
+
"description": "Answer yes to confirmation prompts",
|
|
3370
|
+
"name": "yes",
|
|
3371
|
+
"allowNo": false,
|
|
3372
|
+
"type": "boolean"
|
|
3373
|
+
},
|
|
3374
|
+
"local-only": {
|
|
3375
|
+
"description": "Untrack locally without deleting the option on WordPress",
|
|
3376
|
+
"name": "local-only",
|
|
3377
|
+
"allowNo": false,
|
|
3378
|
+
"type": "boolean"
|
|
3379
|
+
},
|
|
3380
|
+
"path": {
|
|
3381
|
+
"description": "Path to options directory (overrides project config)",
|
|
3382
|
+
"name": "path",
|
|
3383
|
+
"hasDynamicHelp": false,
|
|
3384
|
+
"multiple": false,
|
|
3385
|
+
"type": "option"
|
|
3386
|
+
}
|
|
3387
|
+
},
|
|
3388
|
+
"hasDynamicHelp": false,
|
|
3389
|
+
"hiddenAliases": [],
|
|
3390
|
+
"id": "option:remove",
|
|
3391
|
+
"pluginAlias": "@loopress/cli",
|
|
3392
|
+
"pluginName": "@loopress/cli",
|
|
3393
|
+
"pluginType": "core",
|
|
3394
|
+
"strict": true,
|
|
3395
|
+
"enableJsonFlag": true,
|
|
3396
|
+
"dryRunFlag": {
|
|
3397
|
+
"dry-run": {
|
|
3398
|
+
"char": "d",
|
|
3399
|
+
"description": "Show what would change without making changes",
|
|
3400
|
+
"allowNo": false,
|
|
3401
|
+
"type": "boolean"
|
|
3402
|
+
}
|
|
3403
|
+
},
|
|
3404
|
+
"yesFlag": {
|
|
3405
|
+
"yes": {
|
|
3406
|
+
"char": "y",
|
|
3407
|
+
"description": "Answer yes to confirmation prompts",
|
|
3408
|
+
"allowNo": false,
|
|
3409
|
+
"type": "boolean"
|
|
3410
|
+
}
|
|
3411
|
+
},
|
|
3412
|
+
"isESM": true,
|
|
3413
|
+
"relativePath": [
|
|
3414
|
+
"dist",
|
|
3415
|
+
"commands",
|
|
3416
|
+
"option",
|
|
3417
|
+
"remove.js"
|
|
3418
|
+
]
|
|
3419
|
+
},
|
|
3420
|
+
"option:rollback": {
|
|
3421
|
+
"aliases": [],
|
|
3422
|
+
"args": {
|
|
3423
|
+
"path": {
|
|
3424
|
+
"description": "Path to options directory (overrides project config)",
|
|
3425
|
+
"name": "path"
|
|
3426
|
+
}
|
|
3427
|
+
},
|
|
3428
|
+
"description": "Restore tracked options to a snapshot taken automatically before an earlier `lps option push`",
|
|
3429
|
+
"examples": [
|
|
3430
|
+
"$ lps option rollback",
|
|
3431
|
+
"$ lps option rollback --list",
|
|
3432
|
+
"$ lps option rollback --to 1732000000000",
|
|
3433
|
+
"$ lps option rollback --dry-run"
|
|
3434
|
+
],
|
|
3435
|
+
"flags": {
|
|
3436
|
+
"json": {
|
|
3437
|
+
"description": "Format output as json.",
|
|
3438
|
+
"helpGroup": "GLOBAL",
|
|
3439
|
+
"name": "json",
|
|
3440
|
+
"allowNo": false,
|
|
3441
|
+
"type": "boolean"
|
|
3442
|
+
},
|
|
3443
|
+
"env": {
|
|
3444
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3445
|
+
"name": "env",
|
|
3446
|
+
"hasDynamicHelp": false,
|
|
3447
|
+
"multiple": false,
|
|
3448
|
+
"type": "option"
|
|
3449
|
+
},
|
|
3450
|
+
"dry-run": {
|
|
3451
|
+
"char": "d",
|
|
3452
|
+
"description": "Show what would change without making changes",
|
|
3453
|
+
"name": "dry-run",
|
|
3454
|
+
"allowNo": false,
|
|
3455
|
+
"type": "boolean"
|
|
3456
|
+
},
|
|
3457
|
+
"yes": {
|
|
3458
|
+
"char": "y",
|
|
3459
|
+
"description": "Answer yes to confirmation prompts",
|
|
3460
|
+
"name": "yes",
|
|
3461
|
+
"allowNo": false,
|
|
3462
|
+
"type": "boolean"
|
|
3463
|
+
},
|
|
3464
|
+
"list": {
|
|
3465
|
+
"description": "List available snapshots instead of rolling back",
|
|
3466
|
+
"name": "list",
|
|
3467
|
+
"allowNo": false,
|
|
3468
|
+
"type": "boolean"
|
|
3469
|
+
},
|
|
3470
|
+
"to": {
|
|
3471
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
3472
|
+
"name": "to",
|
|
3473
|
+
"hasDynamicHelp": false,
|
|
3474
|
+
"multiple": false,
|
|
3475
|
+
"type": "option"
|
|
3476
|
+
}
|
|
3477
|
+
},
|
|
3478
|
+
"hasDynamicHelp": false,
|
|
3479
|
+
"hiddenAliases": [],
|
|
3480
|
+
"id": "option:rollback",
|
|
3481
|
+
"pluginAlias": "@loopress/cli",
|
|
3482
|
+
"pluginName": "@loopress/cli",
|
|
3483
|
+
"pluginType": "core",
|
|
3484
|
+
"strict": true,
|
|
3485
|
+
"enableJsonFlag": true,
|
|
3486
|
+
"dryRunFlag": {
|
|
3487
|
+
"dry-run": {
|
|
3488
|
+
"char": "d",
|
|
3489
|
+
"description": "Show what would change without making changes",
|
|
3490
|
+
"allowNo": false,
|
|
3491
|
+
"type": "boolean"
|
|
3492
|
+
}
|
|
3493
|
+
},
|
|
3494
|
+
"yesFlag": {
|
|
3495
|
+
"yes": {
|
|
3496
|
+
"char": "y",
|
|
3497
|
+
"description": "Answer yes to confirmation prompts",
|
|
3498
|
+
"allowNo": false,
|
|
3499
|
+
"type": "boolean"
|
|
3500
|
+
}
|
|
3501
|
+
},
|
|
3502
|
+
"isESM": true,
|
|
3503
|
+
"relativePath": [
|
|
3504
|
+
"dist",
|
|
3505
|
+
"commands",
|
|
3506
|
+
"option",
|
|
3507
|
+
"rollback.js"
|
|
3508
|
+
]
|
|
3509
|
+
},
|
|
3510
|
+
"page:diff": {
|
|
3511
|
+
"aliases": [],
|
|
3512
|
+
"args": {
|
|
3513
|
+
"path": {
|
|
3514
|
+
"description": "Path to pages directory (overrides project config)",
|
|
3515
|
+
"name": "path"
|
|
3516
|
+
}
|
|
3517
|
+
},
|
|
3518
|
+
"description": "Show what differs in static pages between your local files and a WordPress environment, or between two environments",
|
|
3519
|
+
"examples": [
|
|
3520
|
+
"$ lps page diff",
|
|
3521
|
+
"$ lps page diff --env staging",
|
|
3522
|
+
"$ lps page diff --env staging --against production"
|
|
3523
|
+
],
|
|
3524
|
+
"flags": {
|
|
3525
|
+
"json": {
|
|
3526
|
+
"description": "Format output as json.",
|
|
3527
|
+
"helpGroup": "GLOBAL",
|
|
3528
|
+
"name": "json",
|
|
3529
|
+
"allowNo": false,
|
|
3530
|
+
"type": "boolean"
|
|
3531
|
+
},
|
|
3532
|
+
"env": {
|
|
3533
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3534
|
+
"name": "env",
|
|
3535
|
+
"hasDynamicHelp": false,
|
|
3536
|
+
"multiple": false,
|
|
3537
|
+
"type": "option"
|
|
3538
|
+
},
|
|
3539
|
+
"against": {
|
|
3540
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3541
|
+
"name": "against",
|
|
3542
|
+
"hasDynamicHelp": false,
|
|
3543
|
+
"multiple": false,
|
|
3544
|
+
"type": "option"
|
|
3545
|
+
}
|
|
3546
|
+
},
|
|
3547
|
+
"hasDynamicHelp": false,
|
|
3548
|
+
"hiddenAliases": [],
|
|
3549
|
+
"id": "page:diff",
|
|
3550
|
+
"pluginAlias": "@loopress/cli",
|
|
3551
|
+
"pluginName": "@loopress/cli",
|
|
3552
|
+
"pluginType": "core",
|
|
3553
|
+
"strict": true,
|
|
3554
|
+
"enableJsonFlag": true,
|
|
3555
|
+
"dryRunFlag": {
|
|
3556
|
+
"dry-run": {
|
|
3557
|
+
"char": "d",
|
|
3558
|
+
"description": "Show what would change without making changes",
|
|
3559
|
+
"allowNo": false,
|
|
3560
|
+
"type": "boolean"
|
|
3561
|
+
}
|
|
3562
|
+
},
|
|
3563
|
+
"yesFlag": {
|
|
3564
|
+
"yes": {
|
|
3565
|
+
"char": "y",
|
|
3566
|
+
"description": "Answer yes to confirmation prompts",
|
|
3567
|
+
"allowNo": false,
|
|
3568
|
+
"type": "boolean"
|
|
3569
|
+
}
|
|
3570
|
+
},
|
|
3571
|
+
"againstFlag": {
|
|
3572
|
+
"against": {
|
|
3573
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3574
|
+
"input": [],
|
|
3575
|
+
"multiple": false,
|
|
3576
|
+
"type": "option"
|
|
3577
|
+
}
|
|
3578
|
+
},
|
|
3579
|
+
"isESM": true,
|
|
3580
|
+
"relativePath": [
|
|
3581
|
+
"dist",
|
|
3582
|
+
"commands",
|
|
3583
|
+
"page",
|
|
3584
|
+
"diff.js"
|
|
3585
|
+
]
|
|
3586
|
+
},
|
|
3587
|
+
"page:list": {
|
|
3588
|
+
"aliases": [],
|
|
3589
|
+
"args": {},
|
|
3590
|
+
"description": "List the static pages managed by Loopress on WordPress",
|
|
3591
|
+
"examples": [
|
|
3592
|
+
"$ lps page list"
|
|
3593
|
+
],
|
|
3594
|
+
"flags": {
|
|
3595
|
+
"json": {
|
|
3596
|
+
"description": "Format output as json.",
|
|
3597
|
+
"helpGroup": "GLOBAL",
|
|
3598
|
+
"name": "json",
|
|
3599
|
+
"allowNo": false,
|
|
3600
|
+
"type": "boolean"
|
|
3601
|
+
},
|
|
3602
|
+
"env": {
|
|
3603
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3604
|
+
"name": "env",
|
|
3605
|
+
"hasDynamicHelp": false,
|
|
3606
|
+
"multiple": false,
|
|
3607
|
+
"type": "option"
|
|
3608
|
+
}
|
|
3609
|
+
},
|
|
3610
|
+
"hasDynamicHelp": false,
|
|
3611
|
+
"hiddenAliases": [],
|
|
3612
|
+
"id": "page:list",
|
|
3613
|
+
"pluginAlias": "@loopress/cli",
|
|
3614
|
+
"pluginName": "@loopress/cli",
|
|
3615
|
+
"pluginType": "core",
|
|
3616
|
+
"strict": true,
|
|
3617
|
+
"enableJsonFlag": true,
|
|
3618
|
+
"dryRunFlag": {
|
|
3619
|
+
"dry-run": {
|
|
3620
|
+
"char": "d",
|
|
3621
|
+
"description": "Show what would change without making changes",
|
|
3622
|
+
"allowNo": false,
|
|
3623
|
+
"type": "boolean"
|
|
3624
|
+
}
|
|
3625
|
+
},
|
|
3626
|
+
"yesFlag": {
|
|
3627
|
+
"yes": {
|
|
3628
|
+
"char": "y",
|
|
3629
|
+
"description": "Answer yes to confirmation prompts",
|
|
3630
|
+
"allowNo": false,
|
|
3631
|
+
"type": "boolean"
|
|
3632
|
+
}
|
|
3633
|
+
},
|
|
3634
|
+
"isESM": true,
|
|
3635
|
+
"relativePath": [
|
|
3636
|
+
"dist",
|
|
3637
|
+
"commands",
|
|
3638
|
+
"page",
|
|
3639
|
+
"list.js"
|
|
3640
|
+
]
|
|
3641
|
+
},
|
|
3642
|
+
"page:push": {
|
|
3643
|
+
"aliases": [],
|
|
3644
|
+
"args": {
|
|
3645
|
+
"slug": {
|
|
3646
|
+
"description": "Push only this page (its file name without .html). Pushes every page when omitted.",
|
|
3647
|
+
"name": "slug"
|
|
3648
|
+
}
|
|
3649
|
+
},
|
|
3650
|
+
"description": "Push static HTML pages (pages/<slug>.html) to WordPress. The `status` header (draft or publish, draft by default) is applied on every push.",
|
|
3651
|
+
"examples": [
|
|
3652
|
+
"$ lps page push",
|
|
3653
|
+
"$ lps page push legal-notice",
|
|
3654
|
+
"$ lps page push --dry-run"
|
|
3655
|
+
],
|
|
3656
|
+
"flags": {
|
|
3657
|
+
"json": {
|
|
3658
|
+
"description": "Format output as json.",
|
|
3659
|
+
"helpGroup": "GLOBAL",
|
|
3660
|
+
"name": "json",
|
|
3661
|
+
"allowNo": false,
|
|
3662
|
+
"type": "boolean"
|
|
3663
|
+
},
|
|
3664
|
+
"env": {
|
|
3665
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3666
|
+
"name": "env",
|
|
3667
|
+
"hasDynamicHelp": false,
|
|
3668
|
+
"multiple": false,
|
|
3669
|
+
"type": "option"
|
|
3670
|
+
},
|
|
3671
|
+
"dry-run": {
|
|
3672
|
+
"char": "d",
|
|
3673
|
+
"description": "Show what would change without making changes",
|
|
3674
|
+
"name": "dry-run",
|
|
3675
|
+
"allowNo": false,
|
|
3676
|
+
"type": "boolean"
|
|
3677
|
+
},
|
|
3678
|
+
"yes": {
|
|
3679
|
+
"char": "y",
|
|
3680
|
+
"description": "Answer yes to confirmation prompts",
|
|
3681
|
+
"name": "yes",
|
|
3682
|
+
"allowNo": false,
|
|
3683
|
+
"type": "boolean"
|
|
3684
|
+
}
|
|
3685
|
+
},
|
|
3686
|
+
"hasDynamicHelp": false,
|
|
3687
|
+
"hiddenAliases": [],
|
|
3688
|
+
"id": "page:push",
|
|
3689
|
+
"pluginAlias": "@loopress/cli",
|
|
3690
|
+
"pluginName": "@loopress/cli",
|
|
3691
|
+
"pluginType": "core",
|
|
3692
|
+
"strict": true,
|
|
3693
|
+
"enableJsonFlag": true,
|
|
3694
|
+
"isESM": true,
|
|
3695
|
+
"relativePath": [
|
|
3696
|
+
"dist",
|
|
3697
|
+
"commands",
|
|
3698
|
+
"page",
|
|
3699
|
+
"push.js"
|
|
3700
|
+
]
|
|
3701
|
+
},
|
|
3702
|
+
"plugin:add": {
|
|
3703
|
+
"aliases": [],
|
|
3704
|
+
"args": {
|
|
3705
|
+
"slug": {
|
|
3706
|
+
"description": "Plugin slug on WordPress.org",
|
|
3707
|
+
"name": "slug",
|
|
3708
|
+
"required": true
|
|
3709
|
+
}
|
|
3710
|
+
},
|
|
3711
|
+
"description": "Add a WordPress.org plugin to loopress.json",
|
|
3712
|
+
"examples": [
|
|
3713
|
+
"$ lps plugin add woocommerce",
|
|
3714
|
+
"$ lps plugin add woocommerce --version 9.4.2",
|
|
3715
|
+
"$ lps plugin add contact-form-7 --dry-run"
|
|
3716
|
+
],
|
|
3717
|
+
"flags": {
|
|
3718
|
+
"env": {
|
|
3719
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3720
|
+
"name": "env",
|
|
3721
|
+
"hasDynamicHelp": false,
|
|
3722
|
+
"multiple": false,
|
|
3723
|
+
"type": "option"
|
|
3724
|
+
},
|
|
3725
|
+
"dry-run": {
|
|
3726
|
+
"char": "d",
|
|
3727
|
+
"description": "Show what would change without making changes",
|
|
3728
|
+
"name": "dry-run",
|
|
3729
|
+
"allowNo": false,
|
|
3730
|
+
"type": "boolean"
|
|
3731
|
+
},
|
|
3732
|
+
"version": {
|
|
3733
|
+
"description": "Exact version to pin (default: \"latest\", tracked on every push)",
|
|
3734
|
+
"name": "version",
|
|
3735
|
+
"hasDynamicHelp": false,
|
|
3736
|
+
"multiple": false,
|
|
3737
|
+
"type": "option"
|
|
3738
|
+
}
|
|
3739
|
+
},
|
|
3740
|
+
"hasDynamicHelp": false,
|
|
3741
|
+
"hiddenAliases": [],
|
|
3742
|
+
"id": "plugin:add",
|
|
3743
|
+
"pluginAlias": "@loopress/cli",
|
|
3744
|
+
"pluginName": "@loopress/cli",
|
|
3745
|
+
"pluginType": "core",
|
|
3746
|
+
"strict": true,
|
|
3747
|
+
"enableJsonFlag": false,
|
|
3748
|
+
"dryRunFlag": {
|
|
3749
|
+
"dry-run": {
|
|
3750
|
+
"char": "d",
|
|
3751
|
+
"description": "Show what would change without making changes",
|
|
3752
|
+
"allowNo": false,
|
|
3753
|
+
"type": "boolean"
|
|
3754
|
+
}
|
|
3755
|
+
},
|
|
3756
|
+
"yesFlag": {
|
|
3757
|
+
"yes": {
|
|
3758
|
+
"char": "y",
|
|
3759
|
+
"description": "Answer yes to confirmation prompts",
|
|
3760
|
+
"allowNo": false,
|
|
3761
|
+
"type": "boolean"
|
|
3762
|
+
}
|
|
3763
|
+
},
|
|
3764
|
+
"isESM": true,
|
|
3765
|
+
"relativePath": [
|
|
3766
|
+
"dist",
|
|
3767
|
+
"commands",
|
|
3768
|
+
"plugin",
|
|
3769
|
+
"add.js"
|
|
3770
|
+
]
|
|
3771
|
+
},
|
|
3772
|
+
"plugin:audit": {
|
|
3773
|
+
"aliases": [],
|
|
3774
|
+
"args": {},
|
|
3775
|
+
"description": "Check the plugins in loopress.json for known vulnerabilities and health issues",
|
|
3776
|
+
"examples": [
|
|
3777
|
+
"$ lps plugin audit"
|
|
3778
|
+
],
|
|
3779
|
+
"flags": {
|
|
3780
|
+
"json": {
|
|
3781
|
+
"description": "Format output as json.",
|
|
3782
|
+
"helpGroup": "GLOBAL",
|
|
3783
|
+
"name": "json",
|
|
3784
|
+
"allowNo": false,
|
|
3785
|
+
"type": "boolean"
|
|
3786
|
+
},
|
|
3787
|
+
"env": {
|
|
3788
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3789
|
+
"name": "env",
|
|
3790
|
+
"hasDynamicHelp": false,
|
|
3791
|
+
"multiple": false,
|
|
3792
|
+
"type": "option"
|
|
3793
|
+
}
|
|
3794
|
+
},
|
|
3795
|
+
"hasDynamicHelp": false,
|
|
3796
|
+
"hiddenAliases": [],
|
|
3797
|
+
"id": "plugin:audit",
|
|
3798
|
+
"pluginAlias": "@loopress/cli",
|
|
3799
|
+
"pluginName": "@loopress/cli",
|
|
3800
|
+
"pluginType": "core",
|
|
3801
|
+
"strict": true,
|
|
3802
|
+
"enableJsonFlag": true,
|
|
3803
|
+
"dryRunFlag": {
|
|
3804
|
+
"dry-run": {
|
|
3805
|
+
"char": "d",
|
|
3806
|
+
"description": "Show what would change without making changes",
|
|
3807
|
+
"allowNo": false,
|
|
3808
|
+
"type": "boolean"
|
|
3809
|
+
}
|
|
3810
|
+
},
|
|
3811
|
+
"yesFlag": {
|
|
3812
|
+
"yes": {
|
|
3813
|
+
"char": "y",
|
|
3814
|
+
"description": "Answer yes to confirmation prompts",
|
|
3815
|
+
"allowNo": false,
|
|
3816
|
+
"type": "boolean"
|
|
3817
|
+
}
|
|
3818
|
+
},
|
|
3819
|
+
"isESM": true,
|
|
3820
|
+
"relativePath": [
|
|
3821
|
+
"dist",
|
|
3822
|
+
"commands",
|
|
3823
|
+
"plugin",
|
|
3824
|
+
"audit.js"
|
|
3825
|
+
]
|
|
3826
|
+
},
|
|
3827
|
+
"plugin:pull": {
|
|
3828
|
+
"aliases": [],
|
|
3829
|
+
"args": {},
|
|
3830
|
+
"description": "Pull installed plugins from WordPress into loopress.json, pinned to their live versions",
|
|
3831
|
+
"examples": [
|
|
3832
|
+
"$ lps plugin pull",
|
|
3833
|
+
"$ lps plugin pull --dry-run"
|
|
3834
|
+
],
|
|
3835
|
+
"flags": {
|
|
3836
|
+
"json": {
|
|
3837
|
+
"description": "Format output as json.",
|
|
3838
|
+
"helpGroup": "GLOBAL",
|
|
3839
|
+
"name": "json",
|
|
3840
|
+
"allowNo": false,
|
|
3841
|
+
"type": "boolean"
|
|
3842
|
+
},
|
|
3843
|
+
"env": {
|
|
3844
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3845
|
+
"name": "env",
|
|
3846
|
+
"hasDynamicHelp": false,
|
|
3847
|
+
"multiple": false,
|
|
3848
|
+
"type": "option"
|
|
3849
|
+
},
|
|
3850
|
+
"dry-run": {
|
|
3851
|
+
"char": "d",
|
|
3852
|
+
"description": "Show what would change without making changes",
|
|
3853
|
+
"name": "dry-run",
|
|
3854
|
+
"allowNo": false,
|
|
3855
|
+
"type": "boolean"
|
|
3856
|
+
}
|
|
3857
|
+
},
|
|
3858
|
+
"hasDynamicHelp": false,
|
|
3859
|
+
"hiddenAliases": [],
|
|
3860
|
+
"id": "plugin:pull",
|
|
3861
|
+
"pluginAlias": "@loopress/cli",
|
|
3862
|
+
"pluginName": "@loopress/cli",
|
|
3863
|
+
"pluginType": "core",
|
|
3864
|
+
"strict": true,
|
|
3865
|
+
"enableJsonFlag": true,
|
|
3866
|
+
"dryRunFlag": {
|
|
3867
|
+
"dry-run": {
|
|
3868
|
+
"char": "d",
|
|
3869
|
+
"description": "Show what would change without making changes",
|
|
3870
|
+
"allowNo": false,
|
|
3871
|
+
"type": "boolean"
|
|
3872
|
+
}
|
|
3873
|
+
},
|
|
3874
|
+
"yesFlag": {
|
|
3875
|
+
"yes": {
|
|
3876
|
+
"char": "y",
|
|
3877
|
+
"description": "Answer yes to confirmation prompts",
|
|
3878
|
+
"allowNo": false,
|
|
3879
|
+
"type": "boolean"
|
|
3880
|
+
}
|
|
3881
|
+
},
|
|
3882
|
+
"isESM": true,
|
|
3883
|
+
"relativePath": [
|
|
3884
|
+
"dist",
|
|
3885
|
+
"commands",
|
|
3886
|
+
"plugin",
|
|
3887
|
+
"pull.js"
|
|
3888
|
+
]
|
|
3889
|
+
},
|
|
3890
|
+
"plugin:push": {
|
|
2876
3891
|
"aliases": [],
|
|
2877
3892
|
"args": {},
|
|
2878
3893
|
"description": "Install plugins on WordPress to match loopress.json, pinned via Composer + WPackagist",
|
|
@@ -3475,6 +4490,96 @@
|
|
|
3475
4490
|
"push.js"
|
|
3476
4491
|
]
|
|
3477
4492
|
},
|
|
4493
|
+
"seo:rollback": {
|
|
4494
|
+
"aliases": [],
|
|
4495
|
+
"args": {
|
|
4496
|
+
"path": {
|
|
4497
|
+
"description": "Path to SEO directory (overrides project config)",
|
|
4498
|
+
"name": "path"
|
|
4499
|
+
}
|
|
4500
|
+
},
|
|
4501
|
+
"description": "Restore SEO settings, post meta, and redirects to a snapshot taken automatically before an earlier `lps seo push`",
|
|
4502
|
+
"examples": [
|
|
4503
|
+
"$ lps seo rollback",
|
|
4504
|
+
"$ lps seo rollback --list",
|
|
4505
|
+
"$ lps seo rollback --to 1732000000000",
|
|
4506
|
+
"$ lps seo rollback --dry-run"
|
|
4507
|
+
],
|
|
4508
|
+
"flags": {
|
|
4509
|
+
"json": {
|
|
4510
|
+
"description": "Format output as json.",
|
|
4511
|
+
"helpGroup": "GLOBAL",
|
|
4512
|
+
"name": "json",
|
|
4513
|
+
"allowNo": false,
|
|
4514
|
+
"type": "boolean"
|
|
4515
|
+
},
|
|
4516
|
+
"env": {
|
|
4517
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
4518
|
+
"name": "env",
|
|
4519
|
+
"hasDynamicHelp": false,
|
|
4520
|
+
"multiple": false,
|
|
4521
|
+
"type": "option"
|
|
4522
|
+
},
|
|
4523
|
+
"dry-run": {
|
|
4524
|
+
"char": "d",
|
|
4525
|
+
"description": "Show what would change without making changes",
|
|
4526
|
+
"name": "dry-run",
|
|
4527
|
+
"allowNo": false,
|
|
4528
|
+
"type": "boolean"
|
|
4529
|
+
},
|
|
4530
|
+
"yes": {
|
|
4531
|
+
"char": "y",
|
|
4532
|
+
"description": "Answer yes to confirmation prompts",
|
|
4533
|
+
"name": "yes",
|
|
4534
|
+
"allowNo": false,
|
|
4535
|
+
"type": "boolean"
|
|
4536
|
+
},
|
|
4537
|
+
"list": {
|
|
4538
|
+
"description": "List available snapshots instead of rolling back",
|
|
4539
|
+
"name": "list",
|
|
4540
|
+
"allowNo": false,
|
|
4541
|
+
"type": "boolean"
|
|
4542
|
+
},
|
|
4543
|
+
"to": {
|
|
4544
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
4545
|
+
"name": "to",
|
|
4546
|
+
"hasDynamicHelp": false,
|
|
4547
|
+
"multiple": false,
|
|
4548
|
+
"type": "option"
|
|
4549
|
+
}
|
|
4550
|
+
},
|
|
4551
|
+
"hasDynamicHelp": false,
|
|
4552
|
+
"hiddenAliases": [],
|
|
4553
|
+
"id": "seo:rollback",
|
|
4554
|
+
"pluginAlias": "@loopress/cli",
|
|
4555
|
+
"pluginName": "@loopress/cli",
|
|
4556
|
+
"pluginType": "core",
|
|
4557
|
+
"strict": true,
|
|
4558
|
+
"enableJsonFlag": true,
|
|
4559
|
+
"dryRunFlag": {
|
|
4560
|
+
"dry-run": {
|
|
4561
|
+
"char": "d",
|
|
4562
|
+
"description": "Show what would change without making changes",
|
|
4563
|
+
"allowNo": false,
|
|
4564
|
+
"type": "boolean"
|
|
4565
|
+
}
|
|
4566
|
+
},
|
|
4567
|
+
"yesFlag": {
|
|
4568
|
+
"yes": {
|
|
4569
|
+
"char": "y",
|
|
4570
|
+
"description": "Answer yes to confirmation prompts",
|
|
4571
|
+
"allowNo": false,
|
|
4572
|
+
"type": "boolean"
|
|
4573
|
+
}
|
|
4574
|
+
},
|
|
4575
|
+
"isESM": true,
|
|
4576
|
+
"relativePath": [
|
|
4577
|
+
"dist",
|
|
4578
|
+
"commands",
|
|
4579
|
+
"seo",
|
|
4580
|
+
"rollback.js"
|
|
4581
|
+
]
|
|
4582
|
+
},
|
|
3478
4583
|
"snippet:diff": {
|
|
3479
4584
|
"aliases": [],
|
|
3480
4585
|
"args": {
|
|
@@ -3757,18 +4862,156 @@
|
|
|
3757
4862
|
},
|
|
3758
4863
|
"hasDynamicHelp": false,
|
|
3759
4864
|
"hiddenAliases": [],
|
|
3760
|
-
"id": "snippet:push",
|
|
4865
|
+
"id": "snippet:push",
|
|
4866
|
+
"pluginAlias": "@loopress/cli",
|
|
4867
|
+
"pluginName": "@loopress/cli",
|
|
4868
|
+
"pluginType": "core",
|
|
4869
|
+
"strict": true,
|
|
4870
|
+
"enableJsonFlag": true,
|
|
4871
|
+
"isESM": true,
|
|
4872
|
+
"relativePath": [
|
|
4873
|
+
"dist",
|
|
4874
|
+
"commands",
|
|
4875
|
+
"snippet",
|
|
4876
|
+
"push.js"
|
|
4877
|
+
]
|
|
4878
|
+
},
|
|
4879
|
+
"snippet:rollback": {
|
|
4880
|
+
"aliases": [],
|
|
4881
|
+
"args": {
|
|
4882
|
+
"path": {
|
|
4883
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
4884
|
+
"name": "path"
|
|
4885
|
+
}
|
|
4886
|
+
},
|
|
4887
|
+
"description": "Restore snippets to a snapshot taken automatically before an earlier `lps snippet push`",
|
|
4888
|
+
"examples": [
|
|
4889
|
+
"$ lps snippet rollback",
|
|
4890
|
+
"$ lps snippet rollback --list",
|
|
4891
|
+
"$ lps snippet rollback --to 1732000000000",
|
|
4892
|
+
"$ lps snippet rollback --dry-run"
|
|
4893
|
+
],
|
|
4894
|
+
"flags": {
|
|
4895
|
+
"json": {
|
|
4896
|
+
"description": "Format output as json.",
|
|
4897
|
+
"helpGroup": "GLOBAL",
|
|
4898
|
+
"name": "json",
|
|
4899
|
+
"allowNo": false,
|
|
4900
|
+
"type": "boolean"
|
|
4901
|
+
},
|
|
4902
|
+
"env": {
|
|
4903
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
4904
|
+
"name": "env",
|
|
4905
|
+
"hasDynamicHelp": false,
|
|
4906
|
+
"multiple": false,
|
|
4907
|
+
"type": "option"
|
|
4908
|
+
},
|
|
4909
|
+
"dry-run": {
|
|
4910
|
+
"char": "d",
|
|
4911
|
+
"description": "Show what would change without making changes",
|
|
4912
|
+
"name": "dry-run",
|
|
4913
|
+
"allowNo": false,
|
|
4914
|
+
"type": "boolean"
|
|
4915
|
+
},
|
|
4916
|
+
"yes": {
|
|
4917
|
+
"char": "y",
|
|
4918
|
+
"description": "Answer yes to confirmation prompts",
|
|
4919
|
+
"name": "yes",
|
|
4920
|
+
"allowNo": false,
|
|
4921
|
+
"type": "boolean"
|
|
4922
|
+
},
|
|
4923
|
+
"list": {
|
|
4924
|
+
"description": "List available snapshots instead of rolling back",
|
|
4925
|
+
"name": "list",
|
|
4926
|
+
"allowNo": false,
|
|
4927
|
+
"type": "boolean"
|
|
4928
|
+
},
|
|
4929
|
+
"to": {
|
|
4930
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
4931
|
+
"name": "to",
|
|
4932
|
+
"hasDynamicHelp": false,
|
|
4933
|
+
"multiple": false,
|
|
4934
|
+
"type": "option"
|
|
4935
|
+
}
|
|
4936
|
+
},
|
|
4937
|
+
"hasDynamicHelp": false,
|
|
4938
|
+
"hiddenAliases": [],
|
|
4939
|
+
"id": "snippet:rollback",
|
|
4940
|
+
"pluginAlias": "@loopress/cli",
|
|
4941
|
+
"pluginName": "@loopress/cli",
|
|
4942
|
+
"pluginType": "core",
|
|
4943
|
+
"strict": true,
|
|
4944
|
+
"enableJsonFlag": true,
|
|
4945
|
+
"dryRunFlag": {
|
|
4946
|
+
"dry-run": {
|
|
4947
|
+
"char": "d",
|
|
4948
|
+
"description": "Show what would change without making changes",
|
|
4949
|
+
"allowNo": false,
|
|
4950
|
+
"type": "boolean"
|
|
4951
|
+
}
|
|
4952
|
+
},
|
|
4953
|
+
"yesFlag": {
|
|
4954
|
+
"yes": {
|
|
4955
|
+
"char": "y",
|
|
4956
|
+
"description": "Answer yes to confirmation prompts",
|
|
4957
|
+
"allowNo": false,
|
|
4958
|
+
"type": "boolean"
|
|
4959
|
+
}
|
|
4960
|
+
},
|
|
4961
|
+
"isESM": true,
|
|
4962
|
+
"relativePath": [
|
|
4963
|
+
"dist",
|
|
4964
|
+
"commands",
|
|
4965
|
+
"snippet",
|
|
4966
|
+
"rollback.js"
|
|
4967
|
+
]
|
|
4968
|
+
},
|
|
4969
|
+
"telemetry:disable": {
|
|
4970
|
+
"aliases": [],
|
|
4971
|
+
"args": {},
|
|
4972
|
+
"description": "Disable error reporting to Sentry",
|
|
4973
|
+
"examples": [
|
|
4974
|
+
"$ lps telemetry disable"
|
|
4975
|
+
],
|
|
4976
|
+
"flags": {},
|
|
4977
|
+
"hasDynamicHelp": false,
|
|
4978
|
+
"hiddenAliases": [],
|
|
4979
|
+
"id": "telemetry:disable",
|
|
3761
4980
|
"pluginAlias": "@loopress/cli",
|
|
3762
4981
|
"pluginName": "@loopress/cli",
|
|
3763
4982
|
"pluginType": "core",
|
|
3764
4983
|
"strict": true,
|
|
3765
|
-
"enableJsonFlag":
|
|
4984
|
+
"enableJsonFlag": false,
|
|
3766
4985
|
"isESM": true,
|
|
3767
4986
|
"relativePath": [
|
|
3768
4987
|
"dist",
|
|
3769
4988
|
"commands",
|
|
3770
|
-
"
|
|
3771
|
-
"
|
|
4989
|
+
"telemetry",
|
|
4990
|
+
"disable.js"
|
|
4991
|
+
]
|
|
4992
|
+
},
|
|
4993
|
+
"telemetry:enable": {
|
|
4994
|
+
"aliases": [],
|
|
4995
|
+
"args": {},
|
|
4996
|
+
"description": "Enable error reporting to Sentry",
|
|
4997
|
+
"examples": [
|
|
4998
|
+
"$ lps telemetry enable"
|
|
4999
|
+
],
|
|
5000
|
+
"flags": {},
|
|
5001
|
+
"hasDynamicHelp": false,
|
|
5002
|
+
"hiddenAliases": [],
|
|
5003
|
+
"id": "telemetry:enable",
|
|
5004
|
+
"pluginAlias": "@loopress/cli",
|
|
5005
|
+
"pluginName": "@loopress/cli",
|
|
5006
|
+
"pluginType": "core",
|
|
5007
|
+
"strict": true,
|
|
5008
|
+
"enableJsonFlag": false,
|
|
5009
|
+
"isESM": true,
|
|
5010
|
+
"relativePath": [
|
|
5011
|
+
"dist",
|
|
5012
|
+
"commands",
|
|
5013
|
+
"telemetry",
|
|
5014
|
+
"enable.js"
|
|
3772
5015
|
]
|
|
3773
5016
|
},
|
|
3774
5017
|
"theme:add": {
|
|
@@ -4017,54 +5260,276 @@
|
|
|
4017
5260
|
"status.js"
|
|
4018
5261
|
]
|
|
4019
5262
|
},
|
|
4020
|
-
"
|
|
5263
|
+
"theme-styles:diff": {
|
|
4021
5264
|
"aliases": [],
|
|
4022
|
-
"args": {
|
|
4023
|
-
|
|
5265
|
+
"args": {
|
|
5266
|
+
"path": {
|
|
5267
|
+
"description": "Path to theme styles directory (overrides project config)",
|
|
5268
|
+
"name": "path"
|
|
5269
|
+
}
|
|
5270
|
+
},
|
|
5271
|
+
"description": "Show what differs in the active block theme's Global Styles (Site Editor > Styles) between your local file and a WordPress environment, or between two environments",
|
|
4024
5272
|
"examples": [
|
|
4025
|
-
"$ lps
|
|
5273
|
+
"$ lps theme-styles diff",
|
|
5274
|
+
"$ lps theme-styles diff --env staging",
|
|
5275
|
+
"$ lps theme-styles diff --env staging --against production"
|
|
4026
5276
|
],
|
|
4027
|
-
"flags": {
|
|
5277
|
+
"flags": {
|
|
5278
|
+
"json": {
|
|
5279
|
+
"description": "Format output as json.",
|
|
5280
|
+
"helpGroup": "GLOBAL",
|
|
5281
|
+
"name": "json",
|
|
5282
|
+
"allowNo": false,
|
|
5283
|
+
"type": "boolean"
|
|
5284
|
+
},
|
|
5285
|
+
"env": {
|
|
5286
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
5287
|
+
"name": "env",
|
|
5288
|
+
"hasDynamicHelp": false,
|
|
5289
|
+
"multiple": false,
|
|
5290
|
+
"type": "option"
|
|
5291
|
+
},
|
|
5292
|
+
"against": {
|
|
5293
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
5294
|
+
"name": "against",
|
|
5295
|
+
"hasDynamicHelp": false,
|
|
5296
|
+
"multiple": false,
|
|
5297
|
+
"type": "option"
|
|
5298
|
+
}
|
|
5299
|
+
},
|
|
4028
5300
|
"hasDynamicHelp": false,
|
|
4029
5301
|
"hiddenAliases": [],
|
|
4030
|
-
"id": "
|
|
5302
|
+
"id": "theme-styles:diff",
|
|
4031
5303
|
"pluginAlias": "@loopress/cli",
|
|
4032
5304
|
"pluginName": "@loopress/cli",
|
|
4033
5305
|
"pluginType": "core",
|
|
4034
5306
|
"strict": true,
|
|
4035
|
-
"enableJsonFlag":
|
|
5307
|
+
"enableJsonFlag": true,
|
|
5308
|
+
"dryRunFlag": {
|
|
5309
|
+
"dry-run": {
|
|
5310
|
+
"char": "d",
|
|
5311
|
+
"description": "Show what would change without making changes",
|
|
5312
|
+
"allowNo": false,
|
|
5313
|
+
"type": "boolean"
|
|
5314
|
+
}
|
|
5315
|
+
},
|
|
5316
|
+
"yesFlag": {
|
|
5317
|
+
"yes": {
|
|
5318
|
+
"char": "y",
|
|
5319
|
+
"description": "Answer yes to confirmation prompts",
|
|
5320
|
+
"allowNo": false,
|
|
5321
|
+
"type": "boolean"
|
|
5322
|
+
}
|
|
5323
|
+
},
|
|
5324
|
+
"againstFlag": {
|
|
5325
|
+
"against": {
|
|
5326
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
5327
|
+
"input": [],
|
|
5328
|
+
"multiple": false,
|
|
5329
|
+
"type": "option"
|
|
5330
|
+
}
|
|
5331
|
+
},
|
|
4036
5332
|
"isESM": true,
|
|
4037
5333
|
"relativePath": [
|
|
4038
5334
|
"dist",
|
|
4039
5335
|
"commands",
|
|
4040
|
-
"
|
|
4041
|
-
"
|
|
5336
|
+
"theme-styles",
|
|
5337
|
+
"diff.js"
|
|
4042
5338
|
]
|
|
4043
5339
|
},
|
|
4044
|
-
"
|
|
5340
|
+
"theme-styles:pull": {
|
|
4045
5341
|
"aliases": [],
|
|
4046
|
-
"args": {
|
|
4047
|
-
|
|
5342
|
+
"args": {
|
|
5343
|
+
"path": {
|
|
5344
|
+
"description": "Path to theme styles directory (overrides project config)",
|
|
5345
|
+
"name": "path"
|
|
5346
|
+
}
|
|
5347
|
+
},
|
|
5348
|
+
"description": "Pull the active block theme's Global Styles customizations (Site Editor > Styles) from WordPress into a local file",
|
|
4048
5349
|
"examples": [
|
|
4049
|
-
"$ lps
|
|
5350
|
+
"$ lps theme-styles pull"
|
|
4050
5351
|
],
|
|
4051
|
-
"flags": {
|
|
5352
|
+
"flags": {
|
|
5353
|
+
"env": {
|
|
5354
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
5355
|
+
"name": "env",
|
|
5356
|
+
"hasDynamicHelp": false,
|
|
5357
|
+
"multiple": false,
|
|
5358
|
+
"type": "option"
|
|
5359
|
+
},
|
|
5360
|
+
"dry-run": {
|
|
5361
|
+
"char": "d",
|
|
5362
|
+
"description": "Show what would change without making changes",
|
|
5363
|
+
"name": "dry-run",
|
|
5364
|
+
"allowNo": false,
|
|
5365
|
+
"type": "boolean"
|
|
5366
|
+
}
|
|
5367
|
+
},
|
|
4052
5368
|
"hasDynamicHelp": false,
|
|
4053
5369
|
"hiddenAliases": [],
|
|
4054
|
-
"id": "
|
|
5370
|
+
"id": "theme-styles:pull",
|
|
4055
5371
|
"pluginAlias": "@loopress/cli",
|
|
4056
5372
|
"pluginName": "@loopress/cli",
|
|
4057
5373
|
"pluginType": "core",
|
|
4058
5374
|
"strict": true,
|
|
4059
5375
|
"enableJsonFlag": false,
|
|
5376
|
+
"dryRunFlag": {
|
|
5377
|
+
"dry-run": {
|
|
5378
|
+
"char": "d",
|
|
5379
|
+
"description": "Show what would change without making changes",
|
|
5380
|
+
"allowNo": false,
|
|
5381
|
+
"type": "boolean"
|
|
5382
|
+
}
|
|
5383
|
+
},
|
|
5384
|
+
"yesFlag": {
|
|
5385
|
+
"yes": {
|
|
5386
|
+
"char": "y",
|
|
5387
|
+
"description": "Answer yes to confirmation prompts",
|
|
5388
|
+
"allowNo": false,
|
|
5389
|
+
"type": "boolean"
|
|
5390
|
+
}
|
|
5391
|
+
},
|
|
4060
5392
|
"isESM": true,
|
|
4061
5393
|
"relativePath": [
|
|
4062
5394
|
"dist",
|
|
4063
5395
|
"commands",
|
|
4064
|
-
"
|
|
4065
|
-
"
|
|
5396
|
+
"theme-styles",
|
|
5397
|
+
"pull.js"
|
|
5398
|
+
]
|
|
5399
|
+
},
|
|
5400
|
+
"theme-styles:push": {
|
|
5401
|
+
"aliases": [],
|
|
5402
|
+
"args": {
|
|
5403
|
+
"path": {
|
|
5404
|
+
"description": "Path to theme styles directory (overrides project config)",
|
|
5405
|
+
"name": "path"
|
|
5406
|
+
}
|
|
5407
|
+
},
|
|
5408
|
+
"description": "Push the local Global Styles file to the active block theme's Site Editor > Styles on WordPress",
|
|
5409
|
+
"examples": [
|
|
5410
|
+
"$ lps theme-styles push"
|
|
5411
|
+
],
|
|
5412
|
+
"flags": {
|
|
5413
|
+
"env": {
|
|
5414
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
5415
|
+
"name": "env",
|
|
5416
|
+
"hasDynamicHelp": false,
|
|
5417
|
+
"multiple": false,
|
|
5418
|
+
"type": "option"
|
|
5419
|
+
},
|
|
5420
|
+
"dry-run": {
|
|
5421
|
+
"char": "d",
|
|
5422
|
+
"description": "Show what would change without making changes",
|
|
5423
|
+
"name": "dry-run",
|
|
5424
|
+
"allowNo": false,
|
|
5425
|
+
"type": "boolean"
|
|
5426
|
+
}
|
|
5427
|
+
},
|
|
5428
|
+
"hasDynamicHelp": false,
|
|
5429
|
+
"hiddenAliases": [],
|
|
5430
|
+
"id": "theme-styles:push",
|
|
5431
|
+
"pluginAlias": "@loopress/cli",
|
|
5432
|
+
"pluginName": "@loopress/cli",
|
|
5433
|
+
"pluginType": "core",
|
|
5434
|
+
"strict": true,
|
|
5435
|
+
"isESM": true,
|
|
5436
|
+
"relativePath": [
|
|
5437
|
+
"dist",
|
|
5438
|
+
"commands",
|
|
5439
|
+
"theme-styles",
|
|
5440
|
+
"push.js"
|
|
5441
|
+
]
|
|
5442
|
+
},
|
|
5443
|
+
"theme-styles:rollback": {
|
|
5444
|
+
"aliases": [],
|
|
5445
|
+
"args": {
|
|
5446
|
+
"path": {
|
|
5447
|
+
"description": "Path to theme styles directory (overrides project config)",
|
|
5448
|
+
"name": "path"
|
|
5449
|
+
}
|
|
5450
|
+
},
|
|
5451
|
+
"description": "Restore the active theme’s Global Styles to a snapshot taken automatically before an earlier `lps theme-styles push`",
|
|
5452
|
+
"examples": [
|
|
5453
|
+
"$ lps theme-styles rollback",
|
|
5454
|
+
"$ lps theme-styles rollback --list",
|
|
5455
|
+
"$ lps theme-styles rollback --to 1732000000000",
|
|
5456
|
+
"$ lps theme-styles rollback --dry-run"
|
|
5457
|
+
],
|
|
5458
|
+
"flags": {
|
|
5459
|
+
"json": {
|
|
5460
|
+
"description": "Format output as json.",
|
|
5461
|
+
"helpGroup": "GLOBAL",
|
|
5462
|
+
"name": "json",
|
|
5463
|
+
"allowNo": false,
|
|
5464
|
+
"type": "boolean"
|
|
5465
|
+
},
|
|
5466
|
+
"env": {
|
|
5467
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
5468
|
+
"name": "env",
|
|
5469
|
+
"hasDynamicHelp": false,
|
|
5470
|
+
"multiple": false,
|
|
5471
|
+
"type": "option"
|
|
5472
|
+
},
|
|
5473
|
+
"dry-run": {
|
|
5474
|
+
"char": "d",
|
|
5475
|
+
"description": "Show what would change without making changes",
|
|
5476
|
+
"name": "dry-run",
|
|
5477
|
+
"allowNo": false,
|
|
5478
|
+
"type": "boolean"
|
|
5479
|
+
},
|
|
5480
|
+
"yes": {
|
|
5481
|
+
"char": "y",
|
|
5482
|
+
"description": "Answer yes to confirmation prompts",
|
|
5483
|
+
"name": "yes",
|
|
5484
|
+
"allowNo": false,
|
|
5485
|
+
"type": "boolean"
|
|
5486
|
+
},
|
|
5487
|
+
"list": {
|
|
5488
|
+
"description": "List available snapshots instead of rolling back",
|
|
5489
|
+
"name": "list",
|
|
5490
|
+
"allowNo": false,
|
|
5491
|
+
"type": "boolean"
|
|
5492
|
+
},
|
|
5493
|
+
"to": {
|
|
5494
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
5495
|
+
"name": "to",
|
|
5496
|
+
"hasDynamicHelp": false,
|
|
5497
|
+
"multiple": false,
|
|
5498
|
+
"type": "option"
|
|
5499
|
+
}
|
|
5500
|
+
},
|
|
5501
|
+
"hasDynamicHelp": false,
|
|
5502
|
+
"hiddenAliases": [],
|
|
5503
|
+
"id": "theme-styles:rollback",
|
|
5504
|
+
"pluginAlias": "@loopress/cli",
|
|
5505
|
+
"pluginName": "@loopress/cli",
|
|
5506
|
+
"pluginType": "core",
|
|
5507
|
+
"strict": true,
|
|
5508
|
+
"enableJsonFlag": true,
|
|
5509
|
+
"dryRunFlag": {
|
|
5510
|
+
"dry-run": {
|
|
5511
|
+
"char": "d",
|
|
5512
|
+
"description": "Show what would change without making changes",
|
|
5513
|
+
"allowNo": false,
|
|
5514
|
+
"type": "boolean"
|
|
5515
|
+
}
|
|
5516
|
+
},
|
|
5517
|
+
"yesFlag": {
|
|
5518
|
+
"yes": {
|
|
5519
|
+
"char": "y",
|
|
5520
|
+
"description": "Answer yes to confirmation prompts",
|
|
5521
|
+
"allowNo": false,
|
|
5522
|
+
"type": "boolean"
|
|
5523
|
+
}
|
|
5524
|
+
},
|
|
5525
|
+
"isESM": true,
|
|
5526
|
+
"relativePath": [
|
|
5527
|
+
"dist",
|
|
5528
|
+
"commands",
|
|
5529
|
+
"theme-styles",
|
|
5530
|
+
"rollback.js"
|
|
4066
5531
|
]
|
|
4067
5532
|
}
|
|
4068
5533
|
},
|
|
4069
|
-
"version": "0.
|
|
5534
|
+
"version": "0.26.0"
|
|
4070
5535
|
}
|