@loopress/cli 0.28.0 → 0.29.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 (82) hide show
  1. package/README.md +370 -203
  2. package/bin/dev.js +0 -0
  3. package/dist/commands/acf/pull.d.ts +9 -1
  4. package/dist/commands/acf/pull.js +2 -0
  5. package/dist/commands/acf/push.d.ts +9 -1
  6. package/dist/commands/acf/push.js +3 -1
  7. package/dist/commands/api/publish.js +1 -1
  8. package/dist/commands/app/push.js +1 -1
  9. package/dist/commands/composer/push.js +3 -3
  10. package/dist/commands/form/pull.d.ts +9 -1
  11. package/dist/commands/form/pull.js +3 -1
  12. package/dist/commands/form/push.d.ts +7 -1
  13. package/dist/commands/form/push.js +3 -1
  14. package/dist/commands/init.js +6 -38
  15. package/dist/commands/menu/pull.d.ts +7 -1
  16. package/dist/commands/menu/pull.js +2 -0
  17. package/dist/commands/menu/push.d.ts +7 -1
  18. package/dist/commands/menu/push.js +3 -1
  19. package/dist/commands/option/pull.js +4 -4
  20. package/dist/commands/option/push.js +2 -0
  21. package/dist/commands/page/push.js +3 -0
  22. package/dist/commands/plugin/pull.d.ts +4 -0
  23. package/dist/commands/plugin/pull.js +56 -10
  24. package/dist/commands/plugin/push.js +5 -4
  25. package/dist/commands/push.js +5 -4
  26. package/dist/commands/seo/pull.d.ts +8 -1
  27. package/dist/commands/seo/pull.js +2 -0
  28. package/dist/commands/seo/push.d.ts +7 -1
  29. package/dist/commands/seo/push.js +3 -1
  30. package/dist/commands/snippet/publish.js +1 -1
  31. package/dist/commands/snippet/pull.js +1 -1
  32. package/dist/commands/snippet/push.js +1 -1
  33. package/dist/commands/status.d.ts +1 -0
  34. package/dist/commands/status.js +4 -4
  35. package/dist/commands/theme/pull.d.ts +6 -10
  36. package/dist/commands/theme/pull.js +30 -32
  37. package/dist/commands/theme/push.d.ts +8 -9
  38. package/dist/commands/theme/push.js +54 -111
  39. package/dist/commands/theme/style/pull.d.ts +7 -1
  40. package/dist/commands/theme/style/pull.js +3 -1
  41. package/dist/commands/theme/style/push.d.ts +8 -1
  42. package/dist/commands/theme/style/push.js +4 -1
  43. package/dist/commands/{template → theme/template}/diff.d.ts +1 -1
  44. package/dist/commands/{template → theme/template}/diff.js +3 -3
  45. package/dist/commands/{template → theme/template}/list.d.ts +2 -2
  46. package/dist/commands/{template → theme/template}/list.js +5 -5
  47. package/dist/commands/{template → theme/template}/push.d.ts +1 -1
  48. package/dist/commands/{template → theme/template}/push.js +8 -6
  49. package/dist/commands/theme/version/pull.d.ts +23 -0
  50. package/dist/commands/theme/version/pull.js +43 -0
  51. package/dist/commands/theme/version/push.d.ts +22 -0
  52. package/dist/commands/theme/version/push.js +123 -0
  53. package/dist/hooks/finally.d.ts +2 -1
  54. package/dist/hooks/finally.js +27 -4
  55. package/dist/lib/app-manifest.js +2 -2
  56. package/dist/lib/base.d.ts +1 -0
  57. package/dist/lib/base.js +3 -0
  58. package/dist/lib/dev-watch.js +2 -2
  59. package/dist/lib/diff-state.js +1 -0
  60. package/dist/lib/github-release.js +0 -1
  61. package/dist/lib/local-callback-server.d.ts +12 -6
  62. package/dist/lib/local-callback-server.js +21 -22
  63. package/dist/lib/php-files-command.js +3 -1
  64. package/dist/lib/push-command.d.ts +5 -0
  65. package/dist/lib/push-command.js +30 -8
  66. package/dist/lib/resource-state.js +7 -6
  67. package/dist/lib/snapshot-store.js +2 -2
  68. package/dist/lib/wp-authorize-flow.d.ts +10 -17
  69. package/dist/lib/wp-authorize-flow.js +24 -28
  70. package/dist/lib/wp-site-diagnostic.js +37 -0
  71. package/dist/utils/composer.d.ts +3 -1
  72. package/dist/utils/composer.js +14 -6
  73. package/dist/utils/option-format.d.ts +3 -1
  74. package/dist/utils/option-format.js +14 -3
  75. package/dist/utils/page-format.d.ts +5 -1
  76. package/dist/utils/page-format.js +7 -3
  77. package/dist/utils/plugin-sync.js +1 -1
  78. package/dist/utils/resource-dirs.js +2 -2
  79. package/dist/utils/template-format.d.ts +2 -1
  80. package/dist/utils/template-format.js +10 -3
  81. package/oclif.manifest.json +937 -361
  82. package/package.json +22 -16
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.28.0 linux-x64 node-v24.21.0
24
+ @loopress/cli/0.29.0 linux-x64 node-v24.21.0
25
25
  $ lps --help [COMMAND]
26
26
  USAGE
27
27
  $ lps COMMAND
