@loopress/cli 0.24.1 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/README.md +721 -90
  2. package/dist/commands/acf/push.d.ts +1 -0
  3. package/dist/commands/acf/push.js +25 -2
  4. package/dist/commands/acf/rollback.d.ts +2 -0
  5. package/dist/commands/acf/rollback.js +5 -0
  6. package/dist/commands/api/rollback.d.ts +2 -0
  7. package/dist/commands/api/rollback.js +5 -0
  8. package/dist/commands/diff.js +1 -1
  9. package/dist/commands/doctor.d.ts +17 -1
  10. package/dist/commands/doctor.js +55 -38
  11. package/dist/commands/form/pull.js +4 -1
  12. package/dist/commands/form/push.d.ts +1 -0
  13. package/dist/commands/form/push.js +29 -3
  14. package/dist/commands/form/rollback.d.ts +2 -0
  15. package/dist/commands/form/rollback.js +5 -0
  16. package/dist/commands/hook/rollback.d.ts +2 -0
  17. package/dist/commands/hook/rollback.js +5 -0
  18. package/dist/commands/init.js +2 -0
  19. package/dist/commands/menu/diff.d.ts +2 -0
  20. package/dist/commands/menu/diff.js +5 -0
  21. package/dist/commands/menu/list.d.ts +13 -0
  22. package/dist/commands/menu/list.js +32 -0
  23. package/dist/commands/menu/pull.d.ts +15 -0
  24. package/dist/commands/menu/pull.js +72 -0
  25. package/dist/commands/menu/push.d.ts +17 -0
  26. package/dist/commands/menu/push.js +120 -0
  27. package/dist/commands/menu/rollback.d.ts +2 -0
  28. package/dist/commands/menu/rollback.js +5 -0
  29. package/dist/commands/option/add.js +1 -1
  30. package/dist/commands/option/push.d.ts +1 -0
  31. package/dist/commands/option/push.js +26 -1
  32. package/dist/commands/option/rollback.d.ts +2 -0
  33. package/dist/commands/option/rollback.js +5 -0
  34. package/dist/commands/page/diff.d.ts +2 -0
  35. package/dist/commands/page/diff.js +5 -0
  36. package/dist/commands/page/list.d.ts +8 -0
  37. package/dist/commands/page/list.js +22 -0
  38. package/dist/commands/page/push.d.ts +20 -0
  39. package/dist/commands/page/push.js +60 -0
  40. package/dist/commands/plugin/push.d.ts +1 -0
  41. package/dist/commands/plugin/push.js +14 -0
  42. package/dist/commands/promote.d.ts +8 -1
  43. package/dist/commands/promote.js +2 -0
  44. package/dist/commands/pull.d.ts +11 -1
  45. package/dist/commands/pull.js +9 -2
  46. package/dist/commands/push.d.ts +11 -1
  47. package/dist/commands/push.js +10 -2
  48. package/dist/commands/seo/pull.js +6 -2
  49. package/dist/commands/seo/push.d.ts +1 -0
  50. package/dist/commands/seo/push.js +33 -3
  51. package/dist/commands/seo/rollback.d.ts +2 -0
  52. package/dist/commands/seo/rollback.js +5 -0
  53. package/dist/commands/snippet/push.d.ts +1 -0
  54. package/dist/commands/snippet/push.js +31 -1
  55. package/dist/commands/snippet/rollback.d.ts +2 -0
  56. package/dist/commands/snippet/rollback.js +5 -0
  57. package/dist/commands/theme-styles/diff.d.ts +2 -0
  58. package/dist/commands/theme-styles/diff.js +5 -0
  59. package/dist/commands/theme-styles/pull.d.ts +12 -0
  60. package/dist/commands/theme-styles/pull.js +31 -0
  61. package/dist/commands/theme-styles/push.d.ts +12 -0
  62. package/dist/commands/theme-styles/push.js +45 -0
  63. package/dist/commands/theme-styles/rollback.d.ts +2 -0
  64. package/dist/commands/theme-styles/rollback.js +5 -0
  65. package/dist/lib/app-manifest.js +4 -27
  66. package/dist/lib/base.d.ts +2 -0
  67. package/dist/lib/base.js +6 -0
  68. package/dist/lib/dev-watch.d.ts +1 -1
  69. package/dist/lib/dev-watch.js +2 -1
  70. package/dist/lib/find-orphaned-files.js +5 -47
  71. package/dist/lib/load-files.js +4 -42
  72. package/dist/lib/php-files-command.d.ts +1 -0
  73. package/dist/lib/php-files-command.js +84 -47
  74. package/dist/lib/push-command.d.ts +4 -0
  75. package/dist/lib/push-command.js +49 -0
  76. package/dist/lib/readdir-tolerant.d.ts +1 -0
  77. package/dist/lib/readdir-tolerant.js +12 -0
  78. package/dist/lib/resource-state.js +116 -3
  79. package/dist/lib/rollback-command.d.ts +21 -0
  80. package/dist/lib/rollback-command.js +180 -0
  81. package/dist/lib/rollback-materialize.d.ts +1 -0
  82. package/dist/lib/rollback-materialize.js +121 -0
  83. package/dist/lib/snapshot-store.d.ts +30 -0
  84. package/dist/lib/snapshot-store.js +133 -0
  85. package/dist/lib/validate-local.js +7 -1
  86. package/dist/types/project-config.generated.d.ts +12 -0
  87. package/dist/utils/acf-format.d.ts +1 -0
  88. package/dist/utils/acf-format.js +6 -0
  89. package/dist/utils/form-format.d.ts +4 -0
  90. package/dist/utils/form-format.js +3 -7
  91. package/dist/utils/menu-format.d.ts +24 -0
  92. package/dist/utils/menu-format.js +8 -0
  93. package/dist/utils/option-format.d.ts +1 -0
  94. package/dist/utils/page-format.d.ts +27 -0
  95. package/dist/utils/page-format.js +111 -0
  96. package/dist/utils/resource-dirs.d.ts +3 -0
  97. package/dist/utils/resource-dirs.js +6 -0
  98. package/dist/utils/seo-format.d.ts +8 -0
  99. package/dist/utils/seo-format.js +3 -0
  100. package/dist/utils/snippet-format.d.ts +1 -0
  101. package/dist/utils/snippet-format.js +1 -0
  102. package/dist/utils/theme-styles-format.d.ts +26 -0
  103. package/dist/utils/theme-styles-format.js +55 -0
  104. package/oclif.manifest.json +1633 -168
  105. package/package.json +4 -2
  106. package/schemas/project-config.schema.json +15 -0
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @loopress/cli
21
21
  $ lps COMMAND
22
22
  running command...
23
23
  $ lps (--version)
24
- @loopress/cli/0.24.1 linux-x64 node-v24.20.0
24
+ @loopress/cli/0.26.0 linux-x64 node-v24.21.0
25
25
  $ lps --help [COMMAND]
26
26
  USAGE
27
27
  $ lps COMMAND
