@loopress/cli 0.24.1 → 0.25.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 +629 -88
- 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 +1 -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/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 +9 -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/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 +92 -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 +2 -1
- package/dist/types/project-config.generated.d.ts +8 -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/resource-dirs.d.ts +2 -0
- package/dist/utils/resource-dirs.js +4 -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 +1736 -465
- package/package.json +4 -2
- package/schemas/project-config.schema.json +10 -0
package/oclif.manifest.json
CHANGED
|
@@ -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, 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",
|
|
@@ -85,7 +85,9 @@
|
|
|
85
85
|
"api",
|
|
86
86
|
"hook",
|
|
87
87
|
"seo",
|
|
88
|
+
"menu",
|
|
88
89
|
"option",
|
|
90
|
+
"theme-styles",
|
|
89
91
|
"composer"
|
|
90
92
|
],
|
|
91
93
|
"type": "option"
|
|
@@ -102,7 +104,9 @@
|
|
|
102
104
|
"api",
|
|
103
105
|
"hook",
|
|
104
106
|
"seo",
|
|
107
|
+
"menu",
|
|
105
108
|
"option",
|
|
109
|
+
"theme-styles",
|
|
106
110
|
"composer"
|
|
107
111
|
],
|
|
108
112
|
"type": "option"
|
|
@@ -156,6 +160,13 @@
|
|
|
156
160
|
"$ lps doctor --env production"
|
|
157
161
|
],
|
|
158
162
|
"flags": {
|
|
163
|
+
"json": {
|
|
164
|
+
"description": "Format output as json.",
|
|
165
|
+
"helpGroup": "GLOBAL",
|
|
166
|
+
"name": "json",
|
|
167
|
+
"allowNo": false,
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
},
|
|
159
170
|
"env": {
|
|
160
171
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
161
172
|
"name": "env",
|
|
@@ -171,7 +182,7 @@
|
|
|
171
182
|
"pluginName": "@loopress/cli",
|
|
172
183
|
"pluginType": "core",
|
|
173
184
|
"strict": true,
|
|
174
|
-
"enableJsonFlag":
|
|
185
|
+
"enableJsonFlag": true,
|
|
175
186
|
"dryRunFlag": {
|
|
176
187
|
"dry-run": {
|
|
177
188
|
"char": "d",
|
|
@@ -284,6 +295,13 @@
|
|
|
284
295
|
"$ lps promote production staging --dry-run"
|
|
285
296
|
],
|
|
286
297
|
"flags": {
|
|
298
|
+
"json": {
|
|
299
|
+
"description": "Format output as json.",
|
|
300
|
+
"helpGroup": "GLOBAL",
|
|
301
|
+
"name": "json",
|
|
302
|
+
"allowNo": false,
|
|
303
|
+
"type": "boolean"
|
|
304
|
+
},
|
|
287
305
|
"dry-run": {
|
|
288
306
|
"char": "d",
|
|
289
307
|
"description": "Show what would change without making changes",
|
|
@@ -306,7 +324,7 @@
|
|
|
306
324
|
"pluginName": "@loopress/cli",
|
|
307
325
|
"pluginType": "core",
|
|
308
326
|
"strict": true,
|
|
309
|
-
"enableJsonFlag":
|
|
327
|
+
"enableJsonFlag": true,
|
|
310
328
|
"isESM": true,
|
|
311
329
|
"relativePath": [
|
|
312
330
|
"dist",
|
|
@@ -317,13 +335,20 @@
|
|
|
317
335
|
"pull": {
|
|
318
336
|
"aliases": [],
|
|
319
337
|
"args": {},
|
|
320
|
-
"description": "Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, from WordPress",
|
|
338
|
+
"description": "Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, menus, options, and snippets, from WordPress",
|
|
321
339
|
"examples": [
|
|
322
340
|
"$ lps pull",
|
|
323
341
|
"$ lps pull --env staging",
|
|
324
342
|
"$ lps pull --dry-run"
|
|
325
343
|
],
|
|
326
344
|
"flags": {
|
|
345
|
+
"json": {
|
|
346
|
+
"description": "Format output as json.",
|
|
347
|
+
"helpGroup": "GLOBAL",
|
|
348
|
+
"name": "json",
|
|
349
|
+
"allowNo": false,
|
|
350
|
+
"type": "boolean"
|
|
351
|
+
},
|
|
327
352
|
"env": {
|
|
328
353
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
329
354
|
"name": "env",
|
|
@@ -353,7 +378,7 @@
|
|
|
353
378
|
"pluginName": "@loopress/cli",
|
|
354
379
|
"pluginType": "core",
|
|
355
380
|
"strict": true,
|
|
356
|
-
"enableJsonFlag":
|
|
381
|
+
"enableJsonFlag": true,
|
|
357
382
|
"dryRunFlag": {
|
|
358
383
|
"dry-run": {
|
|
359
384
|
"char": "d",
|
|
@@ -380,13 +405,20 @@
|
|
|
380
405
|
"push": {
|
|
381
406
|
"aliases": [],
|
|
382
407
|
"args": {},
|
|
383
|
-
"description": "Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, to WordPress",
|
|
408
|
+
"description": "Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, menus, options, and snippets, to WordPress",
|
|
384
409
|
"examples": [
|
|
385
410
|
"$ lps push",
|
|
386
411
|
"$ lps push --env staging",
|
|
387
412
|
"$ lps push --dry-run"
|
|
388
413
|
],
|
|
389
414
|
"flags": {
|
|
415
|
+
"json": {
|
|
416
|
+
"description": "Format output as json.",
|
|
417
|
+
"helpGroup": "GLOBAL",
|
|
418
|
+
"name": "json",
|
|
419
|
+
"allowNo": false,
|
|
420
|
+
"type": "boolean"
|
|
421
|
+
},
|
|
390
422
|
"env": {
|
|
391
423
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
392
424
|
"name": "env",
|
|
@@ -416,7 +448,7 @@
|
|
|
416
448
|
"pluginName": "@loopress/cli",
|
|
417
449
|
"pluginType": "core",
|
|
418
450
|
"strict": true,
|
|
419
|
-
"enableJsonFlag":
|
|
451
|
+
"enableJsonFlag": true,
|
|
420
452
|
"dryRunFlag": {
|
|
421
453
|
"dry-run": {
|
|
422
454
|
"char": "d",
|
|
@@ -822,6 +854,96 @@
|
|
|
822
854
|
"push.js"
|
|
823
855
|
]
|
|
824
856
|
},
|
|
857
|
+
"acf:rollback": {
|
|
858
|
+
"aliases": [],
|
|
859
|
+
"args": {
|
|
860
|
+
"path": {
|
|
861
|
+
"description": "Path to ACF directory (overrides project config)",
|
|
862
|
+
"name": "path"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"description": "Restore ACF field groups, post types, taxonomies, and options pages to a snapshot taken automatically before an earlier `lps acf push`",
|
|
866
|
+
"examples": [
|
|
867
|
+
"$ lps acf rollback",
|
|
868
|
+
"$ lps acf rollback --list",
|
|
869
|
+
"$ lps acf rollback --to 1732000000000",
|
|
870
|
+
"$ lps acf rollback --dry-run"
|
|
871
|
+
],
|
|
872
|
+
"flags": {
|
|
873
|
+
"json": {
|
|
874
|
+
"description": "Format output as json.",
|
|
875
|
+
"helpGroup": "GLOBAL",
|
|
876
|
+
"name": "json",
|
|
877
|
+
"allowNo": false,
|
|
878
|
+
"type": "boolean"
|
|
879
|
+
},
|
|
880
|
+
"env": {
|
|
881
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
882
|
+
"name": "env",
|
|
883
|
+
"hasDynamicHelp": false,
|
|
884
|
+
"multiple": false,
|
|
885
|
+
"type": "option"
|
|
886
|
+
},
|
|
887
|
+
"dry-run": {
|
|
888
|
+
"char": "d",
|
|
889
|
+
"description": "Show what would change without making changes",
|
|
890
|
+
"name": "dry-run",
|
|
891
|
+
"allowNo": false,
|
|
892
|
+
"type": "boolean"
|
|
893
|
+
},
|
|
894
|
+
"yes": {
|
|
895
|
+
"char": "y",
|
|
896
|
+
"description": "Answer yes to confirmation prompts",
|
|
897
|
+
"name": "yes",
|
|
898
|
+
"allowNo": false,
|
|
899
|
+
"type": "boolean"
|
|
900
|
+
},
|
|
901
|
+
"list": {
|
|
902
|
+
"description": "List available snapshots instead of rolling back",
|
|
903
|
+
"name": "list",
|
|
904
|
+
"allowNo": false,
|
|
905
|
+
"type": "boolean"
|
|
906
|
+
},
|
|
907
|
+
"to": {
|
|
908
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
909
|
+
"name": "to",
|
|
910
|
+
"hasDynamicHelp": false,
|
|
911
|
+
"multiple": false,
|
|
912
|
+
"type": "option"
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"hasDynamicHelp": false,
|
|
916
|
+
"hiddenAliases": [],
|
|
917
|
+
"id": "acf:rollback",
|
|
918
|
+
"pluginAlias": "@loopress/cli",
|
|
919
|
+
"pluginName": "@loopress/cli",
|
|
920
|
+
"pluginType": "core",
|
|
921
|
+
"strict": true,
|
|
922
|
+
"enableJsonFlag": true,
|
|
923
|
+
"dryRunFlag": {
|
|
924
|
+
"dry-run": {
|
|
925
|
+
"char": "d",
|
|
926
|
+
"description": "Show what would change without making changes",
|
|
927
|
+
"allowNo": false,
|
|
928
|
+
"type": "boolean"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"yesFlag": {
|
|
932
|
+
"yes": {
|
|
933
|
+
"char": "y",
|
|
934
|
+
"description": "Answer yes to confirmation prompts",
|
|
935
|
+
"allowNo": false,
|
|
936
|
+
"type": "boolean"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
"isESM": true,
|
|
940
|
+
"relativePath": [
|
|
941
|
+
"dist",
|
|
942
|
+
"commands",
|
|
943
|
+
"acf",
|
|
944
|
+
"rollback.js"
|
|
945
|
+
]
|
|
946
|
+
},
|
|
825
947
|
"api:diff": {
|
|
826
948
|
"aliases": [],
|
|
827
949
|
"args": {
|
|
@@ -1201,15 +1323,29 @@
|
|
|
1201
1323
|
"rm.js"
|
|
1202
1324
|
]
|
|
1203
1325
|
},
|
|
1204
|
-
"
|
|
1326
|
+
"api:rollback": {
|
|
1205
1327
|
"aliases": [],
|
|
1206
|
-
"args": {
|
|
1207
|
-
|
|
1328
|
+
"args": {
|
|
1329
|
+
"path": {
|
|
1330
|
+
"description": "Path to api directory (overrides project config)",
|
|
1331
|
+
"name": "path"
|
|
1332
|
+
}
|
|
1333
|
+
},
|
|
1334
|
+
"description": "Restore API route files to a snapshot taken automatically before an earlier `lps api push`",
|
|
1208
1335
|
"examples": [
|
|
1209
|
-
"$ lps
|
|
1210
|
-
"$ lps
|
|
1336
|
+
"$ lps api rollback",
|
|
1337
|
+
"$ lps api rollback --list",
|
|
1338
|
+
"$ lps api rollback --to 1732000000000",
|
|
1339
|
+
"$ lps api rollback --dry-run"
|
|
1211
1340
|
],
|
|
1212
1341
|
"flags": {
|
|
1342
|
+
"json": {
|
|
1343
|
+
"description": "Format output as json.",
|
|
1344
|
+
"helpGroup": "GLOBAL",
|
|
1345
|
+
"name": "json",
|
|
1346
|
+
"allowNo": false,
|
|
1347
|
+
"type": "boolean"
|
|
1348
|
+
},
|
|
1213
1349
|
"env": {
|
|
1214
1350
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1215
1351
|
"name": "env",
|
|
@@ -1223,74 +1359,31 @@
|
|
|
1223
1359
|
"name": "dry-run",
|
|
1224
1360
|
"allowNo": false,
|
|
1225
1361
|
"type": "boolean"
|
|
1226
|
-
}
|
|
1227
|
-
},
|
|
1228
|
-
"hasDynamicHelp": false,
|
|
1229
|
-
"hiddenAliases": [],
|
|
1230
|
-
"id": "composer:init",
|
|
1231
|
-
"pluginAlias": "@loopress/cli",
|
|
1232
|
-
"pluginName": "@loopress/cli",
|
|
1233
|
-
"pluginType": "core",
|
|
1234
|
-
"strict": true,
|
|
1235
|
-
"enableJsonFlag": false,
|
|
1236
|
-
"dryRunFlag": {
|
|
1237
|
-
"dry-run": {
|
|
1238
|
-
"char": "d",
|
|
1239
|
-
"description": "Show what would change without making changes",
|
|
1240
|
-
"allowNo": false,
|
|
1241
|
-
"type": "boolean"
|
|
1242
|
-
}
|
|
1243
|
-
},
|
|
1244
|
-
"yesFlag": {
|
|
1362
|
+
},
|
|
1245
1363
|
"yes": {
|
|
1246
1364
|
"char": "y",
|
|
1247
1365
|
"description": "Answer yes to confirmation prompts",
|
|
1366
|
+
"name": "yes",
|
|
1248
1367
|
"allowNo": false,
|
|
1249
1368
|
"type": "boolean"
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
"dist",
|
|
1255
|
-
"commands",
|
|
1256
|
-
"composer",
|
|
1257
|
-
"init.js"
|
|
1258
|
-
]
|
|
1259
|
-
},
|
|
1260
|
-
"composer:pull": {
|
|
1261
|
-
"aliases": [],
|
|
1262
|
-
"args": {},
|
|
1263
|
-
"description": "Pull composer.json and composer.lock from WordPress",
|
|
1264
|
-
"examples": [
|
|
1265
|
-
"$ lps composer pull",
|
|
1266
|
-
"$ lps composer pull --dry-run"
|
|
1267
|
-
],
|
|
1268
|
-
"flags": {
|
|
1269
|
-
"json": {
|
|
1270
|
-
"description": "Format output as json.",
|
|
1271
|
-
"helpGroup": "GLOBAL",
|
|
1272
|
-
"name": "json",
|
|
1369
|
+
},
|
|
1370
|
+
"list": {
|
|
1371
|
+
"description": "List available snapshots instead of rolling back",
|
|
1372
|
+
"name": "list",
|
|
1273
1373
|
"allowNo": false,
|
|
1274
1374
|
"type": "boolean"
|
|
1275
1375
|
},
|
|
1276
|
-
"
|
|
1277
|
-
"description": "
|
|
1278
|
-
"name": "
|
|
1376
|
+
"to": {
|
|
1377
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
1378
|
+
"name": "to",
|
|
1279
1379
|
"hasDynamicHelp": false,
|
|
1280
1380
|
"multiple": false,
|
|
1281
1381
|
"type": "option"
|
|
1282
|
-
},
|
|
1283
|
-
"dry-run": {
|
|
1284
|
-
"char": "d",
|
|
1285
|
-
"description": "Show what would change without making changes",
|
|
1286
|
-
"name": "dry-run",
|
|
1287
|
-
"allowNo": false,
|
|
1288
|
-
"type": "boolean"
|
|
1289
1382
|
}
|
|
1290
1383
|
},
|
|
1291
1384
|
"hasDynamicHelp": false,
|
|
1292
1385
|
"hiddenAliases": [],
|
|
1293
|
-
"id": "
|
|
1386
|
+
"id": "api:rollback",
|
|
1294
1387
|
"pluginAlias": "@loopress/cli",
|
|
1295
1388
|
"pluginName": "@loopress/cli",
|
|
1296
1389
|
"pluginType": "core",
|
|
@@ -1316,68 +1409,8 @@
|
|
|
1316
1409
|
"relativePath": [
|
|
1317
1410
|
"dist",
|
|
1318
1411
|
"commands",
|
|
1319
|
-
"
|
|
1320
|
-
"
|
|
1321
|
-
]
|
|
1322
|
-
},
|
|
1323
|
-
"composer:push": {
|
|
1324
|
-
"aliases": [],
|
|
1325
|
-
"args": {},
|
|
1326
|
-
"description": "Push composer.json to WordPress and run Composer to resolve and install dependencies",
|
|
1327
|
-
"examples": [
|
|
1328
|
-
"$ lps composer push",
|
|
1329
|
-
"$ lps composer push --dry-run"
|
|
1330
|
-
],
|
|
1331
|
-
"flags": {
|
|
1332
|
-
"json": {
|
|
1333
|
-
"description": "Format output as json.",
|
|
1334
|
-
"helpGroup": "GLOBAL",
|
|
1335
|
-
"name": "json",
|
|
1336
|
-
"allowNo": false,
|
|
1337
|
-
"type": "boolean"
|
|
1338
|
-
},
|
|
1339
|
-
"env": {
|
|
1340
|
-
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1341
|
-
"name": "env",
|
|
1342
|
-
"hasDynamicHelp": false,
|
|
1343
|
-
"multiple": false,
|
|
1344
|
-
"type": "option"
|
|
1345
|
-
},
|
|
1346
|
-
"dry-run": {
|
|
1347
|
-
"char": "d",
|
|
1348
|
-
"description": "Show what would change without making changes",
|
|
1349
|
-
"name": "dry-run",
|
|
1350
|
-
"allowNo": false,
|
|
1351
|
-
"type": "boolean"
|
|
1352
|
-
},
|
|
1353
|
-
"yes": {
|
|
1354
|
-
"char": "y",
|
|
1355
|
-
"description": "Answer yes to confirmation prompts",
|
|
1356
|
-
"name": "yes",
|
|
1357
|
-
"allowNo": false,
|
|
1358
|
-
"type": "boolean"
|
|
1359
|
-
},
|
|
1360
|
-
"force": {
|
|
1361
|
-
"description": "Allow downgrades and take over plugins/themes installed outside Loopress",
|
|
1362
|
-
"name": "force",
|
|
1363
|
-
"allowNo": false,
|
|
1364
|
-
"type": "boolean"
|
|
1365
|
-
}
|
|
1366
|
-
},
|
|
1367
|
-
"hasDynamicHelp": false,
|
|
1368
|
-
"hiddenAliases": [],
|
|
1369
|
-
"id": "composer:push",
|
|
1370
|
-
"pluginAlias": "@loopress/cli",
|
|
1371
|
-
"pluginName": "@loopress/cli",
|
|
1372
|
-
"pluginType": "core",
|
|
1373
|
-
"strict": true,
|
|
1374
|
-
"enableJsonFlag": true,
|
|
1375
|
-
"isESM": true,
|
|
1376
|
-
"relativePath": [
|
|
1377
|
-
"dist",
|
|
1378
|
-
"commands",
|
|
1379
|
-
"composer",
|
|
1380
|
-
"push.js"
|
|
1412
|
+
"api",
|
|
1413
|
+
"rollback.js"
|
|
1381
1414
|
]
|
|
1382
1415
|
},
|
|
1383
1416
|
"app:list": {
|
|
@@ -1643,28 +1676,15 @@
|
|
|
1643
1676
|
"remove.js"
|
|
1644
1677
|
]
|
|
1645
1678
|
},
|
|
1646
|
-
"
|
|
1679
|
+
"composer:init": {
|
|
1647
1680
|
"aliases": [],
|
|
1648
|
-
"args": {
|
|
1649
|
-
|
|
1650
|
-
"description": "Path to forms directory (overrides project config)",
|
|
1651
|
-
"name": "path"
|
|
1652
|
-
}
|
|
1653
|
-
},
|
|
1654
|
-
"description": "Show what differs in forms between your local files and a WordPress environment, or between two environments",
|
|
1681
|
+
"args": {},
|
|
1682
|
+
"description": "Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes",
|
|
1655
1683
|
"examples": [
|
|
1656
|
-
"$ lps
|
|
1657
|
-
"$ lps
|
|
1658
|
-
"$ lps form diff --env staging --against production"
|
|
1684
|
+
"$ lps composer init",
|
|
1685
|
+
"$ lps composer init --dry-run"
|
|
1659
1686
|
],
|
|
1660
1687
|
"flags": {
|
|
1661
|
-
"json": {
|
|
1662
|
-
"description": "Format output as json.",
|
|
1663
|
-
"helpGroup": "GLOBAL",
|
|
1664
|
-
"name": "json",
|
|
1665
|
-
"allowNo": false,
|
|
1666
|
-
"type": "boolean"
|
|
1667
|
-
},
|
|
1668
1688
|
"env": {
|
|
1669
1689
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1670
1690
|
"name": "env",
|
|
@@ -1672,22 +1692,22 @@
|
|
|
1672
1692
|
"multiple": false,
|
|
1673
1693
|
"type": "option"
|
|
1674
1694
|
},
|
|
1675
|
-
"
|
|
1676
|
-
"
|
|
1677
|
-
"
|
|
1678
|
-
"
|
|
1679
|
-
"
|
|
1680
|
-
"type": "
|
|
1695
|
+
"dry-run": {
|
|
1696
|
+
"char": "d",
|
|
1697
|
+
"description": "Show what would change without making changes",
|
|
1698
|
+
"name": "dry-run",
|
|
1699
|
+
"allowNo": false,
|
|
1700
|
+
"type": "boolean"
|
|
1681
1701
|
}
|
|
1682
1702
|
},
|
|
1683
1703
|
"hasDynamicHelp": false,
|
|
1684
1704
|
"hiddenAliases": [],
|
|
1685
|
-
"id": "
|
|
1705
|
+
"id": "composer:init",
|
|
1686
1706
|
"pluginAlias": "@loopress/cli",
|
|
1687
1707
|
"pluginName": "@loopress/cli",
|
|
1688
1708
|
"pluginType": "core",
|
|
1689
1709
|
"strict": true,
|
|
1690
|
-
"enableJsonFlag":
|
|
1710
|
+
"enableJsonFlag": false,
|
|
1691
1711
|
"dryRunFlag": {
|
|
1692
1712
|
"dry-run": {
|
|
1693
1713
|
"char": "d",
|
|
@@ -1704,28 +1724,21 @@
|
|
|
1704
1724
|
"type": "boolean"
|
|
1705
1725
|
}
|
|
1706
1726
|
},
|
|
1707
|
-
"againstFlag": {
|
|
1708
|
-
"against": {
|
|
1709
|
-
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
1710
|
-
"input": [],
|
|
1711
|
-
"multiple": false,
|
|
1712
|
-
"type": "option"
|
|
1713
|
-
}
|
|
1714
|
-
},
|
|
1715
1727
|
"isESM": true,
|
|
1716
1728
|
"relativePath": [
|
|
1717
1729
|
"dist",
|
|
1718
1730
|
"commands",
|
|
1719
|
-
"
|
|
1720
|
-
"
|
|
1731
|
+
"composer",
|
|
1732
|
+
"init.js"
|
|
1721
1733
|
]
|
|
1722
1734
|
},
|
|
1723
|
-
"
|
|
1735
|
+
"composer:pull": {
|
|
1724
1736
|
"aliases": [],
|
|
1725
1737
|
"args": {},
|
|
1726
|
-
"description": "
|
|
1738
|
+
"description": "Pull composer.json and composer.lock from WordPress",
|
|
1727
1739
|
"examples": [
|
|
1728
|
-
"$ lps
|
|
1740
|
+
"$ lps composer pull",
|
|
1741
|
+
"$ lps composer pull --dry-run"
|
|
1729
1742
|
],
|
|
1730
1743
|
"flags": {
|
|
1731
1744
|
"json": {
|
|
@@ -1735,59 +1748,6 @@
|
|
|
1735
1748
|
"allowNo": false,
|
|
1736
1749
|
"type": "boolean"
|
|
1737
1750
|
},
|
|
1738
|
-
"env": {
|
|
1739
|
-
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1740
|
-
"name": "env",
|
|
1741
|
-
"hasDynamicHelp": false,
|
|
1742
|
-
"multiple": false,
|
|
1743
|
-
"type": "option"
|
|
1744
|
-
}
|
|
1745
|
-
},
|
|
1746
|
-
"hasDynamicHelp": false,
|
|
1747
|
-
"hiddenAliases": [],
|
|
1748
|
-
"id": "form:list",
|
|
1749
|
-
"pluginAlias": "@loopress/cli",
|
|
1750
|
-
"pluginName": "@loopress/cli",
|
|
1751
|
-
"pluginType": "core",
|
|
1752
|
-
"strict": true,
|
|
1753
|
-
"enableJsonFlag": true,
|
|
1754
|
-
"dryRunFlag": {
|
|
1755
|
-
"dry-run": {
|
|
1756
|
-
"char": "d",
|
|
1757
|
-
"description": "Show what would change without making changes",
|
|
1758
|
-
"allowNo": false,
|
|
1759
|
-
"type": "boolean"
|
|
1760
|
-
}
|
|
1761
|
-
},
|
|
1762
|
-
"yesFlag": {
|
|
1763
|
-
"yes": {
|
|
1764
|
-
"char": "y",
|
|
1765
|
-
"description": "Answer yes to confirmation prompts",
|
|
1766
|
-
"allowNo": false,
|
|
1767
|
-
"type": "boolean"
|
|
1768
|
-
}
|
|
1769
|
-
},
|
|
1770
|
-
"isESM": true,
|
|
1771
|
-
"relativePath": [
|
|
1772
|
-
"dist",
|
|
1773
|
-
"commands",
|
|
1774
|
-
"form",
|
|
1775
|
-
"list.js"
|
|
1776
|
-
]
|
|
1777
|
-
},
|
|
1778
|
-
"form:pull": {
|
|
1779
|
-
"aliases": [],
|
|
1780
|
-
"args": {
|
|
1781
|
-
"path": {
|
|
1782
|
-
"description": "Path to forms directory (overrides project config)",
|
|
1783
|
-
"name": "path"
|
|
1784
|
-
}
|
|
1785
|
-
},
|
|
1786
|
-
"description": "Pull forms from WordPress",
|
|
1787
|
-
"examples": [
|
|
1788
|
-
"$ lps form pull"
|
|
1789
|
-
],
|
|
1790
|
-
"flags": {
|
|
1791
1751
|
"env": {
|
|
1792
1752
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1793
1753
|
"name": "env",
|
|
@@ -1801,23 +1761,16 @@
|
|
|
1801
1761
|
"name": "dry-run",
|
|
1802
1762
|
"allowNo": false,
|
|
1803
1763
|
"type": "boolean"
|
|
1804
|
-
},
|
|
1805
|
-
"yes": {
|
|
1806
|
-
"char": "y",
|
|
1807
|
-
"description": "Answer yes to confirmation prompts",
|
|
1808
|
-
"name": "yes",
|
|
1809
|
-
"allowNo": false,
|
|
1810
|
-
"type": "boolean"
|
|
1811
1764
|
}
|
|
1812
1765
|
},
|
|
1813
1766
|
"hasDynamicHelp": false,
|
|
1814
1767
|
"hiddenAliases": [],
|
|
1815
|
-
"id": "
|
|
1768
|
+
"id": "composer:pull",
|
|
1816
1769
|
"pluginAlias": "@loopress/cli",
|
|
1817
1770
|
"pluginName": "@loopress/cli",
|
|
1818
1771
|
"pluginType": "core",
|
|
1819
1772
|
"strict": true,
|
|
1820
|
-
"enableJsonFlag":
|
|
1773
|
+
"enableJsonFlag": true,
|
|
1821
1774
|
"dryRunFlag": {
|
|
1822
1775
|
"dry-run": {
|
|
1823
1776
|
"char": "d",
|
|
@@ -1838,24 +1791,26 @@
|
|
|
1838
1791
|
"relativePath": [
|
|
1839
1792
|
"dist",
|
|
1840
1793
|
"commands",
|
|
1841
|
-
"
|
|
1794
|
+
"composer",
|
|
1842
1795
|
"pull.js"
|
|
1843
1796
|
]
|
|
1844
1797
|
},
|
|
1845
|
-
"
|
|
1798
|
+
"composer:push": {
|
|
1846
1799
|
"aliases": [],
|
|
1847
|
-
"args": {
|
|
1848
|
-
|
|
1849
|
-
"description": "Path to forms directory (overrides project config)",
|
|
1850
|
-
"name": "path"
|
|
1851
|
-
}
|
|
1852
|
-
},
|
|
1853
|
-
"description": "Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
1800
|
+
"args": {},
|
|
1801
|
+
"description": "Push composer.json to WordPress and run Composer to resolve and install dependencies",
|
|
1854
1802
|
"examples": [
|
|
1855
|
-
"$ lps
|
|
1856
|
-
"$ lps
|
|
1803
|
+
"$ lps composer push",
|
|
1804
|
+
"$ lps composer push --dry-run"
|
|
1857
1805
|
],
|
|
1858
1806
|
"flags": {
|
|
1807
|
+
"json": {
|
|
1808
|
+
"description": "Format output as json.",
|
|
1809
|
+
"helpGroup": "GLOBAL",
|
|
1810
|
+
"name": "json",
|
|
1811
|
+
"allowNo": false,
|
|
1812
|
+
"type": "boolean"
|
|
1813
|
+
},
|
|
1859
1814
|
"env": {
|
|
1860
1815
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1861
1816
|
"name": "env",
|
|
@@ -1877,25 +1832,26 @@
|
|
|
1877
1832
|
"allowNo": false,
|
|
1878
1833
|
"type": "boolean"
|
|
1879
1834
|
},
|
|
1880
|
-
"
|
|
1881
|
-
"description": "
|
|
1882
|
-
"name": "
|
|
1835
|
+
"force": {
|
|
1836
|
+
"description": "Allow downgrades and take over plugins/themes installed outside Loopress",
|
|
1837
|
+
"name": "force",
|
|
1883
1838
|
"allowNo": false,
|
|
1884
1839
|
"type": "boolean"
|
|
1885
1840
|
}
|
|
1886
1841
|
},
|
|
1887
1842
|
"hasDynamicHelp": false,
|
|
1888
1843
|
"hiddenAliases": [],
|
|
1889
|
-
"id": "
|
|
1844
|
+
"id": "composer:push",
|
|
1890
1845
|
"pluginAlias": "@loopress/cli",
|
|
1891
1846
|
"pluginName": "@loopress/cli",
|
|
1892
1847
|
"pluginType": "core",
|
|
1893
1848
|
"strict": true,
|
|
1849
|
+
"enableJsonFlag": true,
|
|
1894
1850
|
"isESM": true,
|
|
1895
1851
|
"relativePath": [
|
|
1896
1852
|
"dist",
|
|
1897
1853
|
"commands",
|
|
1898
|
-
"
|
|
1854
|
+
"composer",
|
|
1899
1855
|
"push.js"
|
|
1900
1856
|
]
|
|
1901
1857
|
},
|
|
@@ -2248,19 +2204,20 @@
|
|
|
2248
2204
|
"rm.js"
|
|
2249
2205
|
]
|
|
2250
2206
|
},
|
|
2251
|
-
"
|
|
2207
|
+
"hook:rollback": {
|
|
2252
2208
|
"aliases": [],
|
|
2253
2209
|
"args": {
|
|
2254
|
-
"
|
|
2255
|
-
"description": "
|
|
2256
|
-
"name": "
|
|
2257
|
-
"required": true
|
|
2210
|
+
"path": {
|
|
2211
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
2212
|
+
"name": "path"
|
|
2258
2213
|
}
|
|
2259
2214
|
},
|
|
2260
|
-
"description": "
|
|
2215
|
+
"description": "Restore hook files to a snapshot taken automatically before an earlier `lps hook push`",
|
|
2261
2216
|
"examples": [
|
|
2262
|
-
"$ lps
|
|
2263
|
-
"$ lps
|
|
2217
|
+
"$ lps hook rollback",
|
|
2218
|
+
"$ lps hook rollback --list",
|
|
2219
|
+
"$ lps hook rollback --to 1732000000000",
|
|
2220
|
+
"$ lps hook rollback --dry-run"
|
|
2264
2221
|
],
|
|
2265
2222
|
"flags": {
|
|
2266
2223
|
"json": {
|
|
@@ -2284,9 +2241,22 @@
|
|
|
2284
2241
|
"allowNo": false,
|
|
2285
2242
|
"type": "boolean"
|
|
2286
2243
|
},
|
|
2287
|
-
"
|
|
2288
|
-
"
|
|
2289
|
-
"
|
|
2244
|
+
"yes": {
|
|
2245
|
+
"char": "y",
|
|
2246
|
+
"description": "Answer yes to confirmation prompts",
|
|
2247
|
+
"name": "yes",
|
|
2248
|
+
"allowNo": false,
|
|
2249
|
+
"type": "boolean"
|
|
2250
|
+
},
|
|
2251
|
+
"list": {
|
|
2252
|
+
"description": "List available snapshots instead of rolling back",
|
|
2253
|
+
"name": "list",
|
|
2254
|
+
"allowNo": false,
|
|
2255
|
+
"type": "boolean"
|
|
2256
|
+
},
|
|
2257
|
+
"to": {
|
|
2258
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
2259
|
+
"name": "to",
|
|
2290
2260
|
"hasDynamicHelp": false,
|
|
2291
2261
|
"multiple": false,
|
|
2292
2262
|
"type": "option"
|
|
@@ -2294,7 +2264,7 @@
|
|
|
2294
2264
|
},
|
|
2295
2265
|
"hasDynamicHelp": false,
|
|
2296
2266
|
"hiddenAliases": [],
|
|
2297
|
-
"id": "
|
|
2267
|
+
"id": "hook:rollback",
|
|
2298
2268
|
"pluginAlias": "@loopress/cli",
|
|
2299
2269
|
"pluginName": "@loopress/cli",
|
|
2300
2270
|
"pluginType": "core",
|
|
@@ -2320,23 +2290,23 @@
|
|
|
2320
2290
|
"relativePath": [
|
|
2321
2291
|
"dist",
|
|
2322
2292
|
"commands",
|
|
2323
|
-
"
|
|
2324
|
-
"
|
|
2293
|
+
"hook",
|
|
2294
|
+
"rollback.js"
|
|
2325
2295
|
]
|
|
2326
2296
|
},
|
|
2327
|
-
"
|
|
2297
|
+
"form:diff": {
|
|
2328
2298
|
"aliases": [],
|
|
2329
2299
|
"args": {
|
|
2330
2300
|
"path": {
|
|
2331
|
-
"description": "Path to
|
|
2301
|
+
"description": "Path to forms directory (overrides project config)",
|
|
2332
2302
|
"name": "path"
|
|
2333
2303
|
}
|
|
2334
2304
|
},
|
|
2335
|
-
"description": "Show what differs
|
|
2305
|
+
"description": "Show what differs in forms between your local files and a WordPress environment, or between two environments",
|
|
2336
2306
|
"examples": [
|
|
2337
|
-
"$ lps
|
|
2338
|
-
"$ lps
|
|
2339
|
-
"$ lps
|
|
2307
|
+
"$ lps form diff",
|
|
2308
|
+
"$ lps form diff --env staging",
|
|
2309
|
+
"$ lps form diff --env staging --against production"
|
|
2340
2310
|
],
|
|
2341
2311
|
"flags": {
|
|
2342
2312
|
"json": {
|
|
@@ -2363,7 +2333,7 @@
|
|
|
2363
2333
|
},
|
|
2364
2334
|
"hasDynamicHelp": false,
|
|
2365
2335
|
"hiddenAliases": [],
|
|
2366
|
-
"id": "
|
|
2336
|
+
"id": "form:diff",
|
|
2367
2337
|
"pluginAlias": "@loopress/cli",
|
|
2368
2338
|
"pluginName": "@loopress/cli",
|
|
2369
2339
|
"pluginType": "core",
|
|
@@ -2397,17 +2367,16 @@
|
|
|
2397
2367
|
"relativePath": [
|
|
2398
2368
|
"dist",
|
|
2399
2369
|
"commands",
|
|
2400
|
-
"
|
|
2370
|
+
"form",
|
|
2401
2371
|
"diff.js"
|
|
2402
2372
|
]
|
|
2403
2373
|
},
|
|
2404
|
-
"
|
|
2374
|
+
"form:list": {
|
|
2405
2375
|
"aliases": [],
|
|
2406
2376
|
"args": {},
|
|
2407
|
-
"description": "List
|
|
2377
|
+
"description": "List forms from WordPress",
|
|
2408
2378
|
"examples": [
|
|
2409
|
-
"$ lps
|
|
2410
|
-
"$ lps option list --no-core"
|
|
2379
|
+
"$ lps form list"
|
|
2411
2380
|
],
|
|
2412
2381
|
"flags": {
|
|
2413
2382
|
"json": {
|
|
@@ -2423,17 +2392,11 @@
|
|
|
2423
2392
|
"hasDynamicHelp": false,
|
|
2424
2393
|
"multiple": false,
|
|
2425
2394
|
"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
2395
|
}
|
|
2433
2396
|
},
|
|
2434
2397
|
"hasDynamicHelp": false,
|
|
2435
2398
|
"hiddenAliases": [],
|
|
2436
|
-
"id": "
|
|
2399
|
+
"id": "form:list",
|
|
2437
2400
|
"pluginAlias": "@loopress/cli",
|
|
2438
2401
|
"pluginName": "@loopress/cli",
|
|
2439
2402
|
"pluginType": "core",
|
|
@@ -2459,30 +2422,23 @@
|
|
|
2459
2422
|
"relativePath": [
|
|
2460
2423
|
"dist",
|
|
2461
2424
|
"commands",
|
|
2462
|
-
"
|
|
2425
|
+
"form",
|
|
2463
2426
|
"list.js"
|
|
2464
2427
|
]
|
|
2465
2428
|
},
|
|
2466
|
-
"
|
|
2429
|
+
"form:pull": {
|
|
2467
2430
|
"aliases": [],
|
|
2468
2431
|
"args": {
|
|
2469
2432
|
"path": {
|
|
2470
|
-
"description": "Path to
|
|
2433
|
+
"description": "Path to forms directory (overrides project config)",
|
|
2471
2434
|
"name": "path"
|
|
2472
2435
|
}
|
|
2473
2436
|
},
|
|
2474
|
-
"description": "
|
|
2437
|
+
"description": "Pull forms from WordPress",
|
|
2475
2438
|
"examples": [
|
|
2476
|
-
"$ lps
|
|
2439
|
+
"$ lps form pull"
|
|
2477
2440
|
],
|
|
2478
2441
|
"flags": {
|
|
2479
|
-
"json": {
|
|
2480
|
-
"description": "Format output as json.",
|
|
2481
|
-
"helpGroup": "GLOBAL",
|
|
2482
|
-
"name": "json",
|
|
2483
|
-
"allowNo": false,
|
|
2484
|
-
"type": "boolean"
|
|
2485
|
-
},
|
|
2486
2442
|
"env": {
|
|
2487
2443
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2488
2444
|
"name": "env",
|
|
@@ -2507,12 +2463,12 @@
|
|
|
2507
2463
|
},
|
|
2508
2464
|
"hasDynamicHelp": false,
|
|
2509
2465
|
"hiddenAliases": [],
|
|
2510
|
-
"id": "
|
|
2466
|
+
"id": "form:pull",
|
|
2511
2467
|
"pluginAlias": "@loopress/cli",
|
|
2512
2468
|
"pluginName": "@loopress/cli",
|
|
2513
2469
|
"pluginType": "core",
|
|
2514
2470
|
"strict": true,
|
|
2515
|
-
"enableJsonFlag":
|
|
2471
|
+
"enableJsonFlag": false,
|
|
2516
2472
|
"dryRunFlag": {
|
|
2517
2473
|
"dry-run": {
|
|
2518
2474
|
"char": "d",
|
|
@@ -2533,30 +2489,24 @@
|
|
|
2533
2489
|
"relativePath": [
|
|
2534
2490
|
"dist",
|
|
2535
2491
|
"commands",
|
|
2536
|
-
"
|
|
2492
|
+
"form",
|
|
2537
2493
|
"pull.js"
|
|
2538
2494
|
]
|
|
2539
2495
|
},
|
|
2540
|
-
"
|
|
2496
|
+
"form:push": {
|
|
2541
2497
|
"aliases": [],
|
|
2542
2498
|
"args": {
|
|
2543
2499
|
"path": {
|
|
2544
|
-
"description": "Path to
|
|
2500
|
+
"description": "Path to forms directory (overrides project config)",
|
|
2545
2501
|
"name": "path"
|
|
2546
2502
|
}
|
|
2547
2503
|
},
|
|
2548
|
-
"description": "Push
|
|
2504
|
+
"description": "Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
2549
2505
|
"examples": [
|
|
2550
|
-
"$ lps
|
|
2506
|
+
"$ lps form push",
|
|
2507
|
+
"$ lps form push --allow-notifications"
|
|
2551
2508
|
],
|
|
2552
2509
|
"flags": {
|
|
2553
|
-
"json": {
|
|
2554
|
-
"description": "Format output as json.",
|
|
2555
|
-
"helpGroup": "GLOBAL",
|
|
2556
|
-
"name": "json",
|
|
2557
|
-
"allowNo": false,
|
|
2558
|
-
"type": "boolean"
|
|
2559
|
-
},
|
|
2560
2510
|
"env": {
|
|
2561
2511
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2562
2512
|
"name": "env",
|
|
@@ -2577,37 +2527,43 @@
|
|
|
2577
2527
|
"name": "yes",
|
|
2578
2528
|
"allowNo": false,
|
|
2579
2529
|
"type": "boolean"
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2530
|
+
},
|
|
2531
|
+
"allow-notifications": {
|
|
2532
|
+
"description": "Also push each form's notification and confirmation settings (recipients, sender, messages). Off by default: the server keeps its own so a stray push can't redirect submissions.",
|
|
2533
|
+
"name": "allow-notifications",
|
|
2534
|
+
"allowNo": false,
|
|
2535
|
+
"type": "boolean"
|
|
2536
|
+
}
|
|
2537
|
+
},
|
|
2582
2538
|
"hasDynamicHelp": false,
|
|
2583
2539
|
"hiddenAliases": [],
|
|
2584
|
-
"id": "
|
|
2540
|
+
"id": "form:push",
|
|
2585
2541
|
"pluginAlias": "@loopress/cli",
|
|
2586
2542
|
"pluginName": "@loopress/cli",
|
|
2587
2543
|
"pluginType": "core",
|
|
2588
2544
|
"strict": true,
|
|
2589
|
-
"enableJsonFlag": true,
|
|
2590
2545
|
"isESM": true,
|
|
2591
2546
|
"relativePath": [
|
|
2592
2547
|
"dist",
|
|
2593
2548
|
"commands",
|
|
2594
|
-
"
|
|
2549
|
+
"form",
|
|
2595
2550
|
"push.js"
|
|
2596
2551
|
]
|
|
2597
2552
|
},
|
|
2598
|
-
"
|
|
2553
|
+
"form:rollback": {
|
|
2599
2554
|
"aliases": [],
|
|
2600
2555
|
"args": {
|
|
2601
|
-
"
|
|
2602
|
-
"description": "
|
|
2603
|
-
"name": "
|
|
2604
|
-
"required": true
|
|
2556
|
+
"path": {
|
|
2557
|
+
"description": "Path to forms directory (overrides project config)",
|
|
2558
|
+
"name": "path"
|
|
2605
2559
|
}
|
|
2606
2560
|
},
|
|
2607
|
-
"description": "
|
|
2561
|
+
"description": "Restore forms to a snapshot taken automatically before an earlier `lps form push`",
|
|
2608
2562
|
"examples": [
|
|
2609
|
-
"$ lps
|
|
2610
|
-
"$ lps
|
|
2563
|
+
"$ lps form rollback",
|
|
2564
|
+
"$ lps form rollback --list",
|
|
2565
|
+
"$ lps form rollback --to 1732000000000",
|
|
2566
|
+
"$ lps form rollback --dry-run"
|
|
2611
2567
|
],
|
|
2612
2568
|
"flags": {
|
|
2613
2569
|
"json": {
|
|
@@ -2638,15 +2594,15 @@
|
|
|
2638
2594
|
"allowNo": false,
|
|
2639
2595
|
"type": "boolean"
|
|
2640
2596
|
},
|
|
2641
|
-
"
|
|
2642
|
-
"description": "
|
|
2643
|
-
"name": "
|
|
2597
|
+
"list": {
|
|
2598
|
+
"description": "List available snapshots instead of rolling back",
|
|
2599
|
+
"name": "list",
|
|
2644
2600
|
"allowNo": false,
|
|
2645
2601
|
"type": "boolean"
|
|
2646
2602
|
},
|
|
2647
|
-
"
|
|
2648
|
-
"description": "
|
|
2649
|
-
"name": "
|
|
2603
|
+
"to": {
|
|
2604
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
2605
|
+
"name": "to",
|
|
2650
2606
|
"hasDynamicHelp": false,
|
|
2651
2607
|
"multiple": false,
|
|
2652
2608
|
"type": "option"
|
|
@@ -2654,7 +2610,7 @@
|
|
|
2654
2610
|
},
|
|
2655
2611
|
"hasDynamicHelp": false,
|
|
2656
2612
|
"hiddenAliases": [],
|
|
2657
|
-
"id": "
|
|
2613
|
+
"id": "form:rollback",
|
|
2658
2614
|
"pluginAlias": "@loopress/cli",
|
|
2659
2615
|
"pluginName": "@loopress/cli",
|
|
2660
2616
|
"pluginType": "core",
|
|
@@ -2680,26 +2636,32 @@
|
|
|
2680
2636
|
"relativePath": [
|
|
2681
2637
|
"dist",
|
|
2682
2638
|
"commands",
|
|
2683
|
-
"
|
|
2684
|
-
"
|
|
2639
|
+
"form",
|
|
2640
|
+
"rollback.js"
|
|
2685
2641
|
]
|
|
2686
2642
|
},
|
|
2687
|
-
"
|
|
2643
|
+
"menu:diff": {
|
|
2688
2644
|
"aliases": [],
|
|
2689
2645
|
"args": {
|
|
2690
|
-
"
|
|
2691
|
-
"description": "
|
|
2692
|
-
"name": "
|
|
2693
|
-
"required": true
|
|
2646
|
+
"path": {
|
|
2647
|
+
"description": "Path to menus directory (overrides project config)",
|
|
2648
|
+
"name": "path"
|
|
2694
2649
|
}
|
|
2695
2650
|
},
|
|
2696
|
-
"description": "
|
|
2651
|
+
"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",
|
|
2697
2652
|
"examples": [
|
|
2698
|
-
"$ lps
|
|
2699
|
-
"$ lps
|
|
2700
|
-
"$ lps
|
|
2653
|
+
"$ lps menu diff",
|
|
2654
|
+
"$ lps menu diff --env staging",
|
|
2655
|
+
"$ lps menu diff --env staging --against production"
|
|
2701
2656
|
],
|
|
2702
2657
|
"flags": {
|
|
2658
|
+
"json": {
|
|
2659
|
+
"description": "Format output as json.",
|
|
2660
|
+
"helpGroup": "GLOBAL",
|
|
2661
|
+
"name": "json",
|
|
2662
|
+
"allowNo": false,
|
|
2663
|
+
"type": "boolean"
|
|
2664
|
+
},
|
|
2703
2665
|
"env": {
|
|
2704
2666
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2705
2667
|
"name": "env",
|
|
@@ -2707,16 +2669,9 @@
|
|
|
2707
2669
|
"multiple": false,
|
|
2708
2670
|
"type": "option"
|
|
2709
2671
|
},
|
|
2710
|
-
"
|
|
2711
|
-
"
|
|
2712
|
-
"
|
|
2713
|
-
"name": "dry-run",
|
|
2714
|
-
"allowNo": false,
|
|
2715
|
-
"type": "boolean"
|
|
2716
|
-
},
|
|
2717
|
-
"version": {
|
|
2718
|
-
"description": "Exact version to pin (default: \"latest\", tracked on every push)",
|
|
2719
|
-
"name": "version",
|
|
2672
|
+
"against": {
|
|
2673
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
2674
|
+
"name": "against",
|
|
2720
2675
|
"hasDynamicHelp": false,
|
|
2721
2676
|
"multiple": false,
|
|
2722
2677
|
"type": "option"
|
|
@@ -2724,12 +2679,12 @@
|
|
|
2724
2679
|
},
|
|
2725
2680
|
"hasDynamicHelp": false,
|
|
2726
2681
|
"hiddenAliases": [],
|
|
2727
|
-
"id": "
|
|
2682
|
+
"id": "menu:diff",
|
|
2728
2683
|
"pluginAlias": "@loopress/cli",
|
|
2729
2684
|
"pluginName": "@loopress/cli",
|
|
2730
2685
|
"pluginType": "core",
|
|
2731
2686
|
"strict": true,
|
|
2732
|
-
"enableJsonFlag":
|
|
2687
|
+
"enableJsonFlag": true,
|
|
2733
2688
|
"dryRunFlag": {
|
|
2734
2689
|
"dry-run": {
|
|
2735
2690
|
"char": "d",
|
|
@@ -2746,20 +2701,28 @@
|
|
|
2746
2701
|
"type": "boolean"
|
|
2747
2702
|
}
|
|
2748
2703
|
},
|
|
2704
|
+
"againstFlag": {
|
|
2705
|
+
"against": {
|
|
2706
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
2707
|
+
"input": [],
|
|
2708
|
+
"multiple": false,
|
|
2709
|
+
"type": "option"
|
|
2710
|
+
}
|
|
2711
|
+
},
|
|
2749
2712
|
"isESM": true,
|
|
2750
2713
|
"relativePath": [
|
|
2751
2714
|
"dist",
|
|
2752
2715
|
"commands",
|
|
2753
|
-
"
|
|
2754
|
-
"
|
|
2716
|
+
"menu",
|
|
2717
|
+
"diff.js"
|
|
2755
2718
|
]
|
|
2756
2719
|
},
|
|
2757
|
-
"
|
|
2720
|
+
"menu:list": {
|
|
2758
2721
|
"aliases": [],
|
|
2759
2722
|
"args": {},
|
|
2760
|
-
"description": "
|
|
2723
|
+
"description": "List nav menus and the active theme menu locations on WordPress",
|
|
2761
2724
|
"examples": [
|
|
2762
|
-
"$ lps
|
|
2725
|
+
"$ lps menu list"
|
|
2763
2726
|
],
|
|
2764
2727
|
"flags": {
|
|
2765
2728
|
"json": {
|
|
@@ -2779,7 +2742,7 @@
|
|
|
2779
2742
|
},
|
|
2780
2743
|
"hasDynamicHelp": false,
|
|
2781
2744
|
"hiddenAliases": [],
|
|
2782
|
-
"id": "
|
|
2745
|
+
"id": "menu:list",
|
|
2783
2746
|
"pluginAlias": "@loopress/cli",
|
|
2784
2747
|
"pluginName": "@loopress/cli",
|
|
2785
2748
|
"pluginType": "core",
|
|
@@ -2805,26 +2768,23 @@
|
|
|
2805
2768
|
"relativePath": [
|
|
2806
2769
|
"dist",
|
|
2807
2770
|
"commands",
|
|
2808
|
-
"
|
|
2809
|
-
"
|
|
2771
|
+
"menu",
|
|
2772
|
+
"list.js"
|
|
2810
2773
|
]
|
|
2811
2774
|
},
|
|
2812
|
-
"
|
|
2775
|
+
"menu:pull": {
|
|
2813
2776
|
"aliases": [],
|
|
2814
|
-
"args": {
|
|
2815
|
-
|
|
2777
|
+
"args": {
|
|
2778
|
+
"path": {
|
|
2779
|
+
"description": "Path to menus directory (overrides project config)",
|
|
2780
|
+
"name": "path"
|
|
2781
|
+
}
|
|
2782
|
+
},
|
|
2783
|
+
"description": "Pull nav menus and the active theme menu locations from WordPress",
|
|
2816
2784
|
"examples": [
|
|
2817
|
-
"$ lps
|
|
2818
|
-
"$ lps plugin pull --dry-run"
|
|
2785
|
+
"$ lps menu pull"
|
|
2819
2786
|
],
|
|
2820
2787
|
"flags": {
|
|
2821
|
-
"json": {
|
|
2822
|
-
"description": "Format output as json.",
|
|
2823
|
-
"helpGroup": "GLOBAL",
|
|
2824
|
-
"name": "json",
|
|
2825
|
-
"allowNo": false,
|
|
2826
|
-
"type": "boolean"
|
|
2827
|
-
},
|
|
2828
2788
|
"env": {
|
|
2829
2789
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2830
2790
|
"name": "env",
|
|
@@ -2838,16 +2798,23 @@
|
|
|
2838
2798
|
"name": "dry-run",
|
|
2839
2799
|
"allowNo": false,
|
|
2840
2800
|
"type": "boolean"
|
|
2801
|
+
},
|
|
2802
|
+
"yes": {
|
|
2803
|
+
"char": "y",
|
|
2804
|
+
"description": "Answer yes to confirmation prompts",
|
|
2805
|
+
"name": "yes",
|
|
2806
|
+
"allowNo": false,
|
|
2807
|
+
"type": "boolean"
|
|
2841
2808
|
}
|
|
2842
2809
|
},
|
|
2843
2810
|
"hasDynamicHelp": false,
|
|
2844
2811
|
"hiddenAliases": [],
|
|
2845
|
-
"id": "
|
|
2812
|
+
"id": "menu:pull",
|
|
2846
2813
|
"pluginAlias": "@loopress/cli",
|
|
2847
2814
|
"pluginName": "@loopress/cli",
|
|
2848
2815
|
"pluginType": "core",
|
|
2849
2816
|
"strict": true,
|
|
2850
|
-
"enableJsonFlag":
|
|
2817
|
+
"enableJsonFlag": false,
|
|
2851
2818
|
"dryRunFlag": {
|
|
2852
2819
|
"dry-run": {
|
|
2853
2820
|
"char": "d",
|
|
@@ -2868,27 +2835,23 @@
|
|
|
2868
2835
|
"relativePath": [
|
|
2869
2836
|
"dist",
|
|
2870
2837
|
"commands",
|
|
2871
|
-
"
|
|
2838
|
+
"menu",
|
|
2872
2839
|
"pull.js"
|
|
2873
2840
|
]
|
|
2874
2841
|
},
|
|
2875
|
-
"
|
|
2842
|
+
"menu:push": {
|
|
2876
2843
|
"aliases": [],
|
|
2877
|
-
"args": {
|
|
2878
|
-
|
|
2844
|
+
"args": {
|
|
2845
|
+
"path": {
|
|
2846
|
+
"description": "Path to menus directory (overrides project config)",
|
|
2847
|
+
"name": "path"
|
|
2848
|
+
}
|
|
2849
|
+
},
|
|
2850
|
+
"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.",
|
|
2879
2851
|
"examples": [
|
|
2880
|
-
"$ lps
|
|
2881
|
-
"$ lps plugin push --dry-run",
|
|
2882
|
-
"$ lps plugin push --force --prune"
|
|
2852
|
+
"$ lps menu push"
|
|
2883
2853
|
],
|
|
2884
2854
|
"flags": {
|
|
2885
|
-
"json": {
|
|
2886
|
-
"description": "Format output as json.",
|
|
2887
|
-
"helpGroup": "GLOBAL",
|
|
2888
|
-
"name": "json",
|
|
2889
|
-
"allowNo": false,
|
|
2890
|
-
"type": "boolean"
|
|
2891
|
-
},
|
|
2892
2855
|
"env": {
|
|
2893
2856
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2894
2857
|
"name": "env",
|
|
@@ -2909,42 +2872,37 @@
|
|
|
2909
2872
|
"name": "yes",
|
|
2910
2873
|
"allowNo": false,
|
|
2911
2874
|
"type": "boolean"
|
|
2912
|
-
},
|
|
2913
|
-
"force": {
|
|
2914
|
-
"description": "Allow downgrades and let Loopress take over plugins installed outside it (replaces their files)",
|
|
2915
|
-
"name": "force",
|
|
2916
|
-
"allowNo": false,
|
|
2917
|
-
"type": "boolean"
|
|
2918
|
-
},
|
|
2919
|
-
"prune": {
|
|
2920
|
-
"description": "Deactivate plugins that are active on the site but absent from loopress.json",
|
|
2921
|
-
"name": "prune",
|
|
2922
|
-
"allowNo": false,
|
|
2923
|
-
"type": "boolean"
|
|
2924
2875
|
}
|
|
2925
2876
|
},
|
|
2926
2877
|
"hasDynamicHelp": false,
|
|
2927
2878
|
"hiddenAliases": [],
|
|
2928
|
-
"id": "
|
|
2879
|
+
"id": "menu:push",
|
|
2929
2880
|
"pluginAlias": "@loopress/cli",
|
|
2930
2881
|
"pluginName": "@loopress/cli",
|
|
2931
2882
|
"pluginType": "core",
|
|
2932
2883
|
"strict": true,
|
|
2933
|
-
"enableJsonFlag": true,
|
|
2934
2884
|
"isESM": true,
|
|
2935
2885
|
"relativePath": [
|
|
2936
2886
|
"dist",
|
|
2937
2887
|
"commands",
|
|
2938
|
-
"
|
|
2888
|
+
"menu",
|
|
2939
2889
|
"push.js"
|
|
2940
2890
|
]
|
|
2941
2891
|
},
|
|
2942
|
-
"
|
|
2892
|
+
"menu:rollback": {
|
|
2943
2893
|
"aliases": [],
|
|
2944
|
-
"args": {
|
|
2945
|
-
|
|
2894
|
+
"args": {
|
|
2895
|
+
"path": {
|
|
2896
|
+
"description": "Path to menus directory (overrides project config)",
|
|
2897
|
+
"name": "path"
|
|
2898
|
+
}
|
|
2899
|
+
},
|
|
2900
|
+
"description": "Restore nav menus and menu locations to a snapshot taken automatically before an earlier `lps menu push`",
|
|
2946
2901
|
"examples": [
|
|
2947
|
-
"$ lps
|
|
2902
|
+
"$ lps menu rollback",
|
|
2903
|
+
"$ lps menu rollback --list",
|
|
2904
|
+
"$ lps menu rollback --to 1732000000000",
|
|
2905
|
+
"$ lps menu rollback --dry-run"
|
|
2948
2906
|
],
|
|
2949
2907
|
"flags": {
|
|
2950
2908
|
"json": {
|
|
@@ -2960,11 +2918,38 @@
|
|
|
2960
2918
|
"hasDynamicHelp": false,
|
|
2961
2919
|
"multiple": false,
|
|
2962
2920
|
"type": "option"
|
|
2921
|
+
},
|
|
2922
|
+
"dry-run": {
|
|
2923
|
+
"char": "d",
|
|
2924
|
+
"description": "Show what would change without making changes",
|
|
2925
|
+
"name": "dry-run",
|
|
2926
|
+
"allowNo": false,
|
|
2927
|
+
"type": "boolean"
|
|
2928
|
+
},
|
|
2929
|
+
"yes": {
|
|
2930
|
+
"char": "y",
|
|
2931
|
+
"description": "Answer yes to confirmation prompts",
|
|
2932
|
+
"name": "yes",
|
|
2933
|
+
"allowNo": false,
|
|
2934
|
+
"type": "boolean"
|
|
2935
|
+
},
|
|
2936
|
+
"list": {
|
|
2937
|
+
"description": "List available snapshots instead of rolling back",
|
|
2938
|
+
"name": "list",
|
|
2939
|
+
"allowNo": false,
|
|
2940
|
+
"type": "boolean"
|
|
2941
|
+
},
|
|
2942
|
+
"to": {
|
|
2943
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
2944
|
+
"name": "to",
|
|
2945
|
+
"hasDynamicHelp": false,
|
|
2946
|
+
"multiple": false,
|
|
2947
|
+
"type": "option"
|
|
2963
2948
|
}
|
|
2964
2949
|
},
|
|
2965
2950
|
"hasDynamicHelp": false,
|
|
2966
2951
|
"hiddenAliases": [],
|
|
2967
|
-
"id": "
|
|
2952
|
+
"id": "menu:rollback",
|
|
2968
2953
|
"pluginAlias": "@loopress/cli",
|
|
2969
2954
|
"pluginName": "@loopress/cli",
|
|
2970
2955
|
"pluginType": "core",
|
|
@@ -2990,40 +2975,23 @@
|
|
|
2990
2975
|
"relativePath": [
|
|
2991
2976
|
"dist",
|
|
2992
2977
|
"commands",
|
|
2993
|
-
"
|
|
2994
|
-
"
|
|
2995
|
-
]
|
|
2996
|
-
},
|
|
2997
|
-
"project:config": {
|
|
2998
|
-
"aliases": [],
|
|
2999
|
-
"args": {},
|
|
3000
|
-
"description": "Add or update a WordPress project environment. By default, authorizes via WordPress in your browser; manual username/Application Password entry is available as a fallback.",
|
|
3001
|
-
"examples": [
|
|
3002
|
-
"$ lps project config"
|
|
3003
|
-
],
|
|
3004
|
-
"flags": {},
|
|
3005
|
-
"hasDynamicHelp": false,
|
|
3006
|
-
"hiddenAliases": [],
|
|
3007
|
-
"id": "project:config",
|
|
3008
|
-
"pluginAlias": "@loopress/cli",
|
|
3009
|
-
"pluginName": "@loopress/cli",
|
|
3010
|
-
"pluginType": "core",
|
|
3011
|
-
"strict": true,
|
|
3012
|
-
"enableJsonFlag": false,
|
|
3013
|
-
"isESM": true,
|
|
3014
|
-
"relativePath": [
|
|
3015
|
-
"dist",
|
|
3016
|
-
"commands",
|
|
3017
|
-
"project",
|
|
3018
|
-
"config.js"
|
|
2978
|
+
"menu",
|
|
2979
|
+
"rollback.js"
|
|
3019
2980
|
]
|
|
3020
2981
|
},
|
|
3021
|
-
"
|
|
2982
|
+
"option:add": {
|
|
3022
2983
|
"aliases": [],
|
|
3023
|
-
"args": {
|
|
3024
|
-
|
|
2984
|
+
"args": {
|
|
2985
|
+
"name": {
|
|
2986
|
+
"description": "Option name to start tracking (see `lps option list`)",
|
|
2987
|
+
"name": "name",
|
|
2988
|
+
"required": true
|
|
2989
|
+
}
|
|
2990
|
+
},
|
|
2991
|
+
"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.",
|
|
3025
2992
|
"examples": [
|
|
3026
|
-
"$ lps
|
|
2993
|
+
"$ lps option add wpseo_titles",
|
|
2994
|
+
"$ lps option add siteurl"
|
|
3027
2995
|
],
|
|
3028
2996
|
"flags": {
|
|
3029
2997
|
"json": {
|
|
@@ -3032,26 +3000,879 @@
|
|
|
3032
3000
|
"name": "json",
|
|
3033
3001
|
"allowNo": false,
|
|
3034
3002
|
"type": "boolean"
|
|
3003
|
+
},
|
|
3004
|
+
"env": {
|
|
3005
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3006
|
+
"name": "env",
|
|
3007
|
+
"hasDynamicHelp": false,
|
|
3008
|
+
"multiple": false,
|
|
3009
|
+
"type": "option"
|
|
3010
|
+
},
|
|
3011
|
+
"dry-run": {
|
|
3012
|
+
"char": "d",
|
|
3013
|
+
"description": "Show what would change without making changes",
|
|
3014
|
+
"name": "dry-run",
|
|
3015
|
+
"allowNo": false,
|
|
3016
|
+
"type": "boolean"
|
|
3017
|
+
},
|
|
3018
|
+
"path": {
|
|
3019
|
+
"description": "Path to options directory (overrides project config)",
|
|
3020
|
+
"name": "path",
|
|
3021
|
+
"hasDynamicHelp": false,
|
|
3022
|
+
"multiple": false,
|
|
3023
|
+
"type": "option"
|
|
3035
3024
|
}
|
|
3036
3025
|
},
|
|
3037
3026
|
"hasDynamicHelp": false,
|
|
3038
3027
|
"hiddenAliases": [],
|
|
3039
|
-
"id": "
|
|
3028
|
+
"id": "option:add",
|
|
3040
3029
|
"pluginAlias": "@loopress/cli",
|
|
3041
3030
|
"pluginName": "@loopress/cli",
|
|
3042
3031
|
"pluginType": "core",
|
|
3043
3032
|
"strict": true,
|
|
3044
3033
|
"enableJsonFlag": true,
|
|
3045
|
-
"
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3034
|
+
"dryRunFlag": {
|
|
3035
|
+
"dry-run": {
|
|
3036
|
+
"char": "d",
|
|
3037
|
+
"description": "Show what would change without making changes",
|
|
3038
|
+
"allowNo": false,
|
|
3039
|
+
"type": "boolean"
|
|
3040
|
+
}
|
|
3041
|
+
},
|
|
3042
|
+
"yesFlag": {
|
|
3043
|
+
"yes": {
|
|
3044
|
+
"char": "y",
|
|
3045
|
+
"description": "Answer yes to confirmation prompts",
|
|
3046
|
+
"allowNo": false,
|
|
3047
|
+
"type": "boolean"
|
|
3048
|
+
}
|
|
3049
|
+
},
|
|
3050
|
+
"isESM": true,
|
|
3051
|
+
"relativePath": [
|
|
3052
|
+
"dist",
|
|
3053
|
+
"commands",
|
|
3054
|
+
"option",
|
|
3055
|
+
"add.js"
|
|
3056
|
+
]
|
|
3057
|
+
},
|
|
3058
|
+
"option:diff": {
|
|
3059
|
+
"aliases": [],
|
|
3060
|
+
"args": {
|
|
3061
|
+
"path": {
|
|
3062
|
+
"description": "Path to options directory (overrides project config)",
|
|
3063
|
+
"name": "path"
|
|
3064
|
+
}
|
|
3065
|
+
},
|
|
3066
|
+
"description": "Show what differs, for locally tracked options, between your local files and a WordPress environment, or between two environments",
|
|
3067
|
+
"examples": [
|
|
3068
|
+
"$ lps option diff",
|
|
3069
|
+
"$ lps option diff --env staging",
|
|
3070
|
+
"$ lps option diff --env staging --against production"
|
|
3071
|
+
],
|
|
3072
|
+
"flags": {
|
|
3073
|
+
"json": {
|
|
3074
|
+
"description": "Format output as json.",
|
|
3075
|
+
"helpGroup": "GLOBAL",
|
|
3076
|
+
"name": "json",
|
|
3077
|
+
"allowNo": false,
|
|
3078
|
+
"type": "boolean"
|
|
3079
|
+
},
|
|
3080
|
+
"env": {
|
|
3081
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3082
|
+
"name": "env",
|
|
3083
|
+
"hasDynamicHelp": false,
|
|
3084
|
+
"multiple": false,
|
|
3085
|
+
"type": "option"
|
|
3086
|
+
},
|
|
3087
|
+
"against": {
|
|
3088
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3089
|
+
"name": "against",
|
|
3090
|
+
"hasDynamicHelp": false,
|
|
3091
|
+
"multiple": false,
|
|
3092
|
+
"type": "option"
|
|
3093
|
+
}
|
|
3094
|
+
},
|
|
3095
|
+
"hasDynamicHelp": false,
|
|
3096
|
+
"hiddenAliases": [],
|
|
3097
|
+
"id": "option:diff",
|
|
3098
|
+
"pluginAlias": "@loopress/cli",
|
|
3099
|
+
"pluginName": "@loopress/cli",
|
|
3100
|
+
"pluginType": "core",
|
|
3101
|
+
"strict": true,
|
|
3102
|
+
"enableJsonFlag": true,
|
|
3103
|
+
"dryRunFlag": {
|
|
3104
|
+
"dry-run": {
|
|
3105
|
+
"char": "d",
|
|
3106
|
+
"description": "Show what would change without making changes",
|
|
3107
|
+
"allowNo": false,
|
|
3108
|
+
"type": "boolean"
|
|
3109
|
+
}
|
|
3110
|
+
},
|
|
3111
|
+
"yesFlag": {
|
|
3112
|
+
"yes": {
|
|
3113
|
+
"char": "y",
|
|
3114
|
+
"description": "Answer yes to confirmation prompts",
|
|
3115
|
+
"allowNo": false,
|
|
3116
|
+
"type": "boolean"
|
|
3117
|
+
}
|
|
3118
|
+
},
|
|
3119
|
+
"againstFlag": {
|
|
3120
|
+
"against": {
|
|
3121
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3122
|
+
"input": [],
|
|
3123
|
+
"multiple": false,
|
|
3124
|
+
"type": "option"
|
|
3125
|
+
}
|
|
3126
|
+
},
|
|
3127
|
+
"isESM": true,
|
|
3128
|
+
"relativePath": [
|
|
3129
|
+
"dist",
|
|
3130
|
+
"commands",
|
|
3131
|
+
"option",
|
|
3132
|
+
"diff.js"
|
|
3133
|
+
]
|
|
3134
|
+
},
|
|
3135
|
+
"option:list": {
|
|
3136
|
+
"aliases": [],
|
|
3137
|
+
"args": {},
|
|
3138
|
+
"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.",
|
|
3139
|
+
"examples": [
|
|
3140
|
+
"$ lps option list",
|
|
3141
|
+
"$ lps option list --no-core"
|
|
3142
|
+
],
|
|
3143
|
+
"flags": {
|
|
3144
|
+
"json": {
|
|
3145
|
+
"description": "Format output as json.",
|
|
3146
|
+
"helpGroup": "GLOBAL",
|
|
3147
|
+
"name": "json",
|
|
3148
|
+
"allowNo": false,
|
|
3149
|
+
"type": "boolean"
|
|
3150
|
+
},
|
|
3151
|
+
"env": {
|
|
3152
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3153
|
+
"name": "env",
|
|
3154
|
+
"hasDynamicHelp": false,
|
|
3155
|
+
"multiple": false,
|
|
3156
|
+
"type": "option"
|
|
3157
|
+
},
|
|
3158
|
+
"no-core": {
|
|
3159
|
+
"description": "Exclude WordPress-native default options and the CORE column from the output, including --json",
|
|
3160
|
+
"name": "no-core",
|
|
3161
|
+
"allowNo": false,
|
|
3162
|
+
"type": "boolean"
|
|
3163
|
+
}
|
|
3164
|
+
},
|
|
3165
|
+
"hasDynamicHelp": false,
|
|
3166
|
+
"hiddenAliases": [],
|
|
3167
|
+
"id": "option:list",
|
|
3168
|
+
"pluginAlias": "@loopress/cli",
|
|
3169
|
+
"pluginName": "@loopress/cli",
|
|
3170
|
+
"pluginType": "core",
|
|
3171
|
+
"strict": true,
|
|
3172
|
+
"enableJsonFlag": true,
|
|
3173
|
+
"dryRunFlag": {
|
|
3174
|
+
"dry-run": {
|
|
3175
|
+
"char": "d",
|
|
3176
|
+
"description": "Show what would change without making changes",
|
|
3177
|
+
"allowNo": false,
|
|
3178
|
+
"type": "boolean"
|
|
3179
|
+
}
|
|
3180
|
+
},
|
|
3181
|
+
"yesFlag": {
|
|
3182
|
+
"yes": {
|
|
3183
|
+
"char": "y",
|
|
3184
|
+
"description": "Answer yes to confirmation prompts",
|
|
3185
|
+
"allowNo": false,
|
|
3186
|
+
"type": "boolean"
|
|
3187
|
+
}
|
|
3188
|
+
},
|
|
3189
|
+
"isESM": true,
|
|
3190
|
+
"relativePath": [
|
|
3191
|
+
"dist",
|
|
3192
|
+
"commands",
|
|
3193
|
+
"option",
|
|
3194
|
+
"list.js"
|
|
3195
|
+
]
|
|
3196
|
+
},
|
|
3197
|
+
"option:pull": {
|
|
3198
|
+
"aliases": [],
|
|
3199
|
+
"args": {
|
|
3200
|
+
"path": {
|
|
3201
|
+
"description": "Path to options directory (overrides project config)",
|
|
3202
|
+
"name": "path"
|
|
3203
|
+
}
|
|
3204
|
+
},
|
|
3205
|
+
"description": "Refresh locally tracked options from WordPress. Options not yet tracked are never pulled, run `lps option add <name>` for those first.",
|
|
3206
|
+
"examples": [
|
|
3207
|
+
"$ lps option pull"
|
|
3208
|
+
],
|
|
3209
|
+
"flags": {
|
|
3210
|
+
"json": {
|
|
3211
|
+
"description": "Format output as json.",
|
|
3212
|
+
"helpGroup": "GLOBAL",
|
|
3213
|
+
"name": "json",
|
|
3214
|
+
"allowNo": false,
|
|
3215
|
+
"type": "boolean"
|
|
3216
|
+
},
|
|
3217
|
+
"env": {
|
|
3218
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3219
|
+
"name": "env",
|
|
3220
|
+
"hasDynamicHelp": false,
|
|
3221
|
+
"multiple": false,
|
|
3222
|
+
"type": "option"
|
|
3223
|
+
},
|
|
3224
|
+
"dry-run": {
|
|
3225
|
+
"char": "d",
|
|
3226
|
+
"description": "Show what would change without making changes",
|
|
3227
|
+
"name": "dry-run",
|
|
3228
|
+
"allowNo": false,
|
|
3229
|
+
"type": "boolean"
|
|
3230
|
+
},
|
|
3231
|
+
"yes": {
|
|
3232
|
+
"char": "y",
|
|
3233
|
+
"description": "Answer yes to confirmation prompts",
|
|
3234
|
+
"name": "yes",
|
|
3235
|
+
"allowNo": false,
|
|
3236
|
+
"type": "boolean"
|
|
3237
|
+
}
|
|
3238
|
+
},
|
|
3239
|
+
"hasDynamicHelp": false,
|
|
3240
|
+
"hiddenAliases": [],
|
|
3241
|
+
"id": "option:pull",
|
|
3242
|
+
"pluginAlias": "@loopress/cli",
|
|
3243
|
+
"pluginName": "@loopress/cli",
|
|
3244
|
+
"pluginType": "core",
|
|
3245
|
+
"strict": true,
|
|
3246
|
+
"enableJsonFlag": true,
|
|
3247
|
+
"dryRunFlag": {
|
|
3248
|
+
"dry-run": {
|
|
3249
|
+
"char": "d",
|
|
3250
|
+
"description": "Show what would change without making changes",
|
|
3251
|
+
"allowNo": false,
|
|
3252
|
+
"type": "boolean"
|
|
3253
|
+
}
|
|
3254
|
+
},
|
|
3255
|
+
"yesFlag": {
|
|
3256
|
+
"yes": {
|
|
3257
|
+
"char": "y",
|
|
3258
|
+
"description": "Answer yes to confirmation prompts",
|
|
3259
|
+
"allowNo": false,
|
|
3260
|
+
"type": "boolean"
|
|
3261
|
+
}
|
|
3262
|
+
},
|
|
3263
|
+
"isESM": true,
|
|
3264
|
+
"relativePath": [
|
|
3265
|
+
"dist",
|
|
3266
|
+
"commands",
|
|
3267
|
+
"option",
|
|
3268
|
+
"pull.js"
|
|
3269
|
+
]
|
|
3270
|
+
},
|
|
3271
|
+
"option:push": {
|
|
3272
|
+
"aliases": [],
|
|
3273
|
+
"args": {
|
|
3274
|
+
"path": {
|
|
3275
|
+
"description": "Path to options directory (overrides project config)",
|
|
3276
|
+
"name": "path"
|
|
3277
|
+
}
|
|
3278
|
+
},
|
|
3279
|
+
"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.",
|
|
3280
|
+
"examples": [
|
|
3281
|
+
"$ lps option push"
|
|
3282
|
+
],
|
|
3283
|
+
"flags": {
|
|
3284
|
+
"json": {
|
|
3285
|
+
"description": "Format output as json.",
|
|
3286
|
+
"helpGroup": "GLOBAL",
|
|
3287
|
+
"name": "json",
|
|
3288
|
+
"allowNo": false,
|
|
3289
|
+
"type": "boolean"
|
|
3290
|
+
},
|
|
3291
|
+
"env": {
|
|
3292
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3293
|
+
"name": "env",
|
|
3294
|
+
"hasDynamicHelp": false,
|
|
3295
|
+
"multiple": false,
|
|
3296
|
+
"type": "option"
|
|
3297
|
+
},
|
|
3298
|
+
"dry-run": {
|
|
3299
|
+
"char": "d",
|
|
3300
|
+
"description": "Show what would change without making changes",
|
|
3301
|
+
"name": "dry-run",
|
|
3302
|
+
"allowNo": false,
|
|
3303
|
+
"type": "boolean"
|
|
3304
|
+
},
|
|
3305
|
+
"yes": {
|
|
3306
|
+
"char": "y",
|
|
3307
|
+
"description": "Answer yes to confirmation prompts",
|
|
3308
|
+
"name": "yes",
|
|
3309
|
+
"allowNo": false,
|
|
3310
|
+
"type": "boolean"
|
|
3311
|
+
}
|
|
3312
|
+
},
|
|
3313
|
+
"hasDynamicHelp": false,
|
|
3314
|
+
"hiddenAliases": [],
|
|
3315
|
+
"id": "option:push",
|
|
3316
|
+
"pluginAlias": "@loopress/cli",
|
|
3317
|
+
"pluginName": "@loopress/cli",
|
|
3318
|
+
"pluginType": "core",
|
|
3319
|
+
"strict": true,
|
|
3320
|
+
"enableJsonFlag": true,
|
|
3321
|
+
"isESM": true,
|
|
3322
|
+
"relativePath": [
|
|
3323
|
+
"dist",
|
|
3324
|
+
"commands",
|
|
3325
|
+
"option",
|
|
3326
|
+
"push.js"
|
|
3327
|
+
]
|
|
3328
|
+
},
|
|
3329
|
+
"option:remove": {
|
|
3330
|
+
"aliases": [],
|
|
3331
|
+
"args": {
|
|
3332
|
+
"name": {
|
|
3333
|
+
"description": "Option name to stop tracking",
|
|
3334
|
+
"name": "name",
|
|
3335
|
+
"required": true
|
|
3336
|
+
}
|
|
3337
|
+
},
|
|
3338
|
+
"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.",
|
|
3339
|
+
"examples": [
|
|
3340
|
+
"$ lps option remove wpseo_titles",
|
|
3341
|
+
"$ lps option remove wpseo_titles --local-only"
|
|
3342
|
+
],
|
|
3343
|
+
"flags": {
|
|
3344
|
+
"json": {
|
|
3345
|
+
"description": "Format output as json.",
|
|
3346
|
+
"helpGroup": "GLOBAL",
|
|
3347
|
+
"name": "json",
|
|
3348
|
+
"allowNo": false,
|
|
3349
|
+
"type": "boolean"
|
|
3350
|
+
},
|
|
3351
|
+
"env": {
|
|
3352
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3353
|
+
"name": "env",
|
|
3354
|
+
"hasDynamicHelp": false,
|
|
3355
|
+
"multiple": false,
|
|
3356
|
+
"type": "option"
|
|
3357
|
+
},
|
|
3358
|
+
"dry-run": {
|
|
3359
|
+
"char": "d",
|
|
3360
|
+
"description": "Show what would change without making changes",
|
|
3361
|
+
"name": "dry-run",
|
|
3362
|
+
"allowNo": false,
|
|
3363
|
+
"type": "boolean"
|
|
3364
|
+
},
|
|
3365
|
+
"yes": {
|
|
3366
|
+
"char": "y",
|
|
3367
|
+
"description": "Answer yes to confirmation prompts",
|
|
3368
|
+
"name": "yes",
|
|
3369
|
+
"allowNo": false,
|
|
3370
|
+
"type": "boolean"
|
|
3371
|
+
},
|
|
3372
|
+
"local-only": {
|
|
3373
|
+
"description": "Untrack locally without deleting the option on WordPress",
|
|
3374
|
+
"name": "local-only",
|
|
3375
|
+
"allowNo": false,
|
|
3376
|
+
"type": "boolean"
|
|
3377
|
+
},
|
|
3378
|
+
"path": {
|
|
3379
|
+
"description": "Path to options directory (overrides project config)",
|
|
3380
|
+
"name": "path",
|
|
3381
|
+
"hasDynamicHelp": false,
|
|
3382
|
+
"multiple": false,
|
|
3383
|
+
"type": "option"
|
|
3384
|
+
}
|
|
3385
|
+
},
|
|
3386
|
+
"hasDynamicHelp": false,
|
|
3387
|
+
"hiddenAliases": [],
|
|
3388
|
+
"id": "option:remove",
|
|
3389
|
+
"pluginAlias": "@loopress/cli",
|
|
3390
|
+
"pluginName": "@loopress/cli",
|
|
3391
|
+
"pluginType": "core",
|
|
3392
|
+
"strict": true,
|
|
3393
|
+
"enableJsonFlag": true,
|
|
3394
|
+
"dryRunFlag": {
|
|
3395
|
+
"dry-run": {
|
|
3396
|
+
"char": "d",
|
|
3397
|
+
"description": "Show what would change without making changes",
|
|
3398
|
+
"allowNo": false,
|
|
3399
|
+
"type": "boolean"
|
|
3400
|
+
}
|
|
3401
|
+
},
|
|
3402
|
+
"yesFlag": {
|
|
3403
|
+
"yes": {
|
|
3404
|
+
"char": "y",
|
|
3405
|
+
"description": "Answer yes to confirmation prompts",
|
|
3406
|
+
"allowNo": false,
|
|
3407
|
+
"type": "boolean"
|
|
3408
|
+
}
|
|
3409
|
+
},
|
|
3410
|
+
"isESM": true,
|
|
3411
|
+
"relativePath": [
|
|
3412
|
+
"dist",
|
|
3413
|
+
"commands",
|
|
3414
|
+
"option",
|
|
3415
|
+
"remove.js"
|
|
3416
|
+
]
|
|
3417
|
+
},
|
|
3418
|
+
"option:rollback": {
|
|
3419
|
+
"aliases": [],
|
|
3420
|
+
"args": {
|
|
3421
|
+
"path": {
|
|
3422
|
+
"description": "Path to options directory (overrides project config)",
|
|
3423
|
+
"name": "path"
|
|
3424
|
+
}
|
|
3425
|
+
},
|
|
3426
|
+
"description": "Restore tracked options to a snapshot taken automatically before an earlier `lps option push`",
|
|
3427
|
+
"examples": [
|
|
3428
|
+
"$ lps option rollback",
|
|
3429
|
+
"$ lps option rollback --list",
|
|
3430
|
+
"$ lps option rollback --to 1732000000000",
|
|
3431
|
+
"$ lps option rollback --dry-run"
|
|
3432
|
+
],
|
|
3433
|
+
"flags": {
|
|
3434
|
+
"json": {
|
|
3435
|
+
"description": "Format output as json.",
|
|
3436
|
+
"helpGroup": "GLOBAL",
|
|
3437
|
+
"name": "json",
|
|
3438
|
+
"allowNo": false,
|
|
3439
|
+
"type": "boolean"
|
|
3440
|
+
},
|
|
3441
|
+
"env": {
|
|
3442
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3443
|
+
"name": "env",
|
|
3444
|
+
"hasDynamicHelp": false,
|
|
3445
|
+
"multiple": false,
|
|
3446
|
+
"type": "option"
|
|
3447
|
+
},
|
|
3448
|
+
"dry-run": {
|
|
3449
|
+
"char": "d",
|
|
3450
|
+
"description": "Show what would change without making changes",
|
|
3451
|
+
"name": "dry-run",
|
|
3452
|
+
"allowNo": false,
|
|
3453
|
+
"type": "boolean"
|
|
3454
|
+
},
|
|
3455
|
+
"yes": {
|
|
3456
|
+
"char": "y",
|
|
3457
|
+
"description": "Answer yes to confirmation prompts",
|
|
3458
|
+
"name": "yes",
|
|
3459
|
+
"allowNo": false,
|
|
3460
|
+
"type": "boolean"
|
|
3461
|
+
},
|
|
3462
|
+
"list": {
|
|
3463
|
+
"description": "List available snapshots instead of rolling back",
|
|
3464
|
+
"name": "list",
|
|
3465
|
+
"allowNo": false,
|
|
3466
|
+
"type": "boolean"
|
|
3467
|
+
},
|
|
3468
|
+
"to": {
|
|
3469
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
3470
|
+
"name": "to",
|
|
3471
|
+
"hasDynamicHelp": false,
|
|
3472
|
+
"multiple": false,
|
|
3473
|
+
"type": "option"
|
|
3474
|
+
}
|
|
3475
|
+
},
|
|
3476
|
+
"hasDynamicHelp": false,
|
|
3477
|
+
"hiddenAliases": [],
|
|
3478
|
+
"id": "option:rollback",
|
|
3479
|
+
"pluginAlias": "@loopress/cli",
|
|
3480
|
+
"pluginName": "@loopress/cli",
|
|
3481
|
+
"pluginType": "core",
|
|
3482
|
+
"strict": true,
|
|
3483
|
+
"enableJsonFlag": true,
|
|
3484
|
+
"dryRunFlag": {
|
|
3485
|
+
"dry-run": {
|
|
3486
|
+
"char": "d",
|
|
3487
|
+
"description": "Show what would change without making changes",
|
|
3488
|
+
"allowNo": false,
|
|
3489
|
+
"type": "boolean"
|
|
3490
|
+
}
|
|
3491
|
+
},
|
|
3492
|
+
"yesFlag": {
|
|
3493
|
+
"yes": {
|
|
3494
|
+
"char": "y",
|
|
3495
|
+
"description": "Answer yes to confirmation prompts",
|
|
3496
|
+
"allowNo": false,
|
|
3497
|
+
"type": "boolean"
|
|
3498
|
+
}
|
|
3499
|
+
},
|
|
3500
|
+
"isESM": true,
|
|
3501
|
+
"relativePath": [
|
|
3502
|
+
"dist",
|
|
3503
|
+
"commands",
|
|
3504
|
+
"option",
|
|
3505
|
+
"rollback.js"
|
|
3506
|
+
]
|
|
3507
|
+
},
|
|
3508
|
+
"plugin:add": {
|
|
3509
|
+
"aliases": [],
|
|
3510
|
+
"args": {
|
|
3511
|
+
"slug": {
|
|
3512
|
+
"description": "Plugin slug on WordPress.org",
|
|
3513
|
+
"name": "slug",
|
|
3514
|
+
"required": true
|
|
3515
|
+
}
|
|
3516
|
+
},
|
|
3517
|
+
"description": "Add a WordPress.org plugin to loopress.json",
|
|
3518
|
+
"examples": [
|
|
3519
|
+
"$ lps plugin add woocommerce",
|
|
3520
|
+
"$ lps plugin add woocommerce --version 9.4.2",
|
|
3521
|
+
"$ lps plugin add contact-form-7 --dry-run"
|
|
3522
|
+
],
|
|
3523
|
+
"flags": {
|
|
3524
|
+
"env": {
|
|
3525
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3526
|
+
"name": "env",
|
|
3527
|
+
"hasDynamicHelp": false,
|
|
3528
|
+
"multiple": false,
|
|
3529
|
+
"type": "option"
|
|
3530
|
+
},
|
|
3531
|
+
"dry-run": {
|
|
3532
|
+
"char": "d",
|
|
3533
|
+
"description": "Show what would change without making changes",
|
|
3534
|
+
"name": "dry-run",
|
|
3535
|
+
"allowNo": false,
|
|
3536
|
+
"type": "boolean"
|
|
3537
|
+
},
|
|
3538
|
+
"version": {
|
|
3539
|
+
"description": "Exact version to pin (default: \"latest\", tracked on every push)",
|
|
3540
|
+
"name": "version",
|
|
3541
|
+
"hasDynamicHelp": false,
|
|
3542
|
+
"multiple": false,
|
|
3543
|
+
"type": "option"
|
|
3544
|
+
}
|
|
3545
|
+
},
|
|
3546
|
+
"hasDynamicHelp": false,
|
|
3547
|
+
"hiddenAliases": [],
|
|
3548
|
+
"id": "plugin:add",
|
|
3549
|
+
"pluginAlias": "@loopress/cli",
|
|
3550
|
+
"pluginName": "@loopress/cli",
|
|
3551
|
+
"pluginType": "core",
|
|
3552
|
+
"strict": true,
|
|
3553
|
+
"enableJsonFlag": false,
|
|
3554
|
+
"dryRunFlag": {
|
|
3555
|
+
"dry-run": {
|
|
3556
|
+
"char": "d",
|
|
3557
|
+
"description": "Show what would change without making changes",
|
|
3558
|
+
"allowNo": false,
|
|
3559
|
+
"type": "boolean"
|
|
3560
|
+
}
|
|
3561
|
+
},
|
|
3562
|
+
"yesFlag": {
|
|
3563
|
+
"yes": {
|
|
3564
|
+
"char": "y",
|
|
3565
|
+
"description": "Answer yes to confirmation prompts",
|
|
3566
|
+
"allowNo": false,
|
|
3567
|
+
"type": "boolean"
|
|
3568
|
+
}
|
|
3569
|
+
},
|
|
3570
|
+
"isESM": true,
|
|
3571
|
+
"relativePath": [
|
|
3572
|
+
"dist",
|
|
3573
|
+
"commands",
|
|
3574
|
+
"plugin",
|
|
3575
|
+
"add.js"
|
|
3576
|
+
]
|
|
3577
|
+
},
|
|
3578
|
+
"plugin:audit": {
|
|
3579
|
+
"aliases": [],
|
|
3580
|
+
"args": {},
|
|
3581
|
+
"description": "Check the plugins in loopress.json for known vulnerabilities and health issues",
|
|
3582
|
+
"examples": [
|
|
3583
|
+
"$ lps plugin audit"
|
|
3584
|
+
],
|
|
3585
|
+
"flags": {
|
|
3586
|
+
"json": {
|
|
3587
|
+
"description": "Format output as json.",
|
|
3588
|
+
"helpGroup": "GLOBAL",
|
|
3589
|
+
"name": "json",
|
|
3590
|
+
"allowNo": false,
|
|
3591
|
+
"type": "boolean"
|
|
3592
|
+
},
|
|
3593
|
+
"env": {
|
|
3594
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3595
|
+
"name": "env",
|
|
3596
|
+
"hasDynamicHelp": false,
|
|
3597
|
+
"multiple": false,
|
|
3598
|
+
"type": "option"
|
|
3599
|
+
}
|
|
3600
|
+
},
|
|
3601
|
+
"hasDynamicHelp": false,
|
|
3602
|
+
"hiddenAliases": [],
|
|
3603
|
+
"id": "plugin:audit",
|
|
3604
|
+
"pluginAlias": "@loopress/cli",
|
|
3605
|
+
"pluginName": "@loopress/cli",
|
|
3606
|
+
"pluginType": "core",
|
|
3607
|
+
"strict": true,
|
|
3608
|
+
"enableJsonFlag": true,
|
|
3609
|
+
"dryRunFlag": {
|
|
3610
|
+
"dry-run": {
|
|
3611
|
+
"char": "d",
|
|
3612
|
+
"description": "Show what would change without making changes",
|
|
3613
|
+
"allowNo": false,
|
|
3614
|
+
"type": "boolean"
|
|
3615
|
+
}
|
|
3616
|
+
},
|
|
3617
|
+
"yesFlag": {
|
|
3618
|
+
"yes": {
|
|
3619
|
+
"char": "y",
|
|
3620
|
+
"description": "Answer yes to confirmation prompts",
|
|
3621
|
+
"allowNo": false,
|
|
3622
|
+
"type": "boolean"
|
|
3623
|
+
}
|
|
3624
|
+
},
|
|
3625
|
+
"isESM": true,
|
|
3626
|
+
"relativePath": [
|
|
3627
|
+
"dist",
|
|
3628
|
+
"commands",
|
|
3629
|
+
"plugin",
|
|
3630
|
+
"audit.js"
|
|
3631
|
+
]
|
|
3632
|
+
},
|
|
3633
|
+
"plugin:pull": {
|
|
3634
|
+
"aliases": [],
|
|
3635
|
+
"args": {},
|
|
3636
|
+
"description": "Pull installed plugins from WordPress into loopress.json, pinned to their live versions",
|
|
3637
|
+
"examples": [
|
|
3638
|
+
"$ lps plugin pull",
|
|
3639
|
+
"$ lps plugin pull --dry-run"
|
|
3640
|
+
],
|
|
3641
|
+
"flags": {
|
|
3642
|
+
"json": {
|
|
3643
|
+
"description": "Format output as json.",
|
|
3644
|
+
"helpGroup": "GLOBAL",
|
|
3645
|
+
"name": "json",
|
|
3646
|
+
"allowNo": false,
|
|
3647
|
+
"type": "boolean"
|
|
3648
|
+
},
|
|
3649
|
+
"env": {
|
|
3650
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3651
|
+
"name": "env",
|
|
3652
|
+
"hasDynamicHelp": false,
|
|
3653
|
+
"multiple": false,
|
|
3654
|
+
"type": "option"
|
|
3655
|
+
},
|
|
3656
|
+
"dry-run": {
|
|
3657
|
+
"char": "d",
|
|
3658
|
+
"description": "Show what would change without making changes",
|
|
3659
|
+
"name": "dry-run",
|
|
3660
|
+
"allowNo": false,
|
|
3661
|
+
"type": "boolean"
|
|
3662
|
+
}
|
|
3663
|
+
},
|
|
3664
|
+
"hasDynamicHelp": false,
|
|
3665
|
+
"hiddenAliases": [],
|
|
3666
|
+
"id": "plugin:pull",
|
|
3667
|
+
"pluginAlias": "@loopress/cli",
|
|
3668
|
+
"pluginName": "@loopress/cli",
|
|
3669
|
+
"pluginType": "core",
|
|
3670
|
+
"strict": true,
|
|
3671
|
+
"enableJsonFlag": true,
|
|
3672
|
+
"dryRunFlag": {
|
|
3673
|
+
"dry-run": {
|
|
3674
|
+
"char": "d",
|
|
3675
|
+
"description": "Show what would change without making changes",
|
|
3676
|
+
"allowNo": false,
|
|
3677
|
+
"type": "boolean"
|
|
3678
|
+
}
|
|
3679
|
+
},
|
|
3680
|
+
"yesFlag": {
|
|
3681
|
+
"yes": {
|
|
3682
|
+
"char": "y",
|
|
3683
|
+
"description": "Answer yes to confirmation prompts",
|
|
3684
|
+
"allowNo": false,
|
|
3685
|
+
"type": "boolean"
|
|
3686
|
+
}
|
|
3687
|
+
},
|
|
3688
|
+
"isESM": true,
|
|
3689
|
+
"relativePath": [
|
|
3690
|
+
"dist",
|
|
3691
|
+
"commands",
|
|
3692
|
+
"plugin",
|
|
3693
|
+
"pull.js"
|
|
3694
|
+
]
|
|
3695
|
+
},
|
|
3696
|
+
"plugin:push": {
|
|
3697
|
+
"aliases": [],
|
|
3698
|
+
"args": {},
|
|
3699
|
+
"description": "Install plugins on WordPress to match loopress.json, pinned via Composer + WPackagist",
|
|
3700
|
+
"examples": [
|
|
3701
|
+
"$ lps plugin push",
|
|
3702
|
+
"$ lps plugin push --dry-run",
|
|
3703
|
+
"$ lps plugin push --force --prune"
|
|
3704
|
+
],
|
|
3705
|
+
"flags": {
|
|
3706
|
+
"json": {
|
|
3707
|
+
"description": "Format output as json.",
|
|
3708
|
+
"helpGroup": "GLOBAL",
|
|
3709
|
+
"name": "json",
|
|
3710
|
+
"allowNo": false,
|
|
3711
|
+
"type": "boolean"
|
|
3712
|
+
},
|
|
3713
|
+
"env": {
|
|
3714
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3715
|
+
"name": "env",
|
|
3716
|
+
"hasDynamicHelp": false,
|
|
3717
|
+
"multiple": false,
|
|
3718
|
+
"type": "option"
|
|
3719
|
+
},
|
|
3720
|
+
"dry-run": {
|
|
3721
|
+
"char": "d",
|
|
3722
|
+
"description": "Show what would change without making changes",
|
|
3723
|
+
"name": "dry-run",
|
|
3724
|
+
"allowNo": false,
|
|
3725
|
+
"type": "boolean"
|
|
3726
|
+
},
|
|
3727
|
+
"yes": {
|
|
3728
|
+
"char": "y",
|
|
3729
|
+
"description": "Answer yes to confirmation prompts",
|
|
3730
|
+
"name": "yes",
|
|
3731
|
+
"allowNo": false,
|
|
3732
|
+
"type": "boolean"
|
|
3733
|
+
},
|
|
3734
|
+
"force": {
|
|
3735
|
+
"description": "Allow downgrades and let Loopress take over plugins installed outside it (replaces their files)",
|
|
3736
|
+
"name": "force",
|
|
3737
|
+
"allowNo": false,
|
|
3738
|
+
"type": "boolean"
|
|
3739
|
+
},
|
|
3740
|
+
"prune": {
|
|
3741
|
+
"description": "Deactivate plugins that are active on the site but absent from loopress.json",
|
|
3742
|
+
"name": "prune",
|
|
3743
|
+
"allowNo": false,
|
|
3744
|
+
"type": "boolean"
|
|
3745
|
+
}
|
|
3746
|
+
},
|
|
3747
|
+
"hasDynamicHelp": false,
|
|
3748
|
+
"hiddenAliases": [],
|
|
3749
|
+
"id": "plugin:push",
|
|
3750
|
+
"pluginAlias": "@loopress/cli",
|
|
3751
|
+
"pluginName": "@loopress/cli",
|
|
3752
|
+
"pluginType": "core",
|
|
3753
|
+
"strict": true,
|
|
3754
|
+
"enableJsonFlag": true,
|
|
3755
|
+
"isESM": true,
|
|
3756
|
+
"relativePath": [
|
|
3757
|
+
"dist",
|
|
3758
|
+
"commands",
|
|
3759
|
+
"plugin",
|
|
3760
|
+
"push.js"
|
|
3761
|
+
]
|
|
3762
|
+
},
|
|
3763
|
+
"plugin:status": {
|
|
3764
|
+
"aliases": [],
|
|
3765
|
+
"args": {},
|
|
3766
|
+
"description": "Compare the plugins on WordPress against loopress.json and report drift",
|
|
3767
|
+
"examples": [
|
|
3768
|
+
"$ lps plugin status"
|
|
3769
|
+
],
|
|
3770
|
+
"flags": {
|
|
3771
|
+
"json": {
|
|
3772
|
+
"description": "Format output as json.",
|
|
3773
|
+
"helpGroup": "GLOBAL",
|
|
3774
|
+
"name": "json",
|
|
3775
|
+
"allowNo": false,
|
|
3776
|
+
"type": "boolean"
|
|
3777
|
+
},
|
|
3778
|
+
"env": {
|
|
3779
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3780
|
+
"name": "env",
|
|
3781
|
+
"hasDynamicHelp": false,
|
|
3782
|
+
"multiple": false,
|
|
3783
|
+
"type": "option"
|
|
3784
|
+
}
|
|
3785
|
+
},
|
|
3786
|
+
"hasDynamicHelp": false,
|
|
3787
|
+
"hiddenAliases": [],
|
|
3788
|
+
"id": "plugin:status",
|
|
3789
|
+
"pluginAlias": "@loopress/cli",
|
|
3790
|
+
"pluginName": "@loopress/cli",
|
|
3791
|
+
"pluginType": "core",
|
|
3792
|
+
"strict": true,
|
|
3793
|
+
"enableJsonFlag": true,
|
|
3794
|
+
"dryRunFlag": {
|
|
3795
|
+
"dry-run": {
|
|
3796
|
+
"char": "d",
|
|
3797
|
+
"description": "Show what would change without making changes",
|
|
3798
|
+
"allowNo": false,
|
|
3799
|
+
"type": "boolean"
|
|
3800
|
+
}
|
|
3801
|
+
},
|
|
3802
|
+
"yesFlag": {
|
|
3803
|
+
"yes": {
|
|
3804
|
+
"char": "y",
|
|
3805
|
+
"description": "Answer yes to confirmation prompts",
|
|
3806
|
+
"allowNo": false,
|
|
3807
|
+
"type": "boolean"
|
|
3808
|
+
}
|
|
3809
|
+
},
|
|
3810
|
+
"isESM": true,
|
|
3811
|
+
"relativePath": [
|
|
3812
|
+
"dist",
|
|
3813
|
+
"commands",
|
|
3814
|
+
"plugin",
|
|
3815
|
+
"status.js"
|
|
3816
|
+
]
|
|
3817
|
+
},
|
|
3818
|
+
"project:config": {
|
|
3819
|
+
"aliases": [],
|
|
3820
|
+
"args": {},
|
|
3821
|
+
"description": "Add or update a WordPress project environment. By default, authorizes via WordPress in your browser; manual username/Application Password entry is available as a fallback.",
|
|
3822
|
+
"examples": [
|
|
3823
|
+
"$ lps project config"
|
|
3824
|
+
],
|
|
3825
|
+
"flags": {},
|
|
3826
|
+
"hasDynamicHelp": false,
|
|
3827
|
+
"hiddenAliases": [],
|
|
3828
|
+
"id": "project:config",
|
|
3829
|
+
"pluginAlias": "@loopress/cli",
|
|
3830
|
+
"pluginName": "@loopress/cli",
|
|
3831
|
+
"pluginType": "core",
|
|
3832
|
+
"strict": true,
|
|
3833
|
+
"enableJsonFlag": false,
|
|
3834
|
+
"isESM": true,
|
|
3835
|
+
"relativePath": [
|
|
3836
|
+
"dist",
|
|
3837
|
+
"commands",
|
|
3838
|
+
"project",
|
|
3839
|
+
"config.js"
|
|
3840
|
+
]
|
|
3841
|
+
},
|
|
3842
|
+
"project:list": {
|
|
3843
|
+
"aliases": [],
|
|
3844
|
+
"args": {},
|
|
3845
|
+
"description": "List configured WordPress projects",
|
|
3846
|
+
"examples": [
|
|
3847
|
+
"$ lps project list"
|
|
3848
|
+
],
|
|
3849
|
+
"flags": {
|
|
3850
|
+
"json": {
|
|
3851
|
+
"description": "Format output as json.",
|
|
3852
|
+
"helpGroup": "GLOBAL",
|
|
3853
|
+
"name": "json",
|
|
3854
|
+
"allowNo": false,
|
|
3855
|
+
"type": "boolean"
|
|
3856
|
+
}
|
|
3857
|
+
},
|
|
3858
|
+
"hasDynamicHelp": false,
|
|
3859
|
+
"hiddenAliases": [],
|
|
3860
|
+
"id": "project:list",
|
|
3861
|
+
"pluginAlias": "@loopress/cli",
|
|
3862
|
+
"pluginName": "@loopress/cli",
|
|
3863
|
+
"pluginType": "core",
|
|
3864
|
+
"strict": true,
|
|
3865
|
+
"enableJsonFlag": true,
|
|
3866
|
+
"isESM": true,
|
|
3867
|
+
"relativePath": [
|
|
3868
|
+
"dist",
|
|
3869
|
+
"commands",
|
|
3870
|
+
"project",
|
|
3871
|
+
"list.js"
|
|
3872
|
+
]
|
|
3873
|
+
},
|
|
3874
|
+
"project:pull": {
|
|
3875
|
+
"aliases": [],
|
|
3055
3876
|
"args": {},
|
|
3056
3877
|
"description": "Pull projects and environments from your Loopress account that are not configured locally yet",
|
|
3057
3878
|
"examples": [
|
|
@@ -3475,6 +4296,96 @@
|
|
|
3475
4296
|
"push.js"
|
|
3476
4297
|
]
|
|
3477
4298
|
},
|
|
4299
|
+
"seo:rollback": {
|
|
4300
|
+
"aliases": [],
|
|
4301
|
+
"args": {
|
|
4302
|
+
"path": {
|
|
4303
|
+
"description": "Path to SEO directory (overrides project config)",
|
|
4304
|
+
"name": "path"
|
|
4305
|
+
}
|
|
4306
|
+
},
|
|
4307
|
+
"description": "Restore SEO settings, post meta, and redirects to a snapshot taken automatically before an earlier `lps seo push`",
|
|
4308
|
+
"examples": [
|
|
4309
|
+
"$ lps seo rollback",
|
|
4310
|
+
"$ lps seo rollback --list",
|
|
4311
|
+
"$ lps seo rollback --to 1732000000000",
|
|
4312
|
+
"$ lps seo rollback --dry-run"
|
|
4313
|
+
],
|
|
4314
|
+
"flags": {
|
|
4315
|
+
"json": {
|
|
4316
|
+
"description": "Format output as json.",
|
|
4317
|
+
"helpGroup": "GLOBAL",
|
|
4318
|
+
"name": "json",
|
|
4319
|
+
"allowNo": false,
|
|
4320
|
+
"type": "boolean"
|
|
4321
|
+
},
|
|
4322
|
+
"env": {
|
|
4323
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
4324
|
+
"name": "env",
|
|
4325
|
+
"hasDynamicHelp": false,
|
|
4326
|
+
"multiple": false,
|
|
4327
|
+
"type": "option"
|
|
4328
|
+
},
|
|
4329
|
+
"dry-run": {
|
|
4330
|
+
"char": "d",
|
|
4331
|
+
"description": "Show what would change without making changes",
|
|
4332
|
+
"name": "dry-run",
|
|
4333
|
+
"allowNo": false,
|
|
4334
|
+
"type": "boolean"
|
|
4335
|
+
},
|
|
4336
|
+
"yes": {
|
|
4337
|
+
"char": "y",
|
|
4338
|
+
"description": "Answer yes to confirmation prompts",
|
|
4339
|
+
"name": "yes",
|
|
4340
|
+
"allowNo": false,
|
|
4341
|
+
"type": "boolean"
|
|
4342
|
+
},
|
|
4343
|
+
"list": {
|
|
4344
|
+
"description": "List available snapshots instead of rolling back",
|
|
4345
|
+
"name": "list",
|
|
4346
|
+
"allowNo": false,
|
|
4347
|
+
"type": "boolean"
|
|
4348
|
+
},
|
|
4349
|
+
"to": {
|
|
4350
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
4351
|
+
"name": "to",
|
|
4352
|
+
"hasDynamicHelp": false,
|
|
4353
|
+
"multiple": false,
|
|
4354
|
+
"type": "option"
|
|
4355
|
+
}
|
|
4356
|
+
},
|
|
4357
|
+
"hasDynamicHelp": false,
|
|
4358
|
+
"hiddenAliases": [],
|
|
4359
|
+
"id": "seo:rollback",
|
|
4360
|
+
"pluginAlias": "@loopress/cli",
|
|
4361
|
+
"pluginName": "@loopress/cli",
|
|
4362
|
+
"pluginType": "core",
|
|
4363
|
+
"strict": true,
|
|
4364
|
+
"enableJsonFlag": true,
|
|
4365
|
+
"dryRunFlag": {
|
|
4366
|
+
"dry-run": {
|
|
4367
|
+
"char": "d",
|
|
4368
|
+
"description": "Show what would change without making changes",
|
|
4369
|
+
"allowNo": false,
|
|
4370
|
+
"type": "boolean"
|
|
4371
|
+
}
|
|
4372
|
+
},
|
|
4373
|
+
"yesFlag": {
|
|
4374
|
+
"yes": {
|
|
4375
|
+
"char": "y",
|
|
4376
|
+
"description": "Answer yes to confirmation prompts",
|
|
4377
|
+
"allowNo": false,
|
|
4378
|
+
"type": "boolean"
|
|
4379
|
+
}
|
|
4380
|
+
},
|
|
4381
|
+
"isESM": true,
|
|
4382
|
+
"relativePath": [
|
|
4383
|
+
"dist",
|
|
4384
|
+
"commands",
|
|
4385
|
+
"seo",
|
|
4386
|
+
"rollback.js"
|
|
4387
|
+
]
|
|
4388
|
+
},
|
|
3478
4389
|
"snippet:diff": {
|
|
3479
4390
|
"aliases": [],
|
|
3480
4391
|
"args": {
|
|
@@ -3757,18 +4668,156 @@
|
|
|
3757
4668
|
},
|
|
3758
4669
|
"hasDynamicHelp": false,
|
|
3759
4670
|
"hiddenAliases": [],
|
|
3760
|
-
"id": "snippet:push",
|
|
4671
|
+
"id": "snippet:push",
|
|
4672
|
+
"pluginAlias": "@loopress/cli",
|
|
4673
|
+
"pluginName": "@loopress/cli",
|
|
4674
|
+
"pluginType": "core",
|
|
4675
|
+
"strict": true,
|
|
4676
|
+
"enableJsonFlag": true,
|
|
4677
|
+
"isESM": true,
|
|
4678
|
+
"relativePath": [
|
|
4679
|
+
"dist",
|
|
4680
|
+
"commands",
|
|
4681
|
+
"snippet",
|
|
4682
|
+
"push.js"
|
|
4683
|
+
]
|
|
4684
|
+
},
|
|
4685
|
+
"snippet:rollback": {
|
|
4686
|
+
"aliases": [],
|
|
4687
|
+
"args": {
|
|
4688
|
+
"path": {
|
|
4689
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
4690
|
+
"name": "path"
|
|
4691
|
+
}
|
|
4692
|
+
},
|
|
4693
|
+
"description": "Restore snippets to a snapshot taken automatically before an earlier `lps snippet push`",
|
|
4694
|
+
"examples": [
|
|
4695
|
+
"$ lps snippet rollback",
|
|
4696
|
+
"$ lps snippet rollback --list",
|
|
4697
|
+
"$ lps snippet rollback --to 1732000000000",
|
|
4698
|
+
"$ lps snippet rollback --dry-run"
|
|
4699
|
+
],
|
|
4700
|
+
"flags": {
|
|
4701
|
+
"json": {
|
|
4702
|
+
"description": "Format output as json.",
|
|
4703
|
+
"helpGroup": "GLOBAL",
|
|
4704
|
+
"name": "json",
|
|
4705
|
+
"allowNo": false,
|
|
4706
|
+
"type": "boolean"
|
|
4707
|
+
},
|
|
4708
|
+
"env": {
|
|
4709
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
4710
|
+
"name": "env",
|
|
4711
|
+
"hasDynamicHelp": false,
|
|
4712
|
+
"multiple": false,
|
|
4713
|
+
"type": "option"
|
|
4714
|
+
},
|
|
4715
|
+
"dry-run": {
|
|
4716
|
+
"char": "d",
|
|
4717
|
+
"description": "Show what would change without making changes",
|
|
4718
|
+
"name": "dry-run",
|
|
4719
|
+
"allowNo": false,
|
|
4720
|
+
"type": "boolean"
|
|
4721
|
+
},
|
|
4722
|
+
"yes": {
|
|
4723
|
+
"char": "y",
|
|
4724
|
+
"description": "Answer yes to confirmation prompts",
|
|
4725
|
+
"name": "yes",
|
|
4726
|
+
"allowNo": false,
|
|
4727
|
+
"type": "boolean"
|
|
4728
|
+
},
|
|
4729
|
+
"list": {
|
|
4730
|
+
"description": "List available snapshots instead of rolling back",
|
|
4731
|
+
"name": "list",
|
|
4732
|
+
"allowNo": false,
|
|
4733
|
+
"type": "boolean"
|
|
4734
|
+
},
|
|
4735
|
+
"to": {
|
|
4736
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
4737
|
+
"name": "to",
|
|
4738
|
+
"hasDynamicHelp": false,
|
|
4739
|
+
"multiple": false,
|
|
4740
|
+
"type": "option"
|
|
4741
|
+
}
|
|
4742
|
+
},
|
|
4743
|
+
"hasDynamicHelp": false,
|
|
4744
|
+
"hiddenAliases": [],
|
|
4745
|
+
"id": "snippet:rollback",
|
|
4746
|
+
"pluginAlias": "@loopress/cli",
|
|
4747
|
+
"pluginName": "@loopress/cli",
|
|
4748
|
+
"pluginType": "core",
|
|
4749
|
+
"strict": true,
|
|
4750
|
+
"enableJsonFlag": true,
|
|
4751
|
+
"dryRunFlag": {
|
|
4752
|
+
"dry-run": {
|
|
4753
|
+
"char": "d",
|
|
4754
|
+
"description": "Show what would change without making changes",
|
|
4755
|
+
"allowNo": false,
|
|
4756
|
+
"type": "boolean"
|
|
4757
|
+
}
|
|
4758
|
+
},
|
|
4759
|
+
"yesFlag": {
|
|
4760
|
+
"yes": {
|
|
4761
|
+
"char": "y",
|
|
4762
|
+
"description": "Answer yes to confirmation prompts",
|
|
4763
|
+
"allowNo": false,
|
|
4764
|
+
"type": "boolean"
|
|
4765
|
+
}
|
|
4766
|
+
},
|
|
4767
|
+
"isESM": true,
|
|
4768
|
+
"relativePath": [
|
|
4769
|
+
"dist",
|
|
4770
|
+
"commands",
|
|
4771
|
+
"snippet",
|
|
4772
|
+
"rollback.js"
|
|
4773
|
+
]
|
|
4774
|
+
},
|
|
4775
|
+
"telemetry:disable": {
|
|
4776
|
+
"aliases": [],
|
|
4777
|
+
"args": {},
|
|
4778
|
+
"description": "Disable error reporting to Sentry",
|
|
4779
|
+
"examples": [
|
|
4780
|
+
"$ lps telemetry disable"
|
|
4781
|
+
],
|
|
4782
|
+
"flags": {},
|
|
4783
|
+
"hasDynamicHelp": false,
|
|
4784
|
+
"hiddenAliases": [],
|
|
4785
|
+
"id": "telemetry:disable",
|
|
3761
4786
|
"pluginAlias": "@loopress/cli",
|
|
3762
4787
|
"pluginName": "@loopress/cli",
|
|
3763
4788
|
"pluginType": "core",
|
|
3764
4789
|
"strict": true,
|
|
3765
|
-
"enableJsonFlag":
|
|
4790
|
+
"enableJsonFlag": false,
|
|
3766
4791
|
"isESM": true,
|
|
3767
4792
|
"relativePath": [
|
|
3768
4793
|
"dist",
|
|
3769
4794
|
"commands",
|
|
3770
|
-
"
|
|
3771
|
-
"
|
|
4795
|
+
"telemetry",
|
|
4796
|
+
"disable.js"
|
|
4797
|
+
]
|
|
4798
|
+
},
|
|
4799
|
+
"telemetry:enable": {
|
|
4800
|
+
"aliases": [],
|
|
4801
|
+
"args": {},
|
|
4802
|
+
"description": "Enable error reporting to Sentry",
|
|
4803
|
+
"examples": [
|
|
4804
|
+
"$ lps telemetry enable"
|
|
4805
|
+
],
|
|
4806
|
+
"flags": {},
|
|
4807
|
+
"hasDynamicHelp": false,
|
|
4808
|
+
"hiddenAliases": [],
|
|
4809
|
+
"id": "telemetry:enable",
|
|
4810
|
+
"pluginAlias": "@loopress/cli",
|
|
4811
|
+
"pluginName": "@loopress/cli",
|
|
4812
|
+
"pluginType": "core",
|
|
4813
|
+
"strict": true,
|
|
4814
|
+
"enableJsonFlag": false,
|
|
4815
|
+
"isESM": true,
|
|
4816
|
+
"relativePath": [
|
|
4817
|
+
"dist",
|
|
4818
|
+
"commands",
|
|
4819
|
+
"telemetry",
|
|
4820
|
+
"enable.js"
|
|
3772
4821
|
]
|
|
3773
4822
|
},
|
|
3774
4823
|
"theme:add": {
|
|
@@ -4017,54 +5066,276 @@
|
|
|
4017
5066
|
"status.js"
|
|
4018
5067
|
]
|
|
4019
5068
|
},
|
|
4020
|
-
"
|
|
5069
|
+
"theme-styles:diff": {
|
|
4021
5070
|
"aliases": [],
|
|
4022
|
-
"args": {
|
|
4023
|
-
|
|
5071
|
+
"args": {
|
|
5072
|
+
"path": {
|
|
5073
|
+
"description": "Path to theme styles directory (overrides project config)",
|
|
5074
|
+
"name": "path"
|
|
5075
|
+
}
|
|
5076
|
+
},
|
|
5077
|
+
"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
5078
|
"examples": [
|
|
4025
|
-
"$ lps
|
|
5079
|
+
"$ lps theme-styles diff",
|
|
5080
|
+
"$ lps theme-styles diff --env staging",
|
|
5081
|
+
"$ lps theme-styles diff --env staging --against production"
|
|
4026
5082
|
],
|
|
4027
|
-
"flags": {
|
|
5083
|
+
"flags": {
|
|
5084
|
+
"json": {
|
|
5085
|
+
"description": "Format output as json.",
|
|
5086
|
+
"helpGroup": "GLOBAL",
|
|
5087
|
+
"name": "json",
|
|
5088
|
+
"allowNo": false,
|
|
5089
|
+
"type": "boolean"
|
|
5090
|
+
},
|
|
5091
|
+
"env": {
|
|
5092
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
5093
|
+
"name": "env",
|
|
5094
|
+
"hasDynamicHelp": false,
|
|
5095
|
+
"multiple": false,
|
|
5096
|
+
"type": "option"
|
|
5097
|
+
},
|
|
5098
|
+
"against": {
|
|
5099
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
5100
|
+
"name": "against",
|
|
5101
|
+
"hasDynamicHelp": false,
|
|
5102
|
+
"multiple": false,
|
|
5103
|
+
"type": "option"
|
|
5104
|
+
}
|
|
5105
|
+
},
|
|
4028
5106
|
"hasDynamicHelp": false,
|
|
4029
5107
|
"hiddenAliases": [],
|
|
4030
|
-
"id": "
|
|
5108
|
+
"id": "theme-styles:diff",
|
|
4031
5109
|
"pluginAlias": "@loopress/cli",
|
|
4032
5110
|
"pluginName": "@loopress/cli",
|
|
4033
5111
|
"pluginType": "core",
|
|
4034
5112
|
"strict": true,
|
|
4035
|
-
"enableJsonFlag":
|
|
5113
|
+
"enableJsonFlag": true,
|
|
5114
|
+
"dryRunFlag": {
|
|
5115
|
+
"dry-run": {
|
|
5116
|
+
"char": "d",
|
|
5117
|
+
"description": "Show what would change without making changes",
|
|
5118
|
+
"allowNo": false,
|
|
5119
|
+
"type": "boolean"
|
|
5120
|
+
}
|
|
5121
|
+
},
|
|
5122
|
+
"yesFlag": {
|
|
5123
|
+
"yes": {
|
|
5124
|
+
"char": "y",
|
|
5125
|
+
"description": "Answer yes to confirmation prompts",
|
|
5126
|
+
"allowNo": false,
|
|
5127
|
+
"type": "boolean"
|
|
5128
|
+
}
|
|
5129
|
+
},
|
|
5130
|
+
"againstFlag": {
|
|
5131
|
+
"against": {
|
|
5132
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
5133
|
+
"input": [],
|
|
5134
|
+
"multiple": false,
|
|
5135
|
+
"type": "option"
|
|
5136
|
+
}
|
|
5137
|
+
},
|
|
4036
5138
|
"isESM": true,
|
|
4037
5139
|
"relativePath": [
|
|
4038
5140
|
"dist",
|
|
4039
5141
|
"commands",
|
|
4040
|
-
"
|
|
4041
|
-
"
|
|
5142
|
+
"theme-styles",
|
|
5143
|
+
"diff.js"
|
|
4042
5144
|
]
|
|
4043
5145
|
},
|
|
4044
|
-
"
|
|
5146
|
+
"theme-styles:pull": {
|
|
4045
5147
|
"aliases": [],
|
|
4046
|
-
"args": {
|
|
4047
|
-
|
|
5148
|
+
"args": {
|
|
5149
|
+
"path": {
|
|
5150
|
+
"description": "Path to theme styles directory (overrides project config)",
|
|
5151
|
+
"name": "path"
|
|
5152
|
+
}
|
|
5153
|
+
},
|
|
5154
|
+
"description": "Pull the active block theme's Global Styles customizations (Site Editor > Styles) from WordPress into a local file",
|
|
4048
5155
|
"examples": [
|
|
4049
|
-
"$ lps
|
|
5156
|
+
"$ lps theme-styles pull"
|
|
4050
5157
|
],
|
|
4051
|
-
"flags": {
|
|
5158
|
+
"flags": {
|
|
5159
|
+
"env": {
|
|
5160
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
5161
|
+
"name": "env",
|
|
5162
|
+
"hasDynamicHelp": false,
|
|
5163
|
+
"multiple": false,
|
|
5164
|
+
"type": "option"
|
|
5165
|
+
},
|
|
5166
|
+
"dry-run": {
|
|
5167
|
+
"char": "d",
|
|
5168
|
+
"description": "Show what would change without making changes",
|
|
5169
|
+
"name": "dry-run",
|
|
5170
|
+
"allowNo": false,
|
|
5171
|
+
"type": "boolean"
|
|
5172
|
+
}
|
|
5173
|
+
},
|
|
4052
5174
|
"hasDynamicHelp": false,
|
|
4053
5175
|
"hiddenAliases": [],
|
|
4054
|
-
"id": "
|
|
5176
|
+
"id": "theme-styles:pull",
|
|
4055
5177
|
"pluginAlias": "@loopress/cli",
|
|
4056
5178
|
"pluginName": "@loopress/cli",
|
|
4057
5179
|
"pluginType": "core",
|
|
4058
5180
|
"strict": true,
|
|
4059
5181
|
"enableJsonFlag": false,
|
|
5182
|
+
"dryRunFlag": {
|
|
5183
|
+
"dry-run": {
|
|
5184
|
+
"char": "d",
|
|
5185
|
+
"description": "Show what would change without making changes",
|
|
5186
|
+
"allowNo": false,
|
|
5187
|
+
"type": "boolean"
|
|
5188
|
+
}
|
|
5189
|
+
},
|
|
5190
|
+
"yesFlag": {
|
|
5191
|
+
"yes": {
|
|
5192
|
+
"char": "y",
|
|
5193
|
+
"description": "Answer yes to confirmation prompts",
|
|
5194
|
+
"allowNo": false,
|
|
5195
|
+
"type": "boolean"
|
|
5196
|
+
}
|
|
5197
|
+
},
|
|
4060
5198
|
"isESM": true,
|
|
4061
5199
|
"relativePath": [
|
|
4062
5200
|
"dist",
|
|
4063
5201
|
"commands",
|
|
4064
|
-
"
|
|
4065
|
-
"
|
|
5202
|
+
"theme-styles",
|
|
5203
|
+
"pull.js"
|
|
5204
|
+
]
|
|
5205
|
+
},
|
|
5206
|
+
"theme-styles:push": {
|
|
5207
|
+
"aliases": [],
|
|
5208
|
+
"args": {
|
|
5209
|
+
"path": {
|
|
5210
|
+
"description": "Path to theme styles directory (overrides project config)",
|
|
5211
|
+
"name": "path"
|
|
5212
|
+
}
|
|
5213
|
+
},
|
|
5214
|
+
"description": "Push the local Global Styles file to the active block theme's Site Editor > Styles on WordPress",
|
|
5215
|
+
"examples": [
|
|
5216
|
+
"$ lps theme-styles push"
|
|
5217
|
+
],
|
|
5218
|
+
"flags": {
|
|
5219
|
+
"env": {
|
|
5220
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
5221
|
+
"name": "env",
|
|
5222
|
+
"hasDynamicHelp": false,
|
|
5223
|
+
"multiple": false,
|
|
5224
|
+
"type": "option"
|
|
5225
|
+
},
|
|
5226
|
+
"dry-run": {
|
|
5227
|
+
"char": "d",
|
|
5228
|
+
"description": "Show what would change without making changes",
|
|
5229
|
+
"name": "dry-run",
|
|
5230
|
+
"allowNo": false,
|
|
5231
|
+
"type": "boolean"
|
|
5232
|
+
}
|
|
5233
|
+
},
|
|
5234
|
+
"hasDynamicHelp": false,
|
|
5235
|
+
"hiddenAliases": [],
|
|
5236
|
+
"id": "theme-styles:push",
|
|
5237
|
+
"pluginAlias": "@loopress/cli",
|
|
5238
|
+
"pluginName": "@loopress/cli",
|
|
5239
|
+
"pluginType": "core",
|
|
5240
|
+
"strict": true,
|
|
5241
|
+
"isESM": true,
|
|
5242
|
+
"relativePath": [
|
|
5243
|
+
"dist",
|
|
5244
|
+
"commands",
|
|
5245
|
+
"theme-styles",
|
|
5246
|
+
"push.js"
|
|
5247
|
+
]
|
|
5248
|
+
},
|
|
5249
|
+
"theme-styles:rollback": {
|
|
5250
|
+
"aliases": [],
|
|
5251
|
+
"args": {
|
|
5252
|
+
"path": {
|
|
5253
|
+
"description": "Path to theme styles directory (overrides project config)",
|
|
5254
|
+
"name": "path"
|
|
5255
|
+
}
|
|
5256
|
+
},
|
|
5257
|
+
"description": "Restore the active theme’s Global Styles to a snapshot taken automatically before an earlier `lps theme-styles push`",
|
|
5258
|
+
"examples": [
|
|
5259
|
+
"$ lps theme-styles rollback",
|
|
5260
|
+
"$ lps theme-styles rollback --list",
|
|
5261
|
+
"$ lps theme-styles rollback --to 1732000000000",
|
|
5262
|
+
"$ lps theme-styles rollback --dry-run"
|
|
5263
|
+
],
|
|
5264
|
+
"flags": {
|
|
5265
|
+
"json": {
|
|
5266
|
+
"description": "Format output as json.",
|
|
5267
|
+
"helpGroup": "GLOBAL",
|
|
5268
|
+
"name": "json",
|
|
5269
|
+
"allowNo": false,
|
|
5270
|
+
"type": "boolean"
|
|
5271
|
+
},
|
|
5272
|
+
"env": {
|
|
5273
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
5274
|
+
"name": "env",
|
|
5275
|
+
"hasDynamicHelp": false,
|
|
5276
|
+
"multiple": false,
|
|
5277
|
+
"type": "option"
|
|
5278
|
+
},
|
|
5279
|
+
"dry-run": {
|
|
5280
|
+
"char": "d",
|
|
5281
|
+
"description": "Show what would change without making changes",
|
|
5282
|
+
"name": "dry-run",
|
|
5283
|
+
"allowNo": false,
|
|
5284
|
+
"type": "boolean"
|
|
5285
|
+
},
|
|
5286
|
+
"yes": {
|
|
5287
|
+
"char": "y",
|
|
5288
|
+
"description": "Answer yes to confirmation prompts",
|
|
5289
|
+
"name": "yes",
|
|
5290
|
+
"allowNo": false,
|
|
5291
|
+
"type": "boolean"
|
|
5292
|
+
},
|
|
5293
|
+
"list": {
|
|
5294
|
+
"description": "List available snapshots instead of rolling back",
|
|
5295
|
+
"name": "list",
|
|
5296
|
+
"allowNo": false,
|
|
5297
|
+
"type": "boolean"
|
|
5298
|
+
},
|
|
5299
|
+
"to": {
|
|
5300
|
+
"description": "Roll back to this snapshot id instead of the most recent one",
|
|
5301
|
+
"name": "to",
|
|
5302
|
+
"hasDynamicHelp": false,
|
|
5303
|
+
"multiple": false,
|
|
5304
|
+
"type": "option"
|
|
5305
|
+
}
|
|
5306
|
+
},
|
|
5307
|
+
"hasDynamicHelp": false,
|
|
5308
|
+
"hiddenAliases": [],
|
|
5309
|
+
"id": "theme-styles:rollback",
|
|
5310
|
+
"pluginAlias": "@loopress/cli",
|
|
5311
|
+
"pluginName": "@loopress/cli",
|
|
5312
|
+
"pluginType": "core",
|
|
5313
|
+
"strict": true,
|
|
5314
|
+
"enableJsonFlag": true,
|
|
5315
|
+
"dryRunFlag": {
|
|
5316
|
+
"dry-run": {
|
|
5317
|
+
"char": "d",
|
|
5318
|
+
"description": "Show what would change without making changes",
|
|
5319
|
+
"allowNo": false,
|
|
5320
|
+
"type": "boolean"
|
|
5321
|
+
}
|
|
5322
|
+
},
|
|
5323
|
+
"yesFlag": {
|
|
5324
|
+
"yes": {
|
|
5325
|
+
"char": "y",
|
|
5326
|
+
"description": "Answer yes to confirmation prompts",
|
|
5327
|
+
"allowNo": false,
|
|
5328
|
+
"type": "boolean"
|
|
5329
|
+
}
|
|
5330
|
+
},
|
|
5331
|
+
"isESM": true,
|
|
5332
|
+
"relativePath": [
|
|
5333
|
+
"dist",
|
|
5334
|
+
"commands",
|
|
5335
|
+
"theme-styles",
|
|
5336
|
+
"rollback.js"
|
|
4066
5337
|
]
|
|
4067
5338
|
}
|
|
4068
5339
|
},
|
|
4069
|
-
"version": "0.
|
|
5340
|
+
"version": "0.25.0"
|
|
4070
5341
|
}
|