@@ -57,6 +57,7 @@ report.
57
57
  * [`lps api publish [PATH]`](#lps-api-publish-path)
58
58
  * [`lps api pull [PATH]`](#lps-api-pull-path)
59
59
  * [`lps api push [PATH]`](#lps-api-push-path)
60
+ * [`lps api remove FILENAME`](#lps-api-remove-filename)
60
61
  * [`lps api rm FILENAME`](#lps-api-rm-filename)
61
62
  * [`lps api rollback [PATH]`](#lps-api-rollback-path)
62
63
  * [`lps app list`](#lps-app-list)
@@ -79,6 +80,7 @@ report.
79
80
  * [`lps hook list`](#lps-hook-list)
80
81
  * [`lps hook pull [PATH]`](#lps-hook-pull-path)
81
82
  * [`lps hook push [PATH]`](#lps-hook-push-path)
83
+ * [`lps hook remove FILENAME`](#lps-hook-remove-filename)
82
84
  * [`lps hook rm FILENAME`](#lps-hook-rm-filename)
83
85
  * [`lps hook rollback [PATH]`](#lps-hook-rollback-path)
84
86
  * [`lps init`](#lps-init)
@@ -128,9 +130,6 @@ report.
128
130
  * [`lps status`](#lps-status)
129
131
  * [`lps telemetry disable`](#lps-telemetry-disable)
130
132
  * [`lps telemetry enable`](#lps-telemetry-enable)
131
- * [`lps template diff`](#lps-template-diff)
132
- * [`lps template list`](#lps-template-list)
133
- * [`lps template push`](#lps-template-push)
134
133
  * [`lps theme add SLUG`](#lps-theme-add-slug)
135
134
  * [`lps theme pull`](#lps-theme-pull)
136
135
  * [`lps theme push`](#lps-theme-push)
@@ -139,6 +138,11 @@ report.
139
138
  * [`lps theme style pull [PATH]`](#lps-theme-style-pull-path)
140
139
  * [`lps theme style push [PATH]`](#lps-theme-style-push-path)
141
140
  * [`lps theme style rollback [PATH]`](#lps-theme-style-rollback-path)
141
+ * [`lps theme template diff`](#lps-theme-template-diff)
142
+ * [`lps theme template list`](#lps-theme-template-list)
143
+ * [`lps theme template push`](#lps-theme-template-push)
144
+ * [`lps theme version pull`](#lps-theme-version-pull)
145
+ * [`lps theme version push`](#lps-theme-version-push)
142
146
  * [`lps validate`](#lps-validate)
143
147
 
144
148
  ## `lps acf diff [PATH]`
@@ -171,7 +175,7 @@ EXAMPLES
171
175
  $ lps acf diff --env staging --against production
172
176
  ```
173
177
 
174
- _See code: [src/commands/acf/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/acf/diff.ts)_
178
+ _See code: [src/commands/acf/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/acf/diff.ts)_
175
179
 
176
180
  ## `lps acf list`
177
181
 
@@ -198,7 +202,7 @@ EXAMPLES
198
202
  $ lps acf list --type field-groups
199
203
  ```
200
204
 
201
- _See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/acf/list.ts)_
205
+ _See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/acf/list.ts)_
202
206
 
203
207
  ## `lps acf pull [PATH]`
204
208
 
@@ -206,7 +210,8 @@ Pull ACF field groups, post types, taxonomies, and options pages from WordPress
206
210
 
207
211
  ```
208
212
  USAGE
209
- $ lps acf pull [PATH] [--env <value>] [-d] [-y] [--type field-groups|post-types|taxonomies|options-pages...]
213
+ $ lps acf pull [PATH] [--json] [--env <value>] [-d] [-y] [--type
214
+ field-groups|post-types|taxonomies|options-pages...]
210
215
 
211
216
  ARGUMENTS
212
217
  [PATH] Path to ACF directory (overrides project config)
@@ -218,6 +223,9 @@ FLAGS
218
223
  --type=<option>... Limit to specific ACF object types
219
224
  <options: field-groups|post-types|taxonomies|options-pages>
220
225
 
226
+ GLOBAL FLAGS
227
+ --json Format output as json.
228
+
221
229
  DESCRIPTION
222
230
  Pull ACF field groups, post types, taxonomies, and options pages from WordPress
223
231
 
@@ -227,7 +235,7 @@ EXAMPLES
227
235
  $ lps acf pull --type field-groups
228
236
  ```
229
237
 
230
- _See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/acf/pull.ts)_
238
+ _See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/acf/pull.ts)_
231
239
 
232
240
  ## `lps acf push [PATH]`
233
241
 
@@ -235,7 +243,8 @@ Push ACF field groups, post types, taxonomies, and options pages to WordPress
235
243
 
236
244
  ```
237
245
  USAGE
238
- $ lps acf push [PATH] [--env <value>] [-d] [-y] [--type field-groups|post-types|taxonomies|options-pages...]
246
+ $ lps acf push [PATH] [--json] [--env <value>] [-d] [-y] [--type
247
+ field-groups|post-types|taxonomies|options-pages...]
239
248
 
240
249
  ARGUMENTS
241
250
  [PATH] Path to ACF directory (overrides project config)
@@ -247,6 +256,9 @@ FLAGS
247
256
  --type=<option>... Limit to specific ACF object types
248
257
  <options: field-groups|post-types|taxonomies|options-pages>
249
258
 
259
+ GLOBAL FLAGS
260
+ --json Format output as json.
261
+
250
262
  DESCRIPTION
251
263
  Push ACF field groups, post types, taxonomies, and options pages to WordPress
252
264
 
@@ -256,7 +268,7 @@ EXAMPLES
256
268
  $ lps acf push --type field-groups
257
269
  ```
258
270
 
259
- _See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/acf/push.ts)_
271
+ _See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/acf/push.ts)_
260
272
 
261
273
  ## `lps acf rollback [PATH]`
262
274
 
@@ -293,7 +305,7 @@ EXAMPLES
293
305
  $ lps acf rollback --dry-run
294
306
  ```
295
307
 
296
- _See code: [src/commands/acf/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/acf/rollback.ts)_
308
+ _See code: [src/commands/acf/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/acf/rollback.ts)_
297
309
 
298
310
  ## `lps api diff [PATH]`
299
311
 
@@ -325,7 +337,7 @@ EXAMPLES
325
337
  $ lps api diff --env staging --against production
326
338
  ```
327
339
 
328
- _See code: [src/commands/api/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/api/diff.ts)_
340
+ _See code: [src/commands/api/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/api/diff.ts)_
329
341
 
330
342
  ## `lps api list`
331
343
 
@@ -348,7 +360,7 @@ EXAMPLES
348
360
  $ lps api list
349
361
  ```
350
362
 
351
- _See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/api/list.ts)_
363
+ _See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/api/list.ts)_
352
364
 
353
365
  ## `lps api publish [PATH]`
354
366
 
@@ -368,10 +380,10 @@ DESCRIPTION
368
380
  EXAMPLES
369
381
  $ lps api publish
370
382
 
371
- $ lps api publish --path ./api
383
+ $ lps api publish ./api
372
384
  ```
373
385
 
374
- _See code: [src/commands/api/publish.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/api/publish.ts)_
386
+ _See code: [src/commands/api/publish.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/api/publish.ts)_
375
387
 
376
388
  ## `lps api pull [PATH]`
377
389
 
@@ -401,7 +413,7 @@ EXAMPLES
401
413
  $ lps api pull --path ./api
402
414
  ```
403
415
 
404
- _See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/api/pull.ts)_
416
+ _See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/api/pull.ts)_
405
417
 
406
418
  ## `lps api push [PATH]`
407
419
 
@@ -434,7 +446,38 @@ EXAMPLES
434
446
  $ lps api push --prune
435
447
  ```
436
448
 
437
- _See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/api/push.ts)_
449
+ _See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/api/push.ts)_
450
+
451
+ ## `lps api remove FILENAME`
452
+
453
+ Remove a custom API route file from WordPress
454
+
455
+ ```
456
+ USAGE
457
+ $ lps api remove FILENAME [--json] [--env <value>] [-d] [-y]
458
+
459
+ ARGUMENTS
460
+ FILENAME The route file to remove, its slug without the .php extension (e.g. "hello" or "invoice-pdf/[order_id]")
461
+
462
+ FLAGS
463
+ -d, --dry-run Show what would change without making changes
464
+ -y, --yes Answer yes to confirmation prompts
465
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
466
+
467
+ GLOBAL FLAGS
468
+ --json Format output as json.
469
+
470
+ DESCRIPTION
471
+ Remove a custom API route file from WordPress
472
+
473
+ ALIASES
474
+ $ lps api remove
475
+
476
+ EXAMPLES
477
+ $ lps api rm hello
478
+
479
+ $ lps api remove hello --yes
480
+ ```
438
481
 
439
482
  ## `lps api rm FILENAME`
440
483
 
@@ -458,13 +501,16 @@ GLOBAL FLAGS
458
501
  DESCRIPTION
459
502
  Remove a custom API route file from WordPress
460
503
 
504
+ ALIASES
505
+ $ lps api remove
506
+
461
507
  EXAMPLES
462
508
  $ lps api rm hello
463
509
 
464
- $ lps api rm hello --yes
510
+ $ lps api remove hello --yes
465
511
  ```
466
512
 
467
- _See code: [src/commands/api/rm.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/api/rm.ts)_
513
+ _See code: [src/commands/api/rm.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/api/rm.ts)_
468
514
 
469
515
  ## `lps api rollback [PATH]`
470
516
 
@@ -500,7 +546,7 @@ EXAMPLES
500
546
  $ lps api rollback --dry-run
501
547
  ```
502
548
 
503
- _See code: [src/commands/api/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/api/rollback.ts)_
549
+ _See code: [src/commands/api/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/api/rollback.ts)_
504
550
 
505
551
  ## `lps app list`
506
552
 
@@ -523,7 +569,7 @@ EXAMPLES
523
569
  $ lps app list
524
570
  ```
525
571
 
526
- _See code: [src/commands/app/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/app/list.ts)_
572
+ _See code: [src/commands/app/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/app/list.ts)_
527
573
 
528
574
  ## `lps app pull [PATH]`
529
575
 
@@ -551,7 +597,7 @@ EXAMPLES
551
597
  $ lps app pull
552
598
  ```
553
599
 
554
- _See code: [src/commands/app/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/app/pull.ts)_
600
+ _See code: [src/commands/app/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/app/pull.ts)_
555
601
 
556
602
  ## `lps app push [NAME]`
557
603
 
@@ -586,7 +632,7 @@ EXAMPLES
586
632
  $ lps app push --no-build
587
633
  ```
588
634
 
589
- _See code: [src/commands/app/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/app/push.ts)_
635
+ _See code: [src/commands/app/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/app/push.ts)_
590
636
 
591
637
  ## `lps app remove NAME`
592
638
 
@@ -615,7 +661,7 @@ EXAMPLES
615
661
  $ lps app remove search
616
662
  ```
617
663
 
618
- _See code: [src/commands/app/remove.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/app/remove.ts)_
664
+ _See code: [src/commands/app/remove.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/app/remove.ts)_
619
665
 
620
666
  ## `lps composer init`
621
667
 
@@ -638,7 +684,7 @@ EXAMPLES
638
684
  $ lps composer init --dry-run
639
685
  ```
640
686
 
641
- _See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/composer/init.ts)_
687
+ _See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/composer/init.ts)_
642
688
 
643
689
  ## `lps composer pull`
644
690
 
@@ -664,7 +710,7 @@ EXAMPLES
664
710
  $ lps composer pull --dry-run
665
711
  ```
666
712
 
667
- _See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/composer/pull.ts)_
713
+ _See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/composer/pull.ts)_
668
714
 
669
715
  ## `lps composer push`
670
716
 
@@ -692,7 +738,7 @@ EXAMPLES
692
738
  $ lps composer push --dry-run
693
739
  ```
694
740
 
695
- _See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/composer/push.ts)_
741
+ _See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/composer/push.ts)_
696
742
 
697
743
  ## `lps dev`
698
744
 
@@ -719,7 +765,7 @@ EXAMPLES
719
765
  $ lps dev --skip=plugins
720
766
  ```
721
767
 
722
- _See code: [src/commands/dev.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/dev.ts)_
768
+ _See code: [src/commands/dev.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/dev.ts)_
723
769
 
724
770
  ## `lps diff`
725
771
 
@@ -760,7 +806,7 @@ EXAMPLES
760
806
  $ lps diff --skip composer
761
807
  ```
762
808
 
763
- _See code: [src/commands/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/diff.ts)_
809
+ _See code: [src/commands/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/diff.ts)_
764
810
 
765
811
  ## `lps doctor`
766
812
 
@@ -785,7 +831,7 @@ EXAMPLES
785
831
  $ lps doctor --env production
786
832
  ```
787
833
 
788
- _See code: [src/commands/doctor.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/doctor.ts)_
834
+ _See code: [src/commands/doctor.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/doctor.ts)_
789
835
 
790
836
  ## `lps form diff [PATH]`
791
837
 
@@ -816,7 +862,7 @@ EXAMPLES
816
862
  $ lps form diff --env staging --against production
817
863
  ```
818
864
 
819
- _See code: [src/commands/form/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/form/diff.ts)_
865
+ _See code: [src/commands/form/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/form/diff.ts)_
820
866
 
821
867
  ## `lps form list`
822
868
 
@@ -839,7 +885,7 @@ EXAMPLES
839
885
  $ lps form list
840
886
  ```
841
887
 
842
- _See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/form/list.ts)_
888
+ _See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/form/list.ts)_
843
889
 
844
890
  ## `lps form pull [PATH]`
845
891
 
@@ -847,7 +893,7 @@ Pull forms from WordPress
847
893
 
848
894
  ```
849
895
  USAGE
850
- $ lps form pull [PATH] [--env <value>] [-d] [-y]
896
+ $ lps form pull [PATH] [--json] [--env <value>] [-d] [-y]
851
897
 
852
898
  ARGUMENTS
853
899
  [PATH] Path to forms directory (overrides project config)
@@ -857,6 +903,9 @@ FLAGS
857
903
  -y, --yes Answer yes to confirmation prompts
858
904
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
859
905
 
906
+ GLOBAL FLAGS
907
+ --json Format output as json.
908
+
860
909
  DESCRIPTION
861
910
  Pull forms from WordPress
862
911
 
@@ -864,7 +913,7 @@ EXAMPLES
864
913
  $ lps form pull
865
914
  ```
866
915
 
867
- _See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/form/pull.ts)_
916
+ _See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/form/pull.ts)_
868
917
 
869
918
  ## `lps form push [PATH]`
870
919
 
@@ -872,7 +921,7 @@ Push forms to WordPress. Local files created or updated remotely are renamed on
872
921
 
873
922
  ```
874
923
  USAGE
875
- $ lps form push [PATH] [--env <value>] [-d] [-y] [--allow-notifications]
924
+ $ lps form push [PATH] [--json] [--env <value>] [-d] [-y] [--allow-notifications]
876
925
 
877
926
  ARGUMENTS
878
927
  [PATH] Path to forms directory (overrides project config)
@@ -885,6 +934,9 @@ FLAGS
885
934
  submissions.
886
935
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
887
936
 
937
+ GLOBAL FLAGS
938
+ --json Format output as json.
939
+
888
940
  DESCRIPTION
889
941
  Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json`
890
942
  convention.
@@ -895,7 +947,7 @@ EXAMPLES
895
947
  $ lps form push --allow-notifications
896
948
  ```
897
949
 
898
- _See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/form/push.ts)_
950
+ _See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/form/push.ts)_
899
951
 
900
952
  ## `lps form rollback [PATH]`
901
953
 
@@ -931,7 +983,7 @@ EXAMPLES
931
983
  $ lps form rollback --dry-run
932
984
  ```
933
985
 
934
- _See code: [src/commands/form/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/form/rollback.ts)_
986
+ _See code: [src/commands/form/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/form/rollback.ts)_
935
987
 
936
988
  ## `lps help [COMMAND]`
937
989
 
@@ -951,7 +1003,7 @@ DESCRIPTION
951
1003
  Display help for lps.
952
1004
  ```
953
1005
 
954
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/7.0.0/src/commands/help.ts)_
1006
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/7.0.2/src/commands/help.ts)_
955
1007
 
956
1008
  ## `lps hook diff [PATH]`
957
1009
 
@@ -982,7 +1034,7 @@ EXAMPLES
982
1034
  $ lps hook diff --env staging --against production
983
1035
  ```
984
1036
 
985
- _See code: [src/commands/hook/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/hook/diff.ts)_
1037
+ _See code: [src/commands/hook/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/hook/diff.ts)_
986
1038
 
987
1039
  ## `lps hook list`
988
1040
 
@@ -1005,7 +1057,7 @@ EXAMPLES
1005
1057
  $ lps hook list
1006
1058
  ```
1007
1059
 
1008
- _See code: [src/commands/hook/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/hook/list.ts)_
1060
+ _See code: [src/commands/hook/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/hook/list.ts)_
1009
1061
 
1010
1062
  ## `lps hook pull [PATH]`
1011
1063
 
@@ -1035,7 +1087,7 @@ EXAMPLES
1035
1087
  $ lps hook pull --path ./hooks
1036
1088
  ```
1037
1089
 
1038
- _See code: [src/commands/hook/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/hook/pull.ts)_
1090
+ _See code: [src/commands/hook/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/hook/pull.ts)_
1039
1091
 
1040
1092
  ## `lps hook push [PATH]`
1041
1093
 
@@ -1068,7 +1120,38 @@ EXAMPLES
1068
1120
  $ lps hook push --prune
1069
1121
  ```
1070
1122
 
1071
- _See code: [src/commands/hook/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/hook/push.ts)_
1123
+ _See code: [src/commands/hook/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/hook/push.ts)_
1124
+
1125
+ ## `lps hook remove FILENAME`
1126
+
1127
+ Remove a hook file (action, filter, cron) from WordPress
1128
+
1129
+ ```
1130
+ USAGE
1131
+ $ lps hook remove FILENAME [--json] [--env <value>] [-d] [-y]
1132
+
1133
+ ARGUMENTS
1134
+ FILENAME The hook file to remove, its slug without the .php extension (e.g. "hello" or "invoice-pdf/[order_id]")
1135
+
1136
+ FLAGS
1137
+ -d, --dry-run Show what would change without making changes
1138
+ -y, --yes Answer yes to confirmation prompts
1139
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1140
+
1141
+ GLOBAL FLAGS
1142
+ --json Format output as json.
1143
+
1144
+ DESCRIPTION
1145
+ Remove a hook file (action, filter, cron) from WordPress
1146
+
1147
+ ALIASES
1148
+ $ lps hook remove
1149
+
1150
+ EXAMPLES
1151
+ $ lps hook rm hello
1152
+
1153
+ $ lps hook remove hello --yes
1154
+ ```
1072
1155
 
1073
1156
  ## `lps hook rm FILENAME`
1074
1157
 
@@ -1092,13 +1175,16 @@ GLOBAL FLAGS
1092
1175
  DESCRIPTION
1093
1176
  Remove a hook file (action, filter, cron) from WordPress
1094
1177
 
1178
+ ALIASES
1179
+ $ lps hook remove
1180
+
1095
1181
  EXAMPLES
1096
1182
  $ lps hook rm hello
1097
1183
 
1098
- $ lps hook rm hello --yes
1184
+ $ lps hook remove hello --yes
1099
1185
  ```
1100
1186
 
1101
- _See code: [src/commands/hook/rm.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/hook/rm.ts)_
1187
+ _See code: [src/commands/hook/rm.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/hook/rm.ts)_
1102
1188
 
1103
1189
  ## `lps hook rollback [PATH]`
1104
1190
 
@@ -1134,7 +1220,7 @@ EXAMPLES
1134
1220
  $ lps hook rollback --dry-run
1135
1221
  ```
1136
1222
 
1137
- _See code: [src/commands/hook/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/hook/rollback.ts)_
1223
+ _See code: [src/commands/hook/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/hook/rollback.ts)_
1138
1224
 
1139
1225
  ## `lps init`
1140
1226
 
@@ -1151,7 +1237,7 @@ EXAMPLES
1151
1237
  $ lps init
1152
1238
  ```
1153
1239
 
1154
- _See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/init.ts)_
1240
+ _See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/init.ts)_
1155
1241
 
1156
1242
  ## `lps login`
1157
1243
 
@@ -1168,7 +1254,7 @@ EXAMPLES
1168
1254
  $ lps login
1169
1255
  ```
1170
1256
 
1171
- _See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/login.ts)_
1257
+ _See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/login.ts)_
1172
1258
 
1173
1259
  ## `lps logout`
1174
1260
 
@@ -1185,7 +1271,7 @@ EXAMPLES
1185
1271
  $ lps logout
1186
1272
  ```
1187
1273
 
1188
- _See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/logout.ts)_
1274
+ _See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/logout.ts)_
1189
1275
 
1190
1276
  ## `lps menu diff [PATH]`
1191
1277
 
@@ -1217,7 +1303,7 @@ EXAMPLES
1217
1303
  $ lps menu diff --env staging --against production
1218
1304
  ```
1219
1305
 
1220
- _See code: [src/commands/menu/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/menu/diff.ts)_
1306
+ _See code: [src/commands/menu/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/menu/diff.ts)_
1221
1307
 
1222
1308
  ## `lps menu list`
1223
1309
 
@@ -1240,7 +1326,7 @@ EXAMPLES
1240
1326
  $ lps menu list
1241
1327
  ```
1242
1328
 
1243
- _See code: [src/commands/menu/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/menu/list.ts)_
1329
+ _See code: [src/commands/menu/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/menu/list.ts)_
1244
1330
 
1245
1331
  ## `lps menu pull [PATH]`
1246
1332
 
@@ -1248,7 +1334,7 @@ Pull nav menus and the active theme menu locations from WordPress
1248
1334
 
1249
1335
  ```
1250
1336
  USAGE
1251
- $ lps menu pull [PATH] [--env <value>] [-d] [-y]
1337
+ $ lps menu pull [PATH] [--json] [--env <value>] [-d] [-y]
1252
1338
 
1253
1339
  ARGUMENTS
1254
1340
  [PATH] Path to menus directory (overrides project config)
@@ -1258,6 +1344,9 @@ FLAGS
1258
1344
  -y, --yes Answer yes to confirmation prompts
1259
1345
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1260
1346
 
1347
+ GLOBAL FLAGS
1348
+ --json Format output as json.
1349
+
1261
1350
  DESCRIPTION
1262
1351
  Pull nav menus and the active theme menu locations from WordPress
1263
1352
 
@@ -1265,7 +1354,7 @@ EXAMPLES
1265
1354
  $ lps menu pull
1266
1355
  ```
1267
1356
 
1268
- _See code: [src/commands/menu/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/menu/pull.ts)_
1357
+ _See code: [src/commands/menu/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/menu/pull.ts)_
1269
1358
 
1270
1359
  ## `lps menu push [PATH]`
1271
1360
 
@@ -1273,7 +1362,7 @@ Push local nav menus and the active theme menu locations to WordPress. Each menu
1273
1362
 
1274
1363
  ```
1275
1364
  USAGE
1276
- $ lps menu push [PATH] [--env <value>] [-d] [-y]
1365
+ $ lps menu push [PATH] [--json] [--env <value>] [-d] [-y]
1277
1366
 
1278
1367
  ARGUMENTS
1279
1368
  [PATH] Path to menus directory (overrides project config)
@@ -1283,6 +1372,9 @@ FLAGS
1283
1372
  -y, --yes Answer yes to confirmation prompts
1284
1373
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1285
1374
 
1375
+ GLOBAL FLAGS
1376
+ --json Format output as json.
1377
+
1286
1378
  DESCRIPTION
1287
1379
  Push local nav menus and the active theme menu locations to WordPress. Each menu's post_type/taxonomy items are
1288
1380
  resolved by slug on the target environment, never by a raw id; an item whose target does not exist there fails the
@@ -1292,7 +1384,7 @@ EXAMPLES
1292
1384
  $ lps menu push
1293
1385
  ```
1294
1386
 
1295
- _See code: [src/commands/menu/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/menu/push.ts)_
1387
+ _See code: [src/commands/menu/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/menu/push.ts)_
1296
1388
 
1297
1389
  ## `lps menu rollback [PATH]`
1298
1390
 
@@ -1328,7 +1420,7 @@ EXAMPLES
1328
1420
  $ lps menu rollback --dry-run
1329
1421
  ```
1330
1422
 
1331
- _See code: [src/commands/menu/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/menu/rollback.ts)_
1423
+ _See code: [src/commands/menu/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/menu/rollback.ts)_
1332
1424
 
1333
1425
  ## `lps option add NAME`
1334
1426
 
@@ -1359,7 +1451,7 @@ EXAMPLES
1359
1451
  $ lps option add siteurl
1360
1452
  ```
1361
1453
 
1362
- _See code: [src/commands/option/add.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/option/add.ts)_
1454
+ _See code: [src/commands/option/add.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/option/add.ts)_
1363
1455
 
1364
1456
  ## `lps option diff [PATH]`
1365
1457
 
@@ -1391,7 +1483,7 @@ EXAMPLES
1391
1483
  $ lps option diff --env staging --against production
1392
1484
  ```
1393
1485
 
1394
- _See code: [src/commands/option/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/option/diff.ts)_
1486
+ _See code: [src/commands/option/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/option/diff.ts)_
1395
1487
 
1396
1488
  ## `lps option list`
1397
1489
 
@@ -1421,7 +1513,7 @@ EXAMPLES
1421
1513
  $ lps option list --no-core
1422
1514
  ```
1423
1515
 
1424
- _See code: [src/commands/option/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/option/list.ts)_
1516
+ _See code: [src/commands/option/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/option/list.ts)_
1425
1517
 
1426
1518
  ## `lps option pull [PATH]`
1427
1519
 
@@ -1450,7 +1542,7 @@ EXAMPLES
1450
1542
  $ lps option pull
1451
1543
  ```
1452
1544
 
1453
- _See code: [src/commands/option/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/option/pull.ts)_
1545
+ _See code: [src/commands/option/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/option/pull.ts)_
1454
1546
 
1455
1547
  ## `lps option push [PATH]`
1456
1548
 
@@ -1479,7 +1571,7 @@ EXAMPLES
1479
1571
  $ lps option push
1480
1572
  ```
1481
1573
 
1482
- _See code: [src/commands/option/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/option/push.ts)_
1574
+ _See code: [src/commands/option/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/option/push.ts)_
1483
1575
 
1484
1576
  ## `lps option remove NAME`
1485
1577
 
@@ -1512,7 +1604,7 @@ EXAMPLES
1512
1604
  $ lps option remove wpseo_titles --local-only
1513
1605
  ```
1514
1606
 
1515
- _See code: [src/commands/option/remove.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/option/remove.ts)_
1607
+ _See code: [src/commands/option/remove.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/option/remove.ts)_
1516
1608
 
1517
1609
  ## `lps option rollback [PATH]`
1518
1610
 
@@ -1548,7 +1640,7 @@ EXAMPLES
1548
1640
  $ lps option rollback --dry-run
1549
1641
  ```
1550
1642
 
1551
- _See code: [src/commands/option/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/option/rollback.ts)_
1643
+ _See code: [src/commands/option/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/option/rollback.ts)_
1552
1644
 
1553
1645
  ## `lps page diff [PATH]`
1554
1646
 
@@ -1579,7 +1671,7 @@ EXAMPLES
1579
1671
  $ lps page diff --env staging --against production
1580
1672
  ```
1581
1673
 
1582
- _See code: [src/commands/page/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/page/diff.ts)_
1674
+ _See code: [src/commands/page/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/page/diff.ts)_
1583
1675
 
1584
1676
  ## `lps page list`
1585
1677
 
@@ -1602,7 +1694,7 @@ EXAMPLES
1602
1694
  $ lps page list
1603
1695
  ```
1604
1696
 
1605
- _See code: [src/commands/page/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/page/list.ts)_
1697
+ _See code: [src/commands/page/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/page/list.ts)_
1606
1698
 
1607
1699
  ## `lps page push [SLUG]`
1608
1700
 
@@ -1635,7 +1727,7 @@ EXAMPLES
1635
1727
  $ lps page push --dry-run
1636
1728
  ```
1637
1729
 
1638
- _See code: [src/commands/page/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/page/push.ts)_
1730
+ _See code: [src/commands/page/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/page/push.ts)_
1639
1731
 
1640
1732
  ## `lps plugin add SLUG`
1641
1733
 
@@ -1667,7 +1759,7 @@ EXAMPLES
1667
1759
  $ lps plugin add contact-form-7 --dry-run
1668
1760
  ```
1669
1761
 
1670
- _See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/plugin/add.ts)_
1762
+ _See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/plugin/add.ts)_
1671
1763
 
1672
1764
  ## `lps plugin audit`
1673
1765
 
@@ -1690,33 +1782,37 @@ EXAMPLES
1690
1782
  $ lps plugin audit
1691
1783
  ```
1692
1784
 
1693
- _See code: [src/commands/plugin/audit.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/plugin/audit.ts)_
1785
+ _See code: [src/commands/plugin/audit.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/plugin/audit.ts)_
1694
1786
 
1695
1787
  ## `lps plugin pull`
1696
1788
 
1697
- Pull installed plugins from WordPress into loopress.json, pinned to their live versions
1789
+ Pull installed plugins from WordPress into loopress.json (or composer.json), pinned to their live versions. Plugins already tracked are refreshed; new ones are offered as a list to tick, so plugins that only belong on this environment (cache, security, backups) stay out of the project.
1698
1790
 
1699
1791
  ```
1700
1792
  USAGE
1701
- $ lps plugin pull [--json] [--env <value>] [-d]
1793
+ $ lps plugin pull [--json] [--env <value>] [-d] [-y] [--plugin <value>...]
1702
1794
 
1703
1795
  FLAGS
1704
- -d, --dry-run Show what would change without making changes
1705
- --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1796
+ -d, --dry-run Show what would change without making changes
1797
+ -y, --yes Answer yes to confirmation prompts
1798
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1799
+ --plugin=<value>... Start tracking this installed plugin too, without asking (repeatable)
1706
1800
 
1707
1801
  GLOBAL FLAGS
1708
1802
  --json Format output as json.
1709
1803
 
1710
1804
  DESCRIPTION
1711
- Pull installed plugins from WordPress into loopress.json, pinned to their live versions
1805
+ Pull installed plugins from WordPress into loopress.json (or composer.json), pinned to their live versions. Plugins
1806
+ already tracked are refreshed; new ones are offered as a list to tick, so plugins that only belong on this environment
1807
+ (cache, security, backups) stay out of the project.
1712
1808
 
1713
1809
  EXAMPLES
1714
1810
  $ lps plugin pull
1715
1811
 
1716
- $ lps plugin pull --dry-run
1812
+ $ lps plugin pull --env production --plugin query-monitor
1717
1813
  ```
1718
1814
 
1719
- _See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/plugin/pull.ts)_
1815
+ _See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/plugin/pull.ts)_
1720
1816
 
1721
1817
  ## `lps plugin push`
1722
1818
 
@@ -1749,7 +1845,7 @@ EXAMPLES
1749
1845
  $ lps plugin push --force --prune
1750
1846
  ```
1751
1847
 
1752
- _See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/plugin/push.ts)_
1848
+ _See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/plugin/push.ts)_
1753
1849
 
1754
1850
  ## `lps plugin status`
1755
1851
 
@@ -1772,7 +1868,7 @@ EXAMPLES
1772
1868
  $ lps plugin status
1773
1869
  ```
1774
1870
 
1775
- _See code: [src/commands/plugin/status.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/plugin/status.ts)_
1871
+ _See code: [src/commands/plugin/status.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/plugin/status.ts)_
1776
1872
 
1777
1873
  ## `lps project config`
1778
1874
 
@@ -1790,7 +1886,7 @@ EXAMPLES
1790
1886
  $ lps project config
1791
1887
  ```
1792
1888
 
1793
- _See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/project/config.ts)_
1889
+ _See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/project/config.ts)_
1794
1890
 
1795
1891
  ## `lps project list`
1796
1892
 
@@ -1810,7 +1906,7 @@ EXAMPLES
1810
1906
  $ lps project list
1811
1907
  ```
1812
1908
 
1813
- _See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/project/list.ts)_
1909
+ _See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/project/list.ts)_
1814
1910
 
1815
1911
  ## `lps project pull`
1816
1912
 
@@ -1827,7 +1923,7 @@ EXAMPLES
1827
1923
  $ lps project pull
1828
1924
  ```
1829
1925
 
1830
- _See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/project/pull.ts)_
1926
+ _See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/project/pull.ts)_
1831
1927
 
1832
1928
  ## `lps project push`
1833
1929
 
@@ -1847,7 +1943,7 @@ EXAMPLES
1847
1943
  $ lps project push
1848
1944
  ```
1849
1945
 
1850
- _See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/project/push.ts)_
1946
+ _See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/project/push.ts)_
1851
1947
 
1852
1948
  ## `lps project remove`
1853
1949
 
@@ -1864,7 +1960,7 @@ EXAMPLES
1864
1960
  $ lps project remove
1865
1961
  ```
1866
1962
 
1867
- _See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/project/remove.ts)_
1963
+ _See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/project/remove.ts)_
1868
1964
 
1869
1965
  ## `lps project rotate`
1870
1966
 
@@ -1886,7 +1982,7 @@ EXAMPLES
1886
1982
  $ lps project rotate --env staging
1887
1983
  ```
1888
1984
 
1889
- _See code: [src/commands/project/rotate.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/project/rotate.ts)_
1985
+ _See code: [src/commands/project/rotate.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/project/rotate.ts)_
1890
1986
 
1891
1987
  ## `lps project switch`
1892
1988
 
@@ -1903,7 +1999,7 @@ EXAMPLES
1903
1999
  $ lps project switch
1904
2000
  ```
1905
2001
 
1906
- _See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/project/switch.ts)_
2002
+ _See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/project/switch.ts)_
1907
2003
 
1908
2004
  ## `lps promote FROM TO`
1909
2005
 
@@ -1935,7 +2031,7 @@ EXAMPLES
1935
2031
  $ lps promote production staging --dry-run
1936
2032
  ```
1937
2033
 
1938
- _See code: [src/commands/promote.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/promote.ts)_
2034
+ _See code: [src/commands/promote.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/promote.ts)_
1939
2035
 
1940
2036
  ## `lps pull`
1941
2037
 
@@ -1965,7 +2061,7 @@ EXAMPLES
1965
2061
  $ lps pull --dry-run
1966
2062
  ```
1967
2063
 
1968
- _See code: [src/commands/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/pull.ts)_
2064
+ _See code: [src/commands/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/pull.ts)_
1969
2065
 
1970
2066
  ## `lps push`
1971
2067
 
@@ -1995,7 +2091,7 @@ EXAMPLES
1995
2091
  $ lps push --dry-run
1996
2092
  ```
1997
2093
 
1998
- _See code: [src/commands/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/push.ts)_
2094
+ _See code: [src/commands/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/push.ts)_
1999
2095
 
2000
2096
  ## `lps seo diff [PATH]`
2001
2097
 
@@ -2027,7 +2123,7 @@ EXAMPLES
2027
2123
  $ lps seo diff --env staging --against production
2028
2124
  ```
2029
2125
 
2030
- _See code: [src/commands/seo/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/seo/diff.ts)_
2126
+ _See code: [src/commands/seo/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/seo/diff.ts)_
2031
2127
 
2032
2128
  ## `lps seo list`
2033
2129
 
@@ -2053,7 +2149,7 @@ EXAMPLES
2053
2149
  $ lps seo list --post-type post
2054
2150
  ```
2055
2151
 
2056
- _See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/seo/list.ts)_
2152
+ _See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/seo/list.ts)_
2057
2153
 
2058
2154
  ## `lps seo pull [PATH]`
2059
2155
 
@@ -2061,7 +2157,7 @@ Pull SEO settings, post meta, and (if supported) redirects from WordPress
2061
2157
 
2062
2158
  ```
2063
2159
  USAGE
2064
- $ lps seo pull [PATH] [--env <value>] [-d] [-y] [--post-type <value>...]
2160
+ $ lps seo pull [PATH] [--json] [--env <value>] [-d] [-y] [--post-type <value>...]
2065
2161
 
2066
2162
  ARGUMENTS
2067
2163
  [PATH] Path to SEO directory (overrides project config)
@@ -2072,6 +2168,9 @@ FLAGS
2072
2168
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2073
2169
  --post-type=<value>... Limit post meta to specific post types
2074
2170
 
2171
+ GLOBAL FLAGS
2172
+ --json Format output as json.
2173
+
2075
2174
  DESCRIPTION
2076
2175
  Pull SEO settings, post meta, and (if supported) redirects from WordPress
2077
2176
 
@@ -2081,7 +2180,7 @@ EXAMPLES
2081
2180
  $ lps seo pull --post-type post --post-type page
2082
2181
  ```
2083
2182
 
2084
- _See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/seo/pull.ts)_
2183
+ _See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/seo/pull.ts)_
2085
2184
 
2086
2185
  ## `lps seo push [PATH]`
2087
2186
 
@@ -2089,7 +2188,7 @@ Push SEO settings, post meta, and redirects to WordPress. Local redirect files c
2089
2188
 
2090
2189
  ```
2091
2190
  USAGE
2092
- $ lps seo push [PATH] [--env <value>] [-d] [-y] [--allow-external-redirects]
2191
+ $ lps seo push [PATH] [--json] [--env <value>] [-d] [-y] [--allow-external-redirects]
2093
2192
 
2094
2193
  ARGUMENTS
2095
2194
  [PATH] Path to SEO directory (overrides project config)
@@ -2101,6 +2200,9 @@ FLAGS
2101
2200
  rejects an off-site `urlTo` so a stray push can't 301 traffic away.
2102
2201
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2103
2202
 
2203
+ GLOBAL FLAGS
2204
+ --json Format output as json.
2205
+
2104
2206
  DESCRIPTION
2105
2207
  Push SEO settings, post meta, and redirects to WordPress. Local redirect files created remotely are renamed on disk to
2106
2208
  the `<id>-<slug>` convention. Fails clearly per file if the active SEO plugin does not support redirects.
@@ -2111,7 +2213,7 @@ EXAMPLES
2111
2213
  $ lps seo push --allow-external-redirects
2112
2214
  ```
2113
2215
 
2114
- _See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/seo/push.ts)_
2216
+ _See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/seo/push.ts)_
2115
2217
 
2116
2218
  ## `lps seo rollback [PATH]`
2117
2219
 
@@ -2147,7 +2249,7 @@ EXAMPLES
2147
2249
  $ lps seo rollback --dry-run
2148
2250
  ```
2149
2251
 
2150
- _See code: [src/commands/seo/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/seo/rollback.ts)_
2252
+ _See code: [src/commands/seo/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/seo/rollback.ts)_
2151
2253
 
2152
2254
  ## `lps snippet diff [PATH]`
2153
2255
 
@@ -2178,7 +2280,7 @@ EXAMPLES
2178
2280
  $ lps snippet diff --env staging --against production
2179
2281
  ```
2180
2282
 
2181
- _See code: [src/commands/snippet/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/snippet/diff.ts)_
2283
+ _See code: [src/commands/snippet/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/snippet/diff.ts)_
2182
2284
 
2183
2285
  ## `lps snippet list`
2184
2286
 
@@ -2201,7 +2303,7 @@ EXAMPLES
2201
2303
  $ lps snippet list
2202
2304
  ```
2203
2305
 
2204
- _See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/snippet/list.ts)_
2306
+ _See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/snippet/list.ts)_
2205
2307
 