@@ -51,12 +51,14 @@ report.
51
51
  * [`lps acf list`](#lps-acf-list)
52
52
  * [`lps acf pull [PATH]`](#lps-acf-pull-path)
53
53
  * [`lps acf push [PATH]`](#lps-acf-push-path)
54
+ * [`lps acf rollback [PATH]`](#lps-acf-rollback-path)
54
55
  * [`lps api diff [PATH]`](#lps-api-diff-path)
55
56
  * [`lps api list`](#lps-api-list)
56
57
  * [`lps api publish [PATH]`](#lps-api-publish-path)
57
58
  * [`lps api pull [PATH]`](#lps-api-pull-path)
58
59
  * [`lps api push [PATH]`](#lps-api-push-path)
59
60
  * [`lps api rm FILENAME`](#lps-api-rm-filename)
61
+ * [`lps api rollback [PATH]`](#lps-api-rollback-path)
60
62
  * [`lps app list`](#lps-app-list)
61
63
  * [`lps app pull [PATH]`](#lps-app-pull-path)
62
64
  * [`lps app push [NAME]`](#lps-app-push-name)
@@ -71,21 +73,32 @@ report.
71
73
  * [`lps form list`](#lps-form-list)
72
74
  * [`lps form pull [PATH]`](#lps-form-pull-path)
73
75
  * [`lps form push [PATH]`](#lps-form-push-path)
76
+ * [`lps form rollback [PATH]`](#lps-form-rollback-path)
74
77
  * [`lps help [COMMAND]`](#lps-help-command)
75
78
  * [`lps hook diff [PATH]`](#lps-hook-diff-path)
76
79
  * [`lps hook list`](#lps-hook-list)
77
80
  * [`lps hook pull [PATH]`](#lps-hook-pull-path)
78
81
  * [`lps hook push [PATH]`](#lps-hook-push-path)
79
82
  * [`lps hook rm FILENAME`](#lps-hook-rm-filename)
83
+ * [`lps hook rollback [PATH]`](#lps-hook-rollback-path)
80
84
  * [`lps init`](#lps-init)
81
85
  * [`lps login`](#lps-login)
82
86
  * [`lps logout`](#lps-logout)
87
+ * [`lps menu diff [PATH]`](#lps-menu-diff-path)
88
+ * [`lps menu list`](#lps-menu-list)
89
+ * [`lps menu pull [PATH]`](#lps-menu-pull-path)
90
+ * [`lps menu push [PATH]`](#lps-menu-push-path)
91
+ * [`lps menu rollback [PATH]`](#lps-menu-rollback-path)
83
92
  * [`lps option add NAME`](#lps-option-add-name)
84
93
  * [`lps option diff [PATH]`](#lps-option-diff-path)
85
94
  * [`lps option list`](#lps-option-list)
86
95
  * [`lps option pull [PATH]`](#lps-option-pull-path)
87
96
  * [`lps option push [PATH]`](#lps-option-push-path)
88
97
  * [`lps option remove NAME`](#lps-option-remove-name)
98
+ * [`lps option rollback [PATH]`](#lps-option-rollback-path)
99
+ * [`lps page diff [PATH]`](#lps-page-diff-path)
100
+ * [`lps page list`](#lps-page-list)
101
+ * [`lps page push [SLUG]`](#lps-page-push-slug)
89
102
  * [`lps plugin add SLUG`](#lps-plugin-add-slug)
90
103
  * [`lps plugin audit`](#lps-plugin-audit)
91
104
  * [`lps plugin pull`](#lps-plugin-pull)
@@ -105,14 +118,20 @@ report.
105
118
  * [`lps seo list`](#lps-seo-list)
106
119
  * [`lps seo pull [PATH]`](#lps-seo-pull-path)
107
120
  * [`lps seo push [PATH]`](#lps-seo-push-path)
121
+ * [`lps seo rollback [PATH]`](#lps-seo-rollback-path)
108
122
  * [`lps snippet diff [PATH]`](#lps-snippet-diff-path)
109
123
  * [`lps snippet list`](#lps-snippet-list)
110
124
  * [`lps snippet publish [PATH]`](#lps-snippet-publish-path)
111
125
  * [`lps snippet pull [PATH]`](#lps-snippet-pull-path)
112
126
  * [`lps snippet push [PATH]`](#lps-snippet-push-path)
127
+ * [`lps snippet rollback [PATH]`](#lps-snippet-rollback-path)
113
128
  * [`lps status`](#lps-status)
114
129
  * [`lps telemetry disable`](#lps-telemetry-disable)
115
130
  * [`lps telemetry enable`](#lps-telemetry-enable)
131
+ * [`lps theme-styles diff [PATH]`](#lps-theme-styles-diff-path)
132
+ * [`lps theme-styles pull [PATH]`](#lps-theme-styles-pull-path)
133
+ * [`lps theme-styles push [PATH]`](#lps-theme-styles-push-path)
134
+ * [`lps theme-styles rollback [PATH]`](#lps-theme-styles-rollback-path)
116
135
  * [`lps theme add SLUG`](#lps-theme-add-slug)
117
136
  * [`lps theme pull`](#lps-theme-pull)
118
137
  * [`lps theme push`](#lps-theme-push)
@@ -149,7 +168,7 @@ EXAMPLES
149
168
  $ lps acf diff --env staging --against production
150
169
  ```
151
170
 
152
- _See code: [src/commands/acf/diff.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/acf/diff.ts)_
171
+ _See code: [src/commands/acf/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/acf/diff.ts)_
153
172
 
154
173
  ## `lps acf list`
155
174
 
@@ -176,7 +195,7 @@ EXAMPLES
176
195
  $ lps acf list --type field-groups
177
196
  ```
178
197
 
179
- _See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/acf/list.ts)_
198
+ _See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/acf/list.ts)_
180
199
 
181
200
  ## `lps acf pull [PATH]`
182
201
 
@@ -205,7 +224,7 @@ EXAMPLES
205
224
  $ lps acf pull --type field-groups
206
225
  ```
207
226
 
208
- _See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/acf/pull.ts)_
227
+ _See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/acf/pull.ts)_
209
228
 
210
229
  ## `lps acf push [PATH]`
211
230
 
@@ -234,7 +253,44 @@ EXAMPLES
234
253
  $ lps acf push --type field-groups
235
254
  ```
236
255
 
237
- _See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/acf/push.ts)_
256
+ _See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/acf/push.ts)_
257
+
258
+ ## `lps acf rollback [PATH]`
259
+
260
+ Restore ACF field groups, post types, taxonomies, and options pages to a snapshot taken automatically before an earlier `lps acf push`
261
+
262
+ ```
263
+ USAGE
264
+ $ lps acf rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
265
+
266
+ ARGUMENTS
267
+ [PATH] Path to ACF directory (overrides project config)
268
+
269
+ FLAGS
270
+ -d, --dry-run Show what would change without making changes
271
+ -y, --yes Answer yes to confirmation prompts
272
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
273
+ --list List available snapshots instead of rolling back
274
+ --to=<value> Roll back to this snapshot id instead of the most recent one
275
+
276
+ GLOBAL FLAGS
277
+ --json Format output as json.
278
+
279
+ DESCRIPTION
280
+ Restore ACF field groups, post types, taxonomies, and options pages to a snapshot taken automatically before an
281
+ earlier `lps acf push`
282
+
283
+ EXAMPLES
284
+ $ lps acf rollback
285
+
286
+ $ lps acf rollback --list
287
+
288
+ $ lps acf rollback --to 1732000000000
289
+
290
+ $ lps acf rollback --dry-run
291
+ ```
292
+
293
+ _See code: [src/commands/acf/rollback.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/acf/rollback.ts)_
238
294
 
239
295
  ## `lps api diff [PATH]`
240
296
 
@@ -266,7 +322,7 @@ EXAMPLES
266
322
  $ lps api diff --env staging --against production
267
323
  ```
268
324
 
269
- _See code: [src/commands/api/diff.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/api/diff.ts)_
325
+ _See code: [src/commands/api/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/api/diff.ts)_
270
326
 
271
327
  ## `lps api list`
272
328
 
@@ -289,7 +345,7 @@ EXAMPLES
289
345
  $ lps api list
290
346
  ```
291
347
 
292
- _See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/api/list.ts)_
348
+ _See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/api/list.ts)_
293
349
 
294
350
  ## `lps api publish [PATH]`
295
351
 
@@ -312,7 +368,7 @@ EXAMPLES
312
368
  $ lps api publish --path ./api
313
369
  ```
314
370
 
315
- _See code: [src/commands/api/publish.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/api/publish.ts)_
371
+ _See code: [src/commands/api/publish.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/api/publish.ts)_
316
372
 
317
373
  ## `lps api pull [PATH]`
318
374
 
@@ -342,7 +398,7 @@ EXAMPLES
342
398
  $ lps api pull --path ./api
343
399
  ```
344
400
 
345
- _See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/api/pull.ts)_
401
+ _See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/api/pull.ts)_
346
402
 
347
403
  ## `lps api push [PATH]`
348
404
 
@@ -375,7 +431,7 @@ EXAMPLES
375
431
  $ lps api push --prune
376
432
  ```
377
433
 
378
- _See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/api/push.ts)_
434
+ _See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/api/push.ts)_
379
435
 
380
436
  ## `lps api rm FILENAME`
381
437
 
@@ -405,7 +461,43 @@ EXAMPLES
405
461
  $ lps api rm hello --yes
406
462
  ```
407
463
 
408
- _See code: [src/commands/api/rm.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/api/rm.ts)_
464
+ _See code: [src/commands/api/rm.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/api/rm.ts)_
465
+
466
+ ## `lps api rollback [PATH]`
467
+
468
+ Restore API route files to a snapshot taken automatically before an earlier `lps api push`
469
+
470
+ ```
471
+ USAGE
472
+ $ lps api rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
473
+
474
+ ARGUMENTS
475
+ [PATH] Path to api directory (overrides project config)
476
+
477
+ FLAGS
478
+ -d, --dry-run Show what would change without making changes
479
+ -y, --yes Answer yes to confirmation prompts
480
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
481
+ --list List available snapshots instead of rolling back
482
+ --to=<value> Roll back to this snapshot id instead of the most recent one
483
+
484
+ GLOBAL FLAGS
485
+ --json Format output as json.
486
+
487
+ DESCRIPTION
488
+ Restore API route files to a snapshot taken automatically before an earlier `lps api push`
489
+
490
+ EXAMPLES
491
+ $ lps api rollback
492
+
493
+ $ lps api rollback --list
494
+
495
+ $ lps api rollback --to 1732000000000
496
+
497
+ $ lps api rollback --dry-run
498
+ ```
499
+
500
+ _See code: [src/commands/api/rollback.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/api/rollback.ts)_
409
501
 
410
502
  ## `lps app list`
411
503
 
@@ -428,7 +520,7 @@ EXAMPLES
428
520
  $ lps app list
429
521
  ```
430
522
 
431
- _See code: [src/commands/app/list.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/app/list.ts)_
523
+ _See code: [src/commands/app/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/app/list.ts)_
432
524
 
433
525
  ## `lps app pull [PATH]`
434
526
 
@@ -456,7 +548,7 @@ EXAMPLES
456
548
  $ lps app pull
457
549
  ```
458
550
 
459
- _See code: [src/commands/app/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/app/pull.ts)_
551
+ _See code: [src/commands/app/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/app/pull.ts)_
460
552
 
461
553
  ## `lps app push [NAME]`
462
554
 
@@ -487,7 +579,7 @@ EXAMPLES
487
579
  $ lps app push search
488
580
  ```
489
581
 
490
- _See code: [src/commands/app/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/app/push.ts)_
582
+ _See code: [src/commands/app/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/app/push.ts)_
491
583
 
492
584
  ## `lps app remove NAME`
493
585
 
@@ -516,7 +608,7 @@ EXAMPLES
516
608
  $ lps app remove search
517
609
  ```
518
610
 
519
- _See code: [src/commands/app/remove.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/app/remove.ts)_
611
+ _See code: [src/commands/app/remove.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/app/remove.ts)_
520
612
 
521
613
  ## `lps composer init`
522
614
 
@@ -539,7 +631,7 @@ EXAMPLES
539
631
  $ lps composer init --dry-run
540
632
  ```
541
633
 
542
- _See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/composer/init.ts)_
634
+ _See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/composer/init.ts)_
543
635
 
544
636
  ## `lps composer pull`
545
637
 
@@ -565,7 +657,7 @@ EXAMPLES
565
657
  $ lps composer pull --dry-run
566
658
  ```
567
659
 
568
- _See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/composer/pull.ts)_
660
+ _See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/composer/pull.ts)_
569
661
 
570
662
  ## `lps composer push`
571
663
 
@@ -593,7 +685,7 @@ EXAMPLES
593
685
  $ lps composer push --dry-run
594
686
  ```
595
687
 
596
- _See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/composer/push.ts)_
688
+ _See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/composer/push.ts)_
597
689
 
598
690
  ## `lps dev`
599
691
 
@@ -604,8 +696,8 @@ USAGE
604
696
  $ lps dev [--only <value>] [--skip <value>]
605
697
 
606
698
  FLAGS
607
- --only=<value> Only watch these resource types (comma-separated): snippets, api, plugins
608
- --skip=<value> Skip these resource types (comma-separated): snippets, api, plugins
699
+ --only=<value> Only watch these resource types (comma-separated): snippets, pages, api, plugins
700
+ --skip=<value> Skip these resource types (comma-separated): snippets, pages, api, plugins
609
701
 
610
702
  DESCRIPTION
611
703
  Watch project files and push changes to the local WordPress instance as they happen. Always targets the "local"
@@ -619,33 +711,34 @@ EXAMPLES
619
711
  $ lps dev --skip=plugins
620
712
  ```
621
713
 
622
- _See code: [src/commands/dev.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/dev.ts)_
714
+ _See code: [src/commands/dev.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/dev.ts)_
623
715
 
624
716
  ## `lps diff`
625
717
 
626
- 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.
718
+ Show what differs between your local tracked files and a WordPress environment, or between two environments. Covers snippets, forms, ACF, API routes, Hooks, pages, SEO, Options, Menus, Theme styles, and Composer. Plugins and themes have their own `lps plugin status` / `lps theme status`. Exit code: 0 in sync, 1 on drift, 2 when a resource could not be compared, so it doubles as a CI drift gate.
627
719
 
628
720
  ```
629
721
  USAGE
630
722
  $ lps diff [--json] [--env <value>] [--against <value>] [--only
631
- snippet|form|acf|api|hook|seo|option|composer...] [--skip snippet|form|acf|api|hook|seo|option|composer...]
723
+ snippet|form|acf|api|hook|page|seo|menu|option|theme-styles|composer...] [--skip
724
+ snippet|form|acf|api|hook|page|seo|menu|option|theme-styles|composer...]
632
725
 
633
726
  FLAGS
634
727
  --against=<value> Compare the primary environment against this second environment instead of against local files
635
728
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
636
729
  --only=<option>... Only compare these resources
637
- <options: snippet|form|acf|api|hook|seo|option|composer>
730
+ <options: snippet|form|acf|api|hook|page|seo|menu|option|theme-styles|composer>
638
731
  --skip=<option>... Compare every resource except these
639
- <options: snippet|form|acf|api|hook|seo|option|composer>
732
+ <options: snippet|form|acf|api|hook|page|seo|menu|option|theme-styles|composer>
640
733
 
641
734
  GLOBAL FLAGS
642
735
  --json Format output as json.
643
736
 
644
737
  DESCRIPTION
645
738
  Show what differs between your local tracked files and a WordPress environment, or between two environments. Covers
646
- snippets, forms, ACF, API routes, Hooks, SEO, and Composer. Plugins and themes have their own `lps plugin status` /
647
- `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
648
- drift gate.
739
+ snippets, forms, ACF, API routes, Hooks, pages, SEO, Options, Menus, Theme styles, and Composer. Plugins and themes
740
+ have their own `lps plugin status` / `lps theme status`. Exit code: 0 in sync, 1 on drift, 2 when a resource could not
741
+ be compared, so it doubles as a CI drift gate.
649
742
 
650
743
  EXAMPLES
651
744
  $ lps diff
@@ -659,7 +752,7 @@ EXAMPLES
659
752
  $ lps diff --skip composer
660
753
  ```
661
754
 
662
- _See code: [src/commands/diff.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/diff.ts)_
755
+ _See code: [src/commands/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/diff.ts)_
663
756
 
664
757
  ## `lps doctor`
665
758
 
@@ -667,11 +760,14 @@ Diagnose connectivity, plugin and credential problems for the targeted environme
667
760
 
668
761
  ```
669
762
  USAGE
670
- $ lps doctor [--env <value>]
763
+ $ lps doctor [--json] [--env <value>]
671
764
 
672
765
  FLAGS
673
766
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
674
767
 
768
+ GLOBAL FLAGS
769
+ --json Format output as json.
770
+
675
771
  DESCRIPTION
676
772
  Diagnose connectivity, plugin and credential problems for the targeted environment
677
773
 
@@ -681,7 +777,7 @@ EXAMPLES
681
777
  $ lps doctor --env production
682
778
  ```
683
779
 
684
- _See code: [src/commands/doctor.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/doctor.ts)_
780
+ _See code: [src/commands/doctor.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/doctor.ts)_
685
781
 
686
782
  ## `lps form diff [PATH]`
687
783
 
@@ -712,7 +808,7 @@ EXAMPLES
712
808
  $ lps form diff --env staging --against production
713
809
  ```
714
810
 
715
- _See code: [src/commands/form/diff.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/form/diff.ts)_
811
+ _See code: [src/commands/form/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/form/diff.ts)_
716
812
 
717
813
  ## `lps form list`
718
814
 
@@ -735,7 +831,7 @@ EXAMPLES
735
831
  $ lps form list
736
832
  ```
737
833
 
738
- _See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/form/list.ts)_
834
+ _See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/form/list.ts)_
739
835
 
740
836
  ## `lps form pull [PATH]`
741
837
 
@@ -760,7 +856,7 @@ EXAMPLES
760
856
  $ lps form pull
761
857
  ```
762
858
 
763
- _See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/form/pull.ts)_
859
+ _See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/form/pull.ts)_
764
860
 
765
861
  ## `lps form push [PATH]`
766
862
 
@@ -791,7 +887,43 @@ EXAMPLES
791
887
  $ lps form push --allow-notifications
792
888
  ```
793
889
 
794
- _See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/form/push.ts)_
890
+ _See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/form/push.ts)_
891
+
892
+ ## `lps form rollback [PATH]`
893
+
894
+ Restore forms to a snapshot taken automatically before an earlier `lps form push`
895
+
896
+ ```
897
+ USAGE
898
+ $ lps form rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
899
+
900
+ ARGUMENTS
901
+ [PATH] Path to forms directory (overrides project config)
902
+
903
+ FLAGS
904
+ -d, --dry-run Show what would change without making changes
905
+ -y, --yes Answer yes to confirmation prompts
906
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
907
+ --list List available snapshots instead of rolling back
908
+ --to=<value> Roll back to this snapshot id instead of the most recent one
909
+
910
+ GLOBAL FLAGS
911
+ --json Format output as json.
912
+
913
+ DESCRIPTION
914
+ Restore forms to a snapshot taken automatically before an earlier `lps form push`
915
+
916
+ EXAMPLES
917
+ $ lps form rollback
918
+
919
+ $ lps form rollback --list
920
+
921
+ $ lps form rollback --to 1732000000000
922
+
923
+ $ lps form rollback --dry-run
924
+ ```
925
+
926
+ _See code: [src/commands/form/rollback.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/form/rollback.ts)_
795
927
 
796
928
  ## `lps help [COMMAND]`
797
929
 
@@ -842,7 +974,7 @@ EXAMPLES
842
974
  $ lps hook diff --env staging --against production
843
975
  ```
844
976
 
845
- _See code: [src/commands/hook/diff.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/hook/diff.ts)_
977
+ _See code: [src/commands/hook/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/hook/diff.ts)_
846
978
 
847
979
  ## `lps hook list`
848
980
 
@@ -865,7 +997,7 @@ EXAMPLES
865
997
  $ lps hook list
866
998
  ```
867
999
 
868
- _See code: [src/commands/hook/list.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/hook/list.ts)_
1000
+ _See code: [src/commands/hook/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/hook/list.ts)_
869
1001
 
870
1002
  ## `lps hook pull [PATH]`
871
1003
 
@@ -895,7 +1027,7 @@ EXAMPLES
895
1027
  $ lps hook pull --path ./hooks
896
1028
  ```
897
1029
 
898
- _See code: [src/commands/hook/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/hook/pull.ts)_
1030
+ _See code: [src/commands/hook/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/hook/pull.ts)_
899
1031
 
900
1032
  ## `lps hook push [PATH]`
901
1033
 
@@ -928,7 +1060,7 @@ EXAMPLES
928
1060
  $ lps hook push --prune
929
1061
  ```
930
1062
 
931
- _See code: [src/commands/hook/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/hook/push.ts)_
1063
+ _See code: [src/commands/hook/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/hook/push.ts)_
932
1064
 
933
1065
  ## `lps hook rm FILENAME`
934
1066
 
@@ -958,7 +1090,43 @@ EXAMPLES
958
1090
  $ lps hook rm hello --yes
959
1091
  ```
960
1092
 
961
- _See code: [src/commands/hook/rm.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/hook/rm.ts)_
1093
+ _See code: [src/commands/hook/rm.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/hook/rm.ts)_
1094
+
1095
+ ## `lps hook rollback [PATH]`
1096
+
1097
+ Restore hook files to a snapshot taken automatically before an earlier `lps hook push`
1098
+
1099
+ ```
1100
+ USAGE
1101
+ $ lps hook rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
1102
+
1103
+ ARGUMENTS
1104
+ [PATH] Path to hooks directory (overrides project config)
1105
+
1106
+ FLAGS
1107
+ -d, --dry-run Show what would change without making changes
1108
+ -y, --yes Answer yes to confirmation prompts
1109
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1110
+ --list List available snapshots instead of rolling back
1111
+ --to=<value> Roll back to this snapshot id instead of the most recent one
1112
+
1113
+ GLOBAL FLAGS
1114
+ --json Format output as json.
1115
+
1116
+ DESCRIPTION
1117
+ Restore hook files to a snapshot taken automatically before an earlier `lps hook push`
1118
+
1119
+ EXAMPLES
1120
+ $ lps hook rollback
1121
+
1122
+ $ lps hook rollback --list
1123
+
1124
+ $ lps hook rollback --to 1732000000000
1125
+
1126
+ $ lps hook rollback --dry-run
1127
+ ```
1128
+
1129
+ _See code: [src/commands/hook/rollback.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/hook/rollback.ts)_
962
1130
 
963
1131
  ## `lps init`
964
1132
 
@@ -975,7 +1143,7 @@ EXAMPLES
975
1143
  $ lps init
976
1144
  ```
977
1145
 
978
- _See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/init.ts)_
1146
+ _See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/init.ts)_
979
1147
 
980
1148
  ## `lps login`
981
1149
 
@@ -992,7 +1160,7 @@ EXAMPLES
992
1160
  $ lps login
993
1161
  ```
994
1162
 
995
- _See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/login.ts)_
1163
+ _See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/login.ts)_
996
1164
 
997
1165
  ## `lps logout`
998
1166
 
@@ -1009,7 +1177,150 @@ EXAMPLES
1009
1177
  $ lps logout
1010
1178
  ```
1011
1179
 
1012
- _See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/logout.ts)_
1180
+ _See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/logout.ts)_
1181
+
1182
+ ## `lps menu diff [PATH]`
1183
+
1184
+ Show what differs in nav menus and the active theme menu locations between your local files and a WordPress environment, or between two environments
1185
+
1186
+ ```
1187
+ USAGE
1188
+ $ lps menu diff [PATH] [--json] [--env <value>] [--against <value>]
1189
+
1190
+ ARGUMENTS
1191
+ [PATH] Path to menus directory (overrides project config)
1192
+
1193
+ FLAGS
1194
+ --against=<value> Compare the primary environment against this second environment instead of against local files
1195
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1196
+
1197
+ GLOBAL FLAGS
1198
+ --json Format output as json.
1199
+
1200
+ DESCRIPTION
1201
+ Show what differs in nav menus and the active theme menu locations between your local files and a WordPress
1202
+ environment, or between two environments
1203
+
1204
+ EXAMPLES
1205
+ $ lps menu diff
1206
+
1207
+ $ lps menu diff --env staging
1208
+
1209
+ $ lps menu diff --env staging --against production
1210
+ ```
1211
+
1212
+ _See code: [src/commands/menu/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/menu/diff.ts)_
1213
+
1214
+ ## `lps menu list`
1215
+
1216
+ List nav menus and the active theme menu locations on WordPress
1217
+
1218
+ ```
1219
+ USAGE
1220
+ $ lps menu list [--json] [--env <value>]
1221
+
1222
+ FLAGS
1223
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1224
+
1225
+ GLOBAL FLAGS
1226
+ --json Format output as json.
1227
+
1228
+ DESCRIPTION
1229
+ List nav menus and the active theme menu locations on WordPress
1230
+
1231
+ EXAMPLES
1232
+ $ lps menu list
1233
+ ```
1234
+
1235
+ _See code: [src/commands/menu/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/menu/list.ts)_
1236
+
1237
+ ## `lps menu pull [PATH]`
1238
+
1239
+ Pull nav menus and the active theme menu locations from WordPress
1240
+
1241
+ ```
1242
+ USAGE
1243
+ $ lps menu pull [PATH] [--env <value>] [-d] [-y]
1244
+
1245
+ ARGUMENTS
1246
+ [PATH] Path to menus directory (overrides project config)
1247
+
1248
+ FLAGS
1249
+ -d, --dry-run Show what would change without making changes
1250
+ -y, --yes Answer yes to confirmation prompts
1251
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1252
+
1253
+ DESCRIPTION
1254
+ Pull nav menus and the active theme menu locations from WordPress
1255
+
1256
+ EXAMPLES
1257
+ $ lps menu pull
1258
+ ```
1259
+
1260
+ _See code: [src/commands/menu/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/menu/pull.ts)_
1261
+
1262
+ ## `lps menu push [PATH]`
1263
+
1264
+ 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.
1265
+
1266
+ ```
1267
+ USAGE
1268
+ $ lps menu push [PATH] [--env <value>] [-d] [-y]
1269
+
1270
+ ARGUMENTS
1271
+ [PATH] Path to menus directory (overrides project config)
1272
+
1273
+ FLAGS
1274
+ -d, --dry-run Show what would change without making changes
1275
+ -y, --yes Answer yes to confirmation prompts
1276
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1277
+
1278
+ DESCRIPTION
1279
+ Push local nav menus and the active theme menu locations to WordPress. Each menu's post_type/taxonomy items are
1280
+ resolved by slug on the target environment, never by a raw id; an item whose target does not exist there fails the
1281
+ whole menu rather than guessing.
1282
+
1283
+ EXAMPLES
1284
+ $ lps menu push
1285
+ ```
1286
+
1287
+ _See code: [src/commands/menu/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/menu/push.ts)_
1288
+
1289
+ ## `lps menu rollback [PATH]`
1290
+
1291
+ Restore nav menus and menu locations to a snapshot taken automatically before an earlier `lps menu push`
1292
+
1293
+ ```
1294
+ USAGE
1295
+ $ lps menu rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
1296
+
1297
+ ARGUMENTS
1298
+ [PATH] Path to menus directory (overrides project config)
1299
+
1300
+ FLAGS
1301
+ -d, --dry-run Show what would change without making changes
1302
+ -y, --yes Answer yes to confirmation prompts
1303
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1304
+ --list List available snapshots instead of rolling back
1305
+ --to=<value> Roll back to this snapshot id instead of the most recent one
1306
+
1307
+ GLOBAL FLAGS
1308
+ --json Format output as json.
1309
+
1310
+ DESCRIPTION
1311
+ Restore nav menus and menu locations to a snapshot taken automatically before an earlier `lps menu push`
1312
+
1313
+ EXAMPLES
1314
+ $ lps menu rollback
1315
+
1316
+ $ lps menu rollback --list
1317
+
1318
+ $ lps menu rollback --to 1732000000000
1319
+
1320
+ $ lps menu rollback --dry-run
1321
+ ```
1322
+
1323
+ _See code: [src/commands/menu/rollback.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/menu/rollback.ts)_
1013
1324
 
1014
1325
  ## `lps option add NAME`
1015
1326
 
@@ -1040,7 +1351,7 @@ EXAMPLES
1040
1351
  $ lps option add siteurl
1041
1352
  ```
1042
1353
 
1043
- _See code: [src/commands/option/add.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/option/add.ts)_
1354
+ _See code: [src/commands/option/add.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/option/add.ts)_
1044
1355
 
1045
1356
  ## `lps option diff [PATH]`
1046
1357
 
@@ -1072,7 +1383,7 @@ EXAMPLES
1072
1383
  $ lps option diff --env staging --against production
1073
1384
  ```
1074
1385
 
1075
- _See code: [src/commands/option/diff.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/option/diff.ts)_
1386
+ _See code: [src/commands/option/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/option/diff.ts)_
1076
1387
 
1077
1388
  ## `lps option list`
1078
1389
 
@@ -1102,7 +1413,7 @@ EXAMPLES
1102
1413
  $ lps option list --no-core
1103
1414
  ```
1104
1415
 
1105
- _See code: [src/commands/option/list.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/option/list.ts)_
1416
+ _See code: [src/commands/option/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/option/list.ts)_
1106
1417
 
1107
1418
  ## `lps option pull [PATH]`
1108
1419
 
@@ -1131,7 +1442,7 @@ EXAMPLES
1131
1442
  $ lps option pull
1132
1443
  ```
1133
1444
 
1134
- _See code: [src/commands/option/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/option/pull.ts)_
1445
+ _See code: [src/commands/option/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/option/pull.ts)_
1135
1446
 
1136
1447
  ## `lps option push [PATH]`
1137
1448
 
@@ -1160,7 +1471,7 @@ EXAMPLES
1160
1471
  $ lps option push
1161
1472
  ```
1162
1473
 
1163
- _See code: [src/commands/option/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/option/push.ts)_
1474
+ _See code: [src/commands/option/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/option/push.ts)_
1164
1475
 
1165
1476
  ## `lps option remove NAME`
1166
1477
 
@@ -1193,7 +1504,130 @@ EXAMPLES
1193
1504
  $ lps option remove wpseo_titles --local-only
1194
1505
  ```
1195
1506
 
1196
- _See code: [src/commands/option/remove.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/option/remove.ts)_
1507
+ _See code: [src/commands/option/remove.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/option/remove.ts)_
1508
+
1509
+ ## `lps option rollback [PATH]`
1510
+
1511
+ Restore tracked options to a snapshot taken automatically before an earlier `lps option push`
1512
+
1513
+ ```
1514
+ USAGE
1515
+ $ lps option rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
1516
+
1517
+ ARGUMENTS
1518
+ [PATH] Path to options directory (overrides project config)
1519
+
1520
+ FLAGS
1521
+ -d, --dry-run Show what would change without making changes
1522
+ -y, --yes Answer yes to confirmation prompts
1523
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1524
+ --list List available snapshots instead of rolling back
1525
+ --to=<value> Roll back to this snapshot id instead of the most recent one
1526
+
1527
+ GLOBAL FLAGS
1528
+ --json Format output as json.
1529
+
1530
+ DESCRIPTION
1531
+ Restore tracked options to a snapshot taken automatically before an earlier `lps option push`
1532
+
1533
+ EXAMPLES
1534
+ $ lps option rollback
1535
+
1536
+ $ lps option rollback --list
1537
+
1538
+ $ lps option rollback --to 1732000000000
1539
+
1540
+ $ lps option rollback --dry-run
1541
+ ```
1542
+
1543
+ _See code: [src/commands/option/rollback.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/option/rollback.ts)_
1544
+
1545
+ ## `lps page diff [PATH]`
1546
+
1547
+ Show what differs in static pages between your local files and a WordPress environment, or between two environments
1548
+
1549
+ ```
1550
+ USAGE
1551
+ $ lps page diff [PATH] [--json] [--env <value>] [--against <value>]
1552
+
1553
+ ARGUMENTS
1554
+ [PATH] Path to pages directory (overrides project config)
1555
+
1556
+ FLAGS
1557
+ --against=<value> Compare the primary environment against this second environment instead of against local files
1558
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1559
+
1560
+ GLOBAL FLAGS
1561
+ --json Format output as json.
1562
+
1563
+ DESCRIPTION
1564
+ Show what differs in static pages between your local files and a WordPress environment, or between two environments
1565
+
1566
+ EXAMPLES
1567
+ $ lps page diff
1568
+
1569
+ $ lps page diff --env staging
1570
+
1571
+ $ lps page diff --env staging --against production
1572
+ ```
1573
+
1574
+ _See code: [src/commands/page/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/page/diff.ts)_
1575
+
1576
+ ## `lps page list`
1577
+
1578
+ List the static pages managed by Loopress on WordPress
1579
+
1580
+ ```
1581
+ USAGE
1582
+ $ lps page list [--json] [--env <value>]
1583
+
1584
+ FLAGS
1585
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1586
+
1587
+ GLOBAL FLAGS
1588
+ --json Format output as json.
1589
+
1590
+ DESCRIPTION
1591
+ List the static pages managed by Loopress on WordPress
1592
+
1593
+ EXAMPLES
1594
+ $ lps page list
1595
+ ```
1596
+
1597
+ _See code: [src/commands/page/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/page/list.ts)_
1598
+
1599
+ ## `lps page push [SLUG]`
1600
+
1601
+ Push static HTML pages (pages/<slug>.html) to WordPress. The `status` header (draft or publish, draft by default) is applied on every push.
1602
+
1603
+ ```
1604
+ USAGE
1605
+ $ lps page push [SLUG] [--json] [--env <value>] [-d] [-y]
1606
+
1607
+ ARGUMENTS
1608
+ [SLUG] Push only this page (its file name without .html). Pushes every page when omitted.
1609
+
1610
+ FLAGS
1611
+ -d, --dry-run Show what would change without making changes
1612
+ -y, --yes Answer yes to confirmation prompts
1613
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1614
+
1615
+ GLOBAL FLAGS
1616
+ --json Format output as json.
1617
+
1618
+ DESCRIPTION
1619
+ Push static HTML pages (pages/<slug>.html) to WordPress. The `status` header (draft or publish, draft by default) is
1620
+ applied on every push.
1621
+
1622
+ EXAMPLES
1623
+ $ lps page push
1624
+
1625
+ $ lps page push legal-notice
1626
+
1627
+ $ lps page push --dry-run
1628
+ ```
1629
+
1630
+ _See code: [src/commands/page/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/page/push.ts)_
1197
1631
 
1198
1632
  ## `lps plugin add SLUG`
1199
1633
 
@@ -1222,7 +1656,7 @@ EXAMPLES
1222
1656
  $ lps plugin add contact-form-7 --dry-run
1223
1657
  ```
1224
1658
 
1225
- _See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/plugin/add.ts)_
1659
+ _See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/plugin/add.ts)_
1226
1660
 
1227
1661
  ## `lps plugin audit`
1228
1662
 
@@ -1245,7 +1679,7 @@ EXAMPLES
1245
1679
  $ lps plugin audit
1246
1680
  ```
1247
1681
 
1248
- _See code: [src/commands/plugin/audit.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/plugin/audit.ts)_
1682
+ _See code: [src/commands/plugin/audit.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/plugin/audit.ts)_
1249
1683
 
1250
1684
  ## `lps plugin pull`
1251
1685
 
@@ -1271,7 +1705,7 @@ EXAMPLES
1271
1705
  $ lps plugin pull --dry-run
1272
1706
  ```
1273
1707
 
1274
- _See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/plugin/pull.ts)_
1708
+ _See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/plugin/pull.ts)_
1275
1709
 
1276
1710
  ## `lps plugin push`
1277
1711
 
@@ -1302,7 +1736,7 @@ EXAMPLES
1302
1736
  $ lps plugin push --force --prune
1303
1737
  ```
1304
1738
 
1305
- _See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/plugin/push.ts)_
1739
+ _See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/plugin/push.ts)_
1306
1740
 
1307
1741
  ## `lps plugin status`
1308
1742
 
@@ -1325,7 +1759,7 @@ EXAMPLES
1325
1759
  $ lps plugin status
1326
1760
  ```
1327
1761
 
1328
- _See code: [src/commands/plugin/status.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/plugin/status.ts)_
1762
+ _See code: [src/commands/plugin/status.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/plugin/status.ts)_
1329
1763
 
1330
1764
  ## `lps project config`
1331
1765
 
@@ -1343,7 +1777,7 @@ EXAMPLES
1343
1777
  $ lps project config
1344
1778
  ```
1345
1779
 
1346
- _See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/project/config.ts)_
1780
+ _See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/project/config.ts)_
1347
1781
 
1348
1782
  ## `lps project list`
1349
1783
 
@@ -1363,7 +1797,7 @@ EXAMPLES
1363
1797
  $ lps project list
1364
1798
  ```
1365
1799
 
1366
- _See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/project/list.ts)_
1800
+ _See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/project/list.ts)_
1367
1801
 
1368
1802
  ## `lps project pull`
1369
1803
 
@@ -1380,7 +1814,7 @@ EXAMPLES
1380
1814
  $ lps project pull
1381
1815
  ```
1382
1816
 
1383
- _See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/project/pull.ts)_
1817
+ _See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/project/pull.ts)_
1384
1818
 
1385
1819
  ## `lps project push`
1386
1820
 
@@ -1400,7 +1834,7 @@ EXAMPLES
1400
1834
  $ lps project push
1401
1835
  ```
1402
1836
 
1403
- _See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/project/push.ts)_
1837
+ _See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/project/push.ts)_
1404
1838
 
1405
1839
  ## `lps project remove`
1406
1840
 
@@ -1417,7 +1851,7 @@ EXAMPLES
1417
1851
  $ lps project remove
1418
1852
  ```
1419
1853
 
1420
- _See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/project/remove.ts)_
1854
+ _See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/project/remove.ts)_
1421
1855
 
1422
1856
  ## `lps project rotate`
1423
1857
 
@@ -1439,7 +1873,7 @@ EXAMPLES
1439
1873
  $ lps project rotate --env staging
1440
1874
  ```
1441
1875
 
1442
- _See code: [src/commands/project/rotate.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/project/rotate.ts)_
1876
+ _See code: [src/commands/project/rotate.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/project/rotate.ts)_
1443
1877
 
1444
1878
  ## `lps project switch`
1445
1879
 
@@ -1456,7 +1890,7 @@ EXAMPLES
1456
1890
  $ lps project switch
1457
1891
  ```
1458
1892
 
1459
- _See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/project/switch.ts)_
1893
+ _See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/project/switch.ts)_
1460
1894
 
1461
1895
  ## `lps promote FROM TO`
1462
1896
 
@@ -1464,7 +1898,7 @@ Copy every tracked resource from one environment to another by pulling from <fro
1464
1898
 
1465
1899
  ```
1466
1900
  USAGE
1467
- $ lps promote FROM TO [-d] [-y]
1901
+ $ lps promote FROM TO [--json] [-d] [-y]
1468
1902
 
1469
1903
  ARGUMENTS
1470
1904
  FROM Environment to copy the configuration from
@@ -1474,6 +1908,9 @@ FLAGS
1474
1908
  -d, --dry-run Show what would change without making changes
1475
1909
  -y, --yes Answer yes to confirmation prompts
1476
1910
 
1911
+ GLOBAL FLAGS
1912
+ --json Format output as json.
1913
+
1477
1914
  DESCRIPTION
1478
1915
  Copy every tracked resource from one environment to another by pulling from <from> then pushing to <to>. Local tracked
1479
1916
  files are overwritten with <from> in the process.
@@ -1484,24 +1921,27 @@ EXAMPLES
1484
1921
  $ lps promote production staging --dry-run
1485
1922
  ```
1486
1923
 
1487
- _See code: [src/commands/promote.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/promote.ts)_
1924
+ _See code: [src/commands/promote.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/promote.ts)_
1488
1925
 
1489
1926
  ## `lps pull`
1490
1927
 
1491
- Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, from WordPress
1928
+ Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, menus, options, and snippets, from WordPress
1492
1929
 
1493
1930
  ```
1494
1931
  USAGE
1495
- $ lps pull [--env <value>] [-d] [-y]
1932
+ $ lps pull [--json] [--env <value>] [-d] [-y]
1496
1933
 
1497
1934
  FLAGS
1498
1935
  -d, --dry-run Show what would change without making changes
1499
1936
  -y, --yes Answer yes to confirmation prompts
1500
1937
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1501
1938
 
1939
+ GLOBAL FLAGS
1940
+ --json Format output as json.
1941
+
1502
1942
  DESCRIPTION
1503
- Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, from
1504
- WordPress
1943
+ Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, menus, options, and snippets,
1944
+ from WordPress
1505
1945
 
1506
1946
  EXAMPLES
1507
1947
  $ lps pull
@@ -1511,24 +1951,27 @@ EXAMPLES
1511
1951
  $ lps pull --dry-run
1512
1952
  ```
1513
1953
 
1514
- _See code: [src/commands/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/pull.ts)_
1954
+ _See code: [src/commands/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/pull.ts)_
1515
1955
 
1516
1956
  ## `lps push`
1517
1957
 
1518
- Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, to WordPress
1958
+ Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, pages, SEO, menus, options, and snippets, to WordPress
1519
1959
 
1520
1960
  ```
1521
1961
  USAGE
1522
- $ lps push [--env <value>] [-d] [-y]
1962
+ $ lps push [--json] [--env <value>] [-d] [-y]
1523
1963
 
1524
1964
  FLAGS
1525
1965
  -d, --dry-run Show what would change without making changes
1526
1966
  -y, --yes Answer yes to confirmation prompts
1527
1967
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1528
1968
 
1969
+ GLOBAL FLAGS
1970
+ --json Format output as json.
1971
+
1529
1972
  DESCRIPTION
1530
- Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, to
1531
- WordPress
1973
+ Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, pages, SEO, menus, options, and
1974
+ snippets, to WordPress
1532
1975
 
1533
1976
  EXAMPLES
1534
1977
  $ lps push
@@ -1538,7 +1981,7 @@ EXAMPLES
1538
1981
  $ lps push --dry-run
1539
1982
  ```
1540
1983
 
1541
- _See code: [src/commands/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/push.ts)_
1984
+ _See code: [src/commands/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/push.ts)_
1542
1985
 
1543
1986
  ## `lps seo diff [PATH]`
1544
1987
 
@@ -1570,7 +2013,7 @@ EXAMPLES
1570
2013
  $ lps seo diff --env staging --against production
1571
2014
  ```
1572
2015
 
1573
- _See code: [src/commands/seo/diff.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/seo/diff.ts)_
2016
+ _See code: [src/commands/seo/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/seo/diff.ts)_
1574
2017
 
1575
2018
  ## `lps seo list`
1576
2019
 
@@ -1596,7 +2039,7 @@ EXAMPLES
1596
2039
  $ lps seo list --post-type post
1597
2040
  ```
1598
2041
 
1599
- _See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/seo/list.ts)_
2042
+ _See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/seo/list.ts)_
1600
2043
 
1601
2044
  ## `lps seo pull [PATH]`
1602
2045
 
@@ -1624,7 +2067,7 @@ EXAMPLES
1624
2067
  $ lps seo pull --post-type post --post-type page
1625
2068
  ```
1626
2069
 
1627
- _See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/seo/pull.ts)_
2070
+ _See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/seo/pull.ts)_
1628
2071
 
1629
2072
  ## `lps seo push [PATH]`
1630
2073
 
@@ -1654,7 +2097,43 @@ EXAMPLES
1654
2097
  $ lps seo push --allow-external-redirects
1655
2098
  ```
1656
2099
 
1657
- _See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/seo/push.ts)_
2100
+ _See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/seo/push.ts)_
2101
+
2102
+ ## `lps seo rollback [PATH]`
2103
+
2104
+ Restore SEO settings, post meta, and redirects to a snapshot taken automatically before an earlier `lps seo push`
2105
+
2106
+ ```
2107
+ USAGE
2108
+ $ lps seo rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
2109
+
2110
+ ARGUMENTS
2111
+ [PATH] Path to SEO directory (overrides project config)
2112
+
2113
+ FLAGS
2114
+ -d, --dry-run Show what would change without making changes
2115
+ -y, --yes Answer yes to confirmation prompts
2116
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2117
+ --list List available snapshots instead of rolling back
2118
+ --to=<value> Roll back to this snapshot id instead of the most recent one
2119
+
2120
+ GLOBAL FLAGS
2121
+ --json Format output as json.
2122
+
2123
+ DESCRIPTION
2124
+ Restore SEO settings, post meta, and redirects to a snapshot taken automatically before an earlier `lps seo push`
2125
+
2126
+ EXAMPLES
2127
+ $ lps seo rollback
2128
+
2129
+ $ lps seo rollback --list
2130
+
2131
+ $ lps seo rollback --to 1732000000000
2132
+
2133
+ $ lps seo rollback --dry-run
2134
+ ```
2135
+
2136
+ _See code: [src/commands/seo/rollback.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/seo/rollback.ts)_
1658
2137
 
1659
2138
  ## `lps snippet diff [PATH]`
1660
2139
 
@@ -1685,7 +2164,7 @@ EXAMPLES
1685
2164
  $ lps snippet diff --env staging --against production
1686
2165
  ```
1687
2166
 
1688
- _See code: [src/commands/snippet/diff.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/snippet/diff.ts)_
2167
+ _See code: [src/commands/snippet/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/snippet/diff.ts)_
1689
2168
 
1690
2169
  ## `lps snippet list`
1691
2170
 
@@ -1708,7 +2187,7 @@ EXAMPLES
1708
2187
  $ lps snippet list
1709
2188
  ```
1710
2189
 
1711
- _See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/snippet/list.ts)_
2190
+ _See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/snippet/list.ts)_
1712
2191
 
1713
2192
  ## `lps snippet publish [PATH]`
1714
2193
 
@@ -1731,7 +2210,7 @@ EXAMPLES
1731
2210
  $ lps snippet publish --path ./snippets
1732
2211
  ```
1733
2212
 
1734
- _See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/snippet/publish.ts)_
2213
+ _See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/snippet/publish.ts)_
1735
2214
 
1736
2215
  ## `lps snippet pull [PATH]`
1737
2216
 
@@ -1761,7 +2240,7 @@ EXAMPLES
1761
2240
  $ lps snippet pull --path ./snippets
1762
2241
  ```
1763
2242
 
1764
- _See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/snippet/pull.ts)_
2243
+ _See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/snippet/pull.ts)_
1765
2244
 
1766
2245
  ## `lps snippet push [PATH]`
1767
2246
 
@@ -1792,7 +2271,43 @@ EXAMPLES
1792
2271
  $ lps snippet push --path ./snippets
1793
2272
  ```
1794
2273
 
1795
- _See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/snippet/push.ts)_
2274
+ _See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/snippet/push.ts)_
2275
+
2276
+ ## `lps snippet rollback [PATH]`
2277
+
2278
+ Restore snippets to a snapshot taken automatically before an earlier `lps snippet push`
2279
+
2280
+ ```
2281
+ USAGE
2282
+ $ lps snippet rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
2283
+
2284
+ ARGUMENTS
2285
+ [PATH] Path to snippets directory (overrides project config)
2286
+
2287
+ FLAGS
2288
+ -d, --dry-run Show what would change without making changes
2289
+ -y, --yes Answer yes to confirmation prompts
2290
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2291
+ --list List available snapshots instead of rolling back
2292
+ --to=<value> Roll back to this snapshot id instead of the most recent one
2293
+
2294
+ GLOBAL FLAGS
2295
+ --json Format output as json.
2296
+
2297
+ DESCRIPTION
2298
+ Restore snippets to a snapshot taken automatically before an earlier `lps snippet push`
2299
+
2300
+ EXAMPLES
2301
+ $ lps snippet rollback
2302
+
2303
+ $ lps snippet rollback --list
2304
+
2305
+ $ lps snippet rollback --to 1732000000000
2306
+
2307
+ $ lps snippet rollback --dry-run
2308
+ ```
2309
+
2310
+ _See code: [src/commands/snippet/rollback.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/snippet/rollback.ts)_
1796
2311
 
1797
2312
  ## `lps status`
1798
2313
 
@@ -1817,7 +2332,7 @@ EXAMPLES
1817
2332
  $ lps status --env staging
1818
2333
  ```
1819
2334
 
1820
- _See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/status.ts)_
2335
+ _See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/status.ts)_
1821
2336
 
1822
2337
  ## `lps telemetry disable`
1823
2338
 
@@ -1834,7 +2349,7 @@ EXAMPLES
1834
2349
  $ lps telemetry disable
1835
2350
  ```
1836
2351
 
1837
- _See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/telemetry/disable.ts)_
2352
+ _See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/telemetry/disable.ts)_
1838
2353
 
1839
2354
  ## `lps telemetry enable`
1840
2355
 
@@ -1851,7 +2366,123 @@ EXAMPLES
1851
2366
  $ lps telemetry enable
1852
2367
  ```
1853
2368
 
1854
- _See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/telemetry/enable.ts)_
2369
+ _See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/telemetry/enable.ts)_
2370
+
2371
+ ## `lps theme-styles diff [PATH]`
2372
+
2373
+ 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
2374
+
2375
+ ```
2376
+ USAGE
2377
+ $ lps theme-styles diff [PATH] [--json] [--env <value>] [--against <value>]
2378
+
2379
+ ARGUMENTS
2380
+ [PATH] Path to theme styles directory (overrides project config)
2381
+
2382
+ FLAGS
2383
+ --against=<value> Compare the primary environment against this second environment instead of against local files
2384
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2385
+
2386
+ GLOBAL FLAGS
2387
+ --json Format output as json.
2388
+
2389
+ DESCRIPTION
2390
+ Show what differs in the active block theme's Global Styles (Site Editor > Styles) between your local file and a
2391
+ WordPress environment, or between two environments
2392
+
2393
+ EXAMPLES
2394
+ $ lps theme-styles diff
2395
+
2396
+ $ lps theme-styles diff --env staging
2397
+
2398
+ $ lps theme-styles diff --env staging --against production
2399
+ ```
2400
+
2401
+ _See code: [src/commands/theme-styles/diff.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/theme-styles/diff.ts)_
2402
+
2403
+ ## `lps theme-styles pull [PATH]`
2404
+
2405
+ Pull the active block theme's Global Styles customizations (Site Editor > Styles) from WordPress into a local file
2406
+
2407
+ ```
2408
+ USAGE
2409
+ $ lps theme-styles pull [PATH] [--env <value>] [-d]
2410
+
2411
+ ARGUMENTS
2412
+ [PATH] Path to theme styles directory (overrides project config)
2413
+
2414
+ FLAGS
2415
+ -d, --dry-run Show what would change without making changes
2416
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2417
+
2418
+ DESCRIPTION
2419
+ Pull the active block theme's Global Styles customizations (Site Editor > Styles) from WordPress into a local file
2420
+
2421
+ EXAMPLES
2422
+ $ lps theme-styles pull
2423
+ ```
2424
+
2425
+ _See code: [src/commands/theme-styles/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/theme-styles/pull.ts)_
2426
+
2427
+ ## `lps theme-styles push [PATH]`
2428
+
2429
+ Push the local Global Styles file to the active block theme's Site Editor > Styles on WordPress
2430
+
2431
+ ```
2432
+ USAGE
2433
+ $ lps theme-styles push [PATH] [--env <value>] [-d]
2434
+
2435
+ ARGUMENTS
2436
+ [PATH] Path to theme styles directory (overrides project config)
2437
+
2438
+ FLAGS
2439
+ -d, --dry-run Show what would change without making changes
2440
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2441
+
2442
+ DESCRIPTION
2443
+ Push the local Global Styles file to the active block theme's Site Editor > Styles on WordPress
2444
+
2445
+ EXAMPLES
2446
+ $ lps theme-styles push
2447
+ ```
2448
+
2449
+ _See code: [src/commands/theme-styles/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/theme-styles/push.ts)_
2450
+
2451
+ ## `lps theme-styles rollback [PATH]`
2452
+
2453
+ Restore the active theme’s Global Styles to a snapshot taken automatically before an earlier `lps theme-styles push`
2454
+
2455
+ ```
2456
+ USAGE
2457
+ $ lps theme-styles rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
2458
+
2459
+ ARGUMENTS
2460
+ [PATH] Path to theme styles directory (overrides project config)
2461
+
2462
+ FLAGS
2463
+ -d, --dry-run Show what would change without making changes
2464
+ -y, --yes Answer yes to confirmation prompts
2465
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2466
+ --list List available snapshots instead of rolling back
2467
+ --to=<value> Roll back to this snapshot id instead of the most recent one
2468
+
2469
+ GLOBAL FLAGS
2470
+ --json Format output as json.
2471
+
2472
+ DESCRIPTION
2473
+ Restore the active theme’s Global Styles to a snapshot taken automatically before an earlier `lps theme-styles push`
2474
+
2475
+ EXAMPLES
2476
+ $ lps theme-styles rollback
2477
+
2478
+ $ lps theme-styles rollback --list
2479
+
2480
+ $ lps theme-styles rollback --to 1732000000000
2481
+
2482
+ $ lps theme-styles rollback --dry-run
2483
+ ```
2484
+
2485
+ _See code: [src/commands/theme-styles/rollback.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/theme-styles/rollback.ts)_
1855
2486
 
1856
2487
  ## `lps theme add SLUG`
1857
2488
 
@@ -1878,7 +2509,7 @@ EXAMPLES
1878
2509
  $ lps theme add generatepress --version 3.4.0
1879
2510
  ```
1880
2511
 
1881
- _See code: [src/commands/theme/add.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/theme/add.ts)_
2512
+ _See code: [src/commands/theme/add.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/theme/add.ts)_
1882
2513
 
1883
2514
  ## `lps theme pull`
1884
2515
 
@@ -1902,7 +2533,7 @@ EXAMPLES
1902
2533
  $ lps theme pull
1903
2534
  ```
1904
2535
 
1905
- _See code: [src/commands/theme/pull.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/theme/pull.ts)_
2536
+ _See code: [src/commands/theme/pull.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/theme/pull.ts)_
1906
2537
 
1907
2538
  ## `lps theme push`
1908
2539
 
@@ -1930,7 +2561,7 @@ EXAMPLES
1930
2561
  $ lps theme push --force
1931
2562
  ```
1932
2563
 
1933
- _See code: [src/commands/theme/push.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/theme/push.ts)_
2564
+ _See code: [src/commands/theme/push.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/theme/push.ts)_
1934
2565
 
1935
2566
  ## `lps theme status`
1936
2567
 
@@ -1953,7 +2584,7 @@ EXAMPLES
1953
2584
  $ lps theme status
1954
2585
  ```
1955
2586
 
1956
- _See code: [src/commands/theme/status.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/theme/status.ts)_
2587
+ _See code: [src/commands/theme/status.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/theme/status.ts)_
1957
2588
 
1958
2589
  ## `lps validate`
1959
2590
 
@@ -1973,5 +2604,5 @@ EXAMPLES
1973
2604
  $ lps validate
1974
2605
  ```
1975
2606
 
1976
- _See code: [src/commands/validate.ts](https://github.com/loopress/loopress/blob/v0.24.1/src/commands/validate.ts)_
2607
+ _See code: [src/commands/validate.ts](https://github.com/loopress/loopress/blob/v0.26.0/src/commands/validate.ts)_
1977
2608
  <!-- commandsstop -->