2206
2308
  ## `lps snippet publish [PATH]`
2207
2309
 
@@ -2221,10 +2323,10 @@ DESCRIPTION
2221
2323
  EXAMPLES
2222
2324
  $ lps snippet publish
2223
2325
 
2224
- $ lps snippet publish --path ./snippets
2326
+ $ lps snippet publish ./snippets
2225
2327
  ```
2226
2328
 
2227
- _See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/snippet/publish.ts)_
2329
+ _See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/snippet/publish.ts)_
2228
2330
 
2229
2331
  ## `lps snippet pull [PATH]`
2230
2332
 
@@ -2251,10 +2353,10 @@ DESCRIPTION
2251
2353
  EXAMPLES
2252
2354
  $ lps snippet pull
2253
2355
 
2254
- $ lps snippet pull --path ./snippets
2356
+ $ lps snippet pull ./snippets
2255
2357
  ```
2256
2358
 
2257
- _See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/snippet/pull.ts)_
2359
+ _See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/snippet/pull.ts)_
2258
2360
 
2259
2361
  ## `lps snippet push [PATH]`
2260
2362
 
@@ -2282,10 +2384,10 @@ DESCRIPTION
2282
2384
  EXAMPLES
2283
2385
  $ lps snippet push
2284
2386
 
2285
- $ lps snippet push --path ./snippets
2387
+ $ lps snippet push ./snippets
2286
2388
  ```
2287
2389
 
2288
- _See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/snippet/push.ts)_
2390
+ _See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/snippet/push.ts)_
2289
2391
 
2290
2392
  ## `lps snippet rollback [PATH]`
2291
2393
 
@@ -2321,7 +2423,7 @@ EXAMPLES
2321
2423
  $ lps snippet rollback --dry-run
2322
2424
  ```
2323
2425
 
2324
- _See code: [src/commands/snippet/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/snippet/rollback.ts)_
2426
+ _See code: [src/commands/snippet/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/snippet/rollback.ts)_
2325
2427
 
2326
2428
  ## `lps status`
2327
2429
 
@@ -2346,7 +2448,7 @@ EXAMPLES
2346
2448
  $ lps status --env staging
2347
2449
  ```
2348
2450
 
2349
- _See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/status.ts)_
2451
+ _See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/status.ts)_
2350
2452
 
2351
2453
  ## `lps telemetry disable`
2352
2454
 
@@ -2363,7 +2465,7 @@ EXAMPLES
2363
2465
  $ lps telemetry disable
2364
2466
  ```
2365
2467
 
2366
- _See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/telemetry/disable.ts)_
2468
+ _See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/telemetry/disable.ts)_
2367
2469
 
2368
2470
  ## `lps telemetry enable`
2369
2471
 
@@ -2380,88 +2482,7 @@ EXAMPLES
2380
2482
  $ lps telemetry enable
2381
2483
  ```
2382
2484
 
2383
- _See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/telemetry/enable.ts)_
2384
-
2385
- ## `lps template diff`
2386
-
2387
- Show what differs in block templates and parts between your local files and a WordPress environment, or between two environments. Templates and parts edited in the Site Editor show up too.
2388
-
2389
- ```
2390
- USAGE
2391
- $ lps template diff [--json] [--env <value>] [--against <value>]
2392
-
2393
- FLAGS
2394
- --against=<value> Compare the primary environment against this second environment instead of against local files
2395
- --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2396
-
2397
- GLOBAL FLAGS
2398
- --json Format output as json.
2399
-
2400
- DESCRIPTION
2401
- Show what differs in block templates and parts between your local files and a WordPress environment, or between two
2402
- environments. Templates and parts edited in the Site Editor show up too.
2403
-
2404
- EXAMPLES
2405
- $ lps template diff
2406
-
2407
- $ lps template diff --env staging
2408
-
2409
- $ lps template diff --env staging --against production
2410
- ```
2411
-
2412
- _See code: [src/commands/template/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/template/diff.ts)_
2413
-
2414
- ## `lps template list`
2415
-
2416
- Show the Loopress child theme of the active block theme: its templates, parts, and those edited in the Site Editor
2417
-
2418
- ```
2419
- USAGE
2420
- $ lps template list [--json] [--env <value>]
2421
-
2422
- FLAGS
2423
- --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2424
-
2425
- GLOBAL FLAGS
2426
- --json Format output as json.
2427
-
2428
- DESCRIPTION
2429
- Show the Loopress child theme of the active block theme: its templates, parts, and those edited in the Site Editor
2430
-
2431
- EXAMPLES
2432
- $ lps template list
2433
- ```
2434
-
2435
- _See code: [src/commands/template/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/template/list.ts)_
2436
-
2437
- ## `lps template push`
2438
-
2439
- Push block templates (templates/<slug>.html) and template parts (parts/<slug>.html) as the files of a child theme of the active block theme, <parent>-loopress. The child mirrors the project: files removed locally are removed from it. It is never activated for you.
2440
-
2441
- ```
2442
- USAGE
2443
- $ lps template push [--json] [--env <value>] [-d] [-y]
2444
-
2445
- FLAGS
2446
- -d, --dry-run Show what would change without making changes
2447
- -y, --yes Answer yes to confirmation prompts
2448
- --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2449
-
2450
- GLOBAL FLAGS
2451
- --json Format output as json.
2452
-
2453
- DESCRIPTION
2454
- Push block templates (templates/<slug>.html) and template parts (parts/<slug>.html) as the files of a child theme of
2455
- the active block theme, <parent>-loopress. The child mirrors the project: files removed locally are removed from it.
2456
- It is never activated for you.
2457
-
2458
- EXAMPLES
2459
- $ lps template push
2460
-
2461
- $ lps template push --dry-run
2462
- ```
2463
-
2464
- _See code: [src/commands/template/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/template/push.ts)_
2485
+ _See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/telemetry/enable.ts)_
2465
2486
 
2466
2487
  ## `lps theme add SLUG`
2467
2488
 
@@ -2491,11 +2512,11 @@ EXAMPLES
2491
2512
  $ lps theme add generatepress --version 3.4.0
2492
2513
  ```
2493
2514
 
2494
- _See code: [src/commands/theme/add.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/theme/add.ts)_
2515
+ _See code: [src/commands/theme/add.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/add.ts)_
2495
2516
 
2496
2517
  ## `lps theme pull`
2497
2518
 
2498
- Pull installed themes from WordPress into loopress.json, pinned to their live versions
2519
+ Pull everything theme related from WordPress: theme versions and Global Styles
2499
2520
 
2500
2521
  ```
2501
2522
  USAGE
@@ -2509,17 +2530,21 @@ GLOBAL FLAGS
2509
2530
  --json Format output as json.
2510
2531
 
2511
2532
  DESCRIPTION
2512
- Pull installed themes from WordPress into loopress.json, pinned to their live versions
2533
+ Pull everything theme related from WordPress: theme versions and Global Styles
2513
2534
 
2514
2535
  EXAMPLES
2515
2536
  $ lps theme pull
2537
+
2538
+ $ lps theme pull --env staging
2539
+
2540
+ $ lps theme pull --dry-run
2516
2541
  ```
2517
2542
 
2518
- _See code: [src/commands/theme/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/theme/pull.ts)_
2543
+ _See code: [src/commands/theme/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/pull.ts)_
2519
2544
 
2520
2545
  ## `lps theme push`
2521
2546
 
2522
- Install themes on WordPress to match loopress.json (versions only, never switches the active theme)
2547
+ Push everything theme related to WordPress: theme versions, templates and parts, then Global Styles
2523
2548
 
2524
2549
  ```
2525
2550
  USAGE
@@ -2529,21 +2554,23 @@ FLAGS
2529
2554
  -d, --dry-run Show what would change without making changes
2530
2555
  -y, --yes Answer yes to confirmation prompts
2531
2556
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2532
- --force Allow downgrades and take over themes installed outside Loopress
2557
+ --force Passed to `lps theme version push`
2533
2558
 
2534
2559
  GLOBAL FLAGS
2535
2560
  --json Format output as json.
2536
2561
 
2537
2562
  DESCRIPTION
2538
- Install themes on WordPress to match loopress.json (versions only, never switches the active theme)
2563
+ Push everything theme related to WordPress: theme versions, templates and parts, then Global Styles
2539
2564
 
2540
2565
  EXAMPLES
2541
2566
  $ lps theme push
2542
2567
 
2543
- $ lps theme push --force
2568
+ $ lps theme push --env staging
2569
+
2570
+ $ lps theme push --dry-run
2544
2571
  ```
2545
2572
 
2546
- _See code: [src/commands/theme/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/theme/push.ts)_
2573
+ _See code: [src/commands/theme/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/push.ts)_
2547
2574
 
2548
2575
  ## `lps theme status`
2549
2576
 
@@ -2566,7 +2593,7 @@ EXAMPLES
2566
2593
  $ lps theme status
2567
2594
  ```
2568
2595
 
2569
- _See code: [src/commands/theme/status.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/theme/status.ts)_
2596
+ _See code: [src/commands/theme/status.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/status.ts)_
2570
2597
 
2571
2598
  ## `lps theme style diff [PATH]`
2572
2599
 
@@ -2598,7 +2625,7 @@ EXAMPLES
2598
2625
  $ lps theme style diff --env staging --against production
2599
2626
  ```
2600
2627
 
2601
- _See code: [src/commands/theme/style/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/theme/style/diff.ts)_
2628
+ _See code: [src/commands/theme/style/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/style/diff.ts)_
2602
2629
 
2603
2630
  ## `lps theme style pull [PATH]`
2604
2631
 
@@ -2606,7 +2633,7 @@ Pull the active block theme's Global Styles customizations (Site Editor > Styles
2606
2633
 
2607
2634
  ```
2608
2635
  USAGE
2609
- $ lps theme style pull [PATH] [--env <value>] [-d]
2636
+ $ lps theme style pull [PATH] [--json] [--env <value>] [-d]
2610
2637
 
2611
2638
  ARGUMENTS
2612
2639
  [PATH] Path to theme styles directory (overrides project config)
@@ -2615,6 +2642,9 @@ FLAGS
2615
2642
  -d, --dry-run Show what would change without making changes
2616
2643
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2617
2644
 
2645
+ GLOBAL FLAGS
2646
+ --json Format output as json.
2647
+
2618
2648
  DESCRIPTION
2619
2649
  Pull the active block theme's Global Styles customizations (Site Editor > Styles) from WordPress into a local file
2620
2650
 
@@ -2622,7 +2652,7 @@ EXAMPLES
2622
2652
  $ lps theme style pull
2623
2653
  ```
2624
2654
 
2625
- _See code: [src/commands/theme/style/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/theme/style/pull.ts)_
2655
+ _See code: [src/commands/theme/style/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/style/pull.ts)_
2626
2656
 
2627
2657
  ## `lps theme style push [PATH]`
2628
2658
 
@@ -2630,15 +2660,19 @@ Push the local Global Styles file to the active block theme's Site Editor > Styl
2630
2660
 
2631
2661
  ```
2632
2662
  USAGE
2633
- $ lps theme style push [PATH] [--env <value>] [-d]
2663
+ $ lps theme style push [PATH] [--json] [--env <value>] [-d] [-y]
2634
2664
 
2635
2665
  ARGUMENTS
2636
2666
  [PATH] Path to theme styles directory (overrides project config)
2637
2667
 
2638
2668
  FLAGS
2639
2669
  -d, --dry-run Show what would change without making changes
2670
+ -y, --yes Answer yes to confirmation prompts
2640
2671
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2641
2672
 
2673
+ GLOBAL FLAGS
2674
+ --json Format output as json.
2675
+
2642
2676
  DESCRIPTION
2643
2677
  Push the local Global Styles file to the active block theme's Site Editor > Styles on WordPress
2644
2678
 
@@ -2646,7 +2680,7 @@ EXAMPLES
2646
2680
  $ lps theme style push
2647
2681
  ```
2648
2682
 
2649
- _See code: [src/commands/theme/style/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/theme/style/push.ts)_
2683
+ _See code: [src/commands/theme/style/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/style/push.ts)_
2650
2684
 
2651
2685
  ## `lps theme style rollback [PATH]`
2652
2686
 
@@ -2682,7 +2716,140 @@ EXAMPLES
2682
2716
  $ lps theme style rollback --dry-run
2683
2717
  ```
2684
2718
 
2685
- _See code: [src/commands/theme/style/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/theme/style/rollback.ts)_
2719
+ _See code: [src/commands/theme/style/rollback.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/style/rollback.ts)_
2720
+
2721
+ ## `lps theme template diff`
2722
+
2723
+ Show what differs in block templates and parts between your local files and a WordPress environment, or between two environments. Templates and parts edited in the Site Editor show up too.
2724
+
2725
+ ```
2726
+ USAGE
2727
+ $ lps theme template diff [--json] [--env <value>] [--against <value>]
2728
+
2729
+ FLAGS
2730
+ --against=<value> Compare the primary environment against this second environment instead of against local files
2731
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2732
+
2733
+ GLOBAL FLAGS
2734
+ --json Format output as json.
2735
+
2736
+ DESCRIPTION
2737
+ Show what differs in block templates and parts between your local files and a WordPress environment, or between two
2738
+ environments. Templates and parts edited in the Site Editor show up too.
2739
+
2740
+ EXAMPLES
2741
+ $ lps theme template diff
2742
+
2743
+ $ lps theme template diff --env staging
2744
+
2745
+ $ lps theme template diff --env staging --against production
2746
+ ```
2747
+
2748
+ _See code: [src/commands/theme/template/diff.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/template/diff.ts)_
2749
+
2750
+ ## `lps theme template list`
2751
+
2752
+ Show the Loopress child theme of the active block theme: its templates, parts, and those edited in the Site Editor
2753
+
2754
+ ```
2755
+ USAGE
2756
+ $ lps theme template list [--json] [--env <value>]
2757
+
2758
+ FLAGS
2759
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2760
+
2761
+ GLOBAL FLAGS
2762
+ --json Format output as json.
2763
+
2764
+ DESCRIPTION
2765
+ Show the Loopress child theme of the active block theme: its templates, parts, and those edited in the Site Editor
2766
+
2767
+ EXAMPLES
2768
+ $ lps theme template list
2769
+ ```
2770
+
2771
+ _See code: [src/commands/theme/template/list.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/template/list.ts)_
2772
+
2773
+ ## `lps theme template push`
2774
+
2775
+ Push block templates (templates/<slug>.html) and template parts (parts/<slug>.html) as the files of a child theme of the active block theme, <parent>-loopress. The child mirrors the project: files removed locally are removed from it. It is never activated for you.
2776
+
2777
+ ```
2778
+ USAGE
2779
+ $ lps theme template push [--json] [--env <value>] [-d] [-y]
2780
+
2781
+ FLAGS
2782
+ -d, --dry-run Show what would change without making changes
2783
+ -y, --yes Answer yes to confirmation prompts
2784
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2785
+
2786
+ GLOBAL FLAGS
2787
+ --json Format output as json.
2788
+
2789
+ DESCRIPTION
2790
+ Push block templates (templates/<slug>.html) and template parts (parts/<slug>.html) as the files of a child theme of
2791
+ the active block theme, <parent>-loopress. The child mirrors the project: files removed locally are removed from it.
2792
+ It is never activated for you.
2793
+
2794
+ EXAMPLES
2795
+ $ lps theme template push
2796
+
2797
+ $ lps theme template push --dry-run
2798
+ ```
2799
+
2800
+ _See code: [src/commands/theme/template/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/template/push.ts)_
2801
+
2802
+ ## `lps theme version pull`
2803
+
2804
+ Pull installed themes from WordPress into loopress.json, pinned to their live versions
2805
+
2806
+ ```
2807
+ USAGE
2808
+ $ lps theme version pull [--json] [--env <value>] [-d]
2809
+
2810
+ FLAGS
2811
+ -d, --dry-run Show what would change without making changes
2812
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2813
+
2814
+ GLOBAL FLAGS
2815
+ --json Format output as json.
2816
+
2817
+ DESCRIPTION
2818
+ Pull installed themes from WordPress into loopress.json, pinned to their live versions
2819
+
2820
+ EXAMPLES
2821
+ $ lps theme version pull
2822
+ ```
2823
+
2824
+ _See code: [src/commands/theme/version/pull.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/version/pull.ts)_
2825
+
2826
+ ## `lps theme version push`
2827
+
2828
+ Install themes on WordPress to match loopress.json (versions only, never switches the active theme)
2829
+
2830
+ ```
2831
+ USAGE
2832
+ $ lps theme version push [--json] [--env <value>] [-d] [-y] [--force]
2833
+
2834
+ FLAGS
2835
+ -d, --dry-run Show what would change without making changes
2836
+ -y, --yes Answer yes to confirmation prompts
2837
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
2838
+ --force Allow downgrades and take over themes installed outside Loopress
2839
+
2840
+ GLOBAL FLAGS
2841
+ --json Format output as json.
2842
+
2843
+ DESCRIPTION
2844
+ Install themes on WordPress to match loopress.json (versions only, never switches the active theme)
2845
+
2846
+ EXAMPLES
2847
+ $ lps theme version push
2848
+
2849
+ $ lps theme version push --force
2850
+ ```
2851
+
2852
+ _See code: [src/commands/theme/version/push.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/theme/version/push.ts)_
2686
2853
 
2687
2854
  ## `lps validate`
2688
2855
 
@@ -2702,5 +2869,5 @@ EXAMPLES
2702
2869
  $ lps validate
2703
2870
  ```
2704
2871
 
2705
- _See code: [src/commands/validate.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.28.0/cli/src/commands/validate.ts)_
2872
+ _See code: [src/commands/validate.ts](https://github.com/loopress/loopress/blob/%40loopress%2Fcli%400.29.0/cli/src/commands/validate.ts)_
2706
2873
  <!-- commandsstop -->