@loopress/cli 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +335 -58
  2. package/dist/commands/app/list.d.ts +17 -0
  3. package/dist/commands/app/list.js +35 -0
  4. package/dist/commands/app/pull.d.ts +27 -0
  5. package/dist/commands/app/pull.js +94 -0
  6. package/dist/commands/app/push.d.ts +28 -0
  7. package/dist/commands/app/push.js +130 -0
  8. package/dist/commands/app/remove.d.ts +20 -0
  9. package/dist/commands/app/remove.js +42 -0
  10. package/dist/commands/composer/push.d.ts +1 -0
  11. package/dist/commands/composer/push.js +43 -19
  12. package/dist/commands/init.js +1 -0
  13. package/dist/commands/plugin/add.d.ts +1 -0
  14. package/dist/commands/plugin/add.js +18 -8
  15. package/dist/commands/plugin/audit.d.ts +30 -0
  16. package/dist/commands/plugin/audit.js +138 -0
  17. package/dist/commands/plugin/pull.d.ts +1 -2
  18. package/dist/commands/plugin/pull.js +11 -11
  19. package/dist/commands/plugin/push.d.ts +14 -8
  20. package/dist/commands/plugin/push.js +168 -67
  21. package/dist/commands/plugin/status.d.ts +22 -0
  22. package/dist/commands/plugin/status.js +65 -0
  23. package/dist/commands/theme/add.d.ts +13 -0
  24. package/dist/commands/theme/add.js +35 -0
  25. package/dist/commands/theme/pull.d.ts +21 -0
  26. package/dist/commands/theme/pull.js +37 -0
  27. package/dist/commands/theme/push.d.ts +23 -0
  28. package/dist/commands/theme/push.js +130 -0
  29. package/dist/commands/theme/status.d.ts +20 -0
  30. package/dist/commands/theme/status.js +51 -0
  31. package/dist/lib/app-manifest.d.ts +36 -0
  32. package/dist/lib/app-manifest.js +162 -0
  33. package/dist/lib/base.d.ts +1 -0
  34. package/dist/lib/base.js +5 -0
  35. package/dist/types/plugin.d.ts +1 -0
  36. package/dist/types/project-config.generated.d.ts +11 -1
  37. package/dist/utils/plugin-sync.d.ts +26 -0
  38. package/dist/utils/plugin-sync.js +31 -0
  39. package/dist/utils/plugins.d.ts +15 -2
  40. package/dist/utils/plugins.js +57 -12
  41. package/dist/utils/themes.d.ts +30 -0
  42. package/dist/utils/themes.js +29 -0
  43. package/dist/utils/version.d.ts +2 -0
  44. package/dist/utils/version.js +21 -0
  45. package/oclif.manifest.json +714 -68
  46. package/package.json +22 -18
  47. package/schemas/project-config.schema.json +22 -4
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.22.0 linux-x64 node-v24.19.0
24
+ @loopress/cli/0.23.0 linux-x64 node-v24.20.0
25
25
  $ lps --help [COMMAND]
26
26
  USAGE
27
27
  $ lps COMMAND
@@ -54,6 +54,10 @@ report.
54
54
  * [`lps api publish [PATH]`](#lps-api-publish-path)
55
55
  * [`lps api pull [PATH]`](#lps-api-pull-path)
56
56
  * [`lps api push [PATH]`](#lps-api-push-path)
57
+ * [`lps app list`](#lps-app-list)
58
+ * [`lps app pull [PATH]`](#lps-app-pull-path)
59
+ * [`lps app push [NAME]`](#lps-app-push-name)
60
+ * [`lps app remove NAME`](#lps-app-remove-name)
57
61
  * [`lps composer init`](#lps-composer-init)
58
62
  * [`lps composer pull`](#lps-composer-pull)
59
63
  * [`lps composer push`](#lps-composer-push)
@@ -70,8 +74,10 @@ report.
70
74
  * [`lps page pull [PATH]`](#lps-page-pull-path)
71
75
  * [`lps page push [PATH]`](#lps-page-push-path)
72
76
  * [`lps plugin add SLUG`](#lps-plugin-add-slug)
77
+ * [`lps plugin audit`](#lps-plugin-audit)
73
78
  * [`lps plugin pull`](#lps-plugin-pull)
74
79
  * [`lps plugin push`](#lps-plugin-push)
80
+ * [`lps plugin status`](#lps-plugin-status)
75
81
  * [`lps project config`](#lps-project-config)
76
82
  * [`lps project list`](#lps-project-list)
77
83
  * [`lps project pull`](#lps-project-pull)
@@ -92,6 +98,10 @@ report.
92
98
  * [`lps status`](#lps-status)
93
99
  * [`lps telemetry disable`](#lps-telemetry-disable)
94
100
  * [`lps telemetry enable`](#lps-telemetry-enable)
101
+ * [`lps theme add SLUG`](#lps-theme-add-slug)
102
+ * [`lps theme pull`](#lps-theme-pull)
103
+ * [`lps theme push`](#lps-theme-push)
104
+ * [`lps theme status`](#lps-theme-status)
95
105
  * [`lps validate`](#lps-validate)
96
106
 
97
107
  ## `lps acf list`
@@ -119,7 +129,7 @@ EXAMPLES
119
129
  $ lps acf list --type field-groups
120
130
  ```
121
131
 
122
- _See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/acf/list.ts)_
132
+ _See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/acf/list.ts)_
123
133
 
124
134
  ## `lps acf pull [PATH]`
125
135
 
@@ -148,7 +158,7 @@ EXAMPLES
148
158
  $ lps acf pull --type field-groups
149
159
  ```
150
160
 
151
- _See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/acf/pull.ts)_
161
+ _See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/acf/pull.ts)_
152
162
 
153
163
  ## `lps acf push [PATH]`
154
164
 
@@ -177,7 +187,7 @@ EXAMPLES
177
187
  $ lps acf push --type field-groups
178
188
  ```
179
189
 
180
- _See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/acf/push.ts)_
190
+ _See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/acf/push.ts)_
181
191
 
182
192
  ## `lps api list`
183
193
 
@@ -200,7 +210,7 @@ EXAMPLES
200
210
  $ lps api list
201
211
  ```
202
212
 
203
- _See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/api/list.ts)_
213
+ _See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/api/list.ts)_
204
214
 
205
215
  ## `lps api publish [PATH]`
206
216
 
@@ -223,7 +233,7 @@ EXAMPLES
223
233
  $ lps api publish --path ./api
224
234
  ```
225
235
 
226
- _See code: [src/commands/api/publish.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/api/publish.ts)_
236
+ _See code: [src/commands/api/publish.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/api/publish.ts)_
227
237
 
228
238
  ## `lps api pull [PATH]`
229
239
 
@@ -253,7 +263,7 @@ EXAMPLES
253
263
  $ lps api pull --path ./api
254
264
  ```
255
265
 
256
- _See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/api/pull.ts)_
266
+ _See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/api/pull.ts)_
257
267
 
258
268
  ## `lps api push [PATH]`
259
269
 
@@ -283,7 +293,118 @@ EXAMPLES
283
293
  $ lps api push --path ./api
284
294
  ```
285
295
 
286
- _See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/api/push.ts)_
296
+ _See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/api/push.ts)_
297
+
298
+ ## `lps app list`
299
+
300
+ List single-page apps deployed to WordPress
301
+
302
+ ```
303
+ USAGE
304
+ $ lps app list [--json] [--env <value>]
305
+
306
+ FLAGS
307
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
308
+
309
+ GLOBAL FLAGS
310
+ --json Format output as json.
311
+
312
+ DESCRIPTION
313
+ List single-page apps deployed to WordPress
314
+
315
+ EXAMPLES
316
+ $ lps app list
317
+ ```
318
+
319
+ _See code: [src/commands/app/list.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/app/list.ts)_
320
+
321
+ ## `lps app pull [PATH]`
322
+
323
+ Pull single-page app bundles from WordPress into local files
324
+
325
+ ```
326
+ USAGE
327
+ $ lps app pull [PATH] [--json] [--env <value>] [-d] [-y]
328
+
329
+ ARGUMENTS
330
+ [PATH] Path to apps directory (overrides project config)
331
+
332
+ FLAGS
333
+ -d, --dry-run Show what would change without making changes
334
+ -y, --yes Answer yes to confirmation prompts
335
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
336
+
337
+ GLOBAL FLAGS
338
+ --json Format output as json.
339
+
340
+ DESCRIPTION
341
+ Pull single-page app bundles from WordPress into local files
342
+
343
+ EXAMPLES
344
+ $ lps app pull
345
+ ```
346
+
347
+ _See code: [src/commands/app/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/app/pull.ts)_
348
+
349
+ ## `lps app push [NAME]`
350
+
351
+ Push built single-page app bundles to WordPress. Each app is an `apps/<name>/` directory holding a loopress.app.json and a built dist/ folder. Only files whose content changed are uploaded.
352
+
353
+ ```
354
+ USAGE
355
+ $ lps app push [NAME] [--json] [--env <value>] [-d] [-y]
356
+
357
+ ARGUMENTS
358
+ [NAME] Push only this app (defaults to every app in the directory)
359
+
360
+ FLAGS
361
+ -d, --dry-run Show what would change without making changes
362
+ -y, --yes Answer yes to confirmation prompts
363
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
364
+
365
+ GLOBAL FLAGS
366
+ --json Format output as json.
367
+
368
+ DESCRIPTION
369
+ Push built single-page app bundles to WordPress. Each app is an `apps/<name>/` directory holding a loopress.app.json
370
+ and a built dist/ folder. Only files whose content changed are uploaded.
371
+
372
+ EXAMPLES
373
+ $ lps app push
374
+
375
+ $ lps app push search
376
+ ```
377
+
378
+ _See code: [src/commands/app/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/app/push.ts)_
379
+
380
+ ## `lps app remove NAME`
381
+
382
+ Remove a single-page app from WordPress: deletes its bundle from wp-content/loopress/apps/ and unregisters the shortcode. Local files are left untouched.
383
+
384
+ ```
385
+ USAGE
386
+ $ lps app remove NAME [--json] [--env <value>] [-d] [-y]
387
+
388
+ ARGUMENTS
389
+ NAME App to remove from WordPress
390
+
391
+ FLAGS
392
+ -d, --dry-run Show what would change without making changes
393
+ -y, --yes Answer yes to confirmation prompts
394
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
395
+
396
+ GLOBAL FLAGS
397
+ --json Format output as json.
398
+
399
+ DESCRIPTION
400
+ Remove a single-page app from WordPress: deletes its bundle from wp-content/loopress/apps/ and unregisters the
401
+ shortcode. Local files are left untouched.
402
+
403
+ EXAMPLES
404
+ $ lps app remove search
405
+ ```
406
+
407
+ _See code: [src/commands/app/remove.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/app/remove.ts)_
287
408
 
288
409
  ## `lps composer init`
289
410
 
@@ -306,7 +427,7 @@ EXAMPLES
306
427
  $ lps composer init --dry-run
307
428
  ```
308
429
 
309
- _See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/composer/init.ts)_
430
+ _See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/composer/init.ts)_
310
431
 
311
432
  ## `lps composer pull`
312
433
 
@@ -332,26 +453,27 @@ EXAMPLES
332
453
  $ lps composer pull --dry-run
333
454
  ```
334
455
 
335
- _See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/composer/pull.ts)_
456
+ _See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/composer/pull.ts)_
336
457
 
337
458
  ## `lps composer push`
338
459
 
339
- Push composer.json and composer.lock to WordPress and run composer install
460
+ Push composer.json (and composer.lock, if present) to WordPress and run Composer
340
461
 
341
462
  ```
342
463
  USAGE
343
- $ lps composer push [--json] [--env <value>] [-d] [-y]
464
+ $ lps composer push [--json] [--env <value>] [-d] [-y] [--force]
344
465
 
345
466
  FLAGS
346
467
  -d, --dry-run Show what would change without making changes
347
468
  -y, --yes Answer yes to confirmation prompts
348
469
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
470
+ --force Allow downgrades and take over plugins/themes installed outside Loopress
349
471
 
350
472
  GLOBAL FLAGS
351
473
  --json Format output as json.
352
474
 
353
475
  DESCRIPTION
354
- Push composer.json and composer.lock to WordPress and run composer install
476
+ Push composer.json (and composer.lock, if present) to WordPress and run Composer
355
477
 
356
478
  EXAMPLES
357
479
  $ lps composer push
@@ -359,7 +481,7 @@ EXAMPLES
359
481
  $ lps composer push --dry-run
360
482
  ```
361
483
 
362
- _See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/composer/push.ts)_
484
+ _See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/composer/push.ts)_
363
485
 
364
486
  ## `lps dev`
365
487
 
@@ -385,7 +507,7 @@ EXAMPLES
385
507
  $ lps dev --skip=plugins
386
508
  ```
387
509
 
388
- _See code: [src/commands/dev.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/dev.ts)_
510
+ _See code: [src/commands/dev.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/dev.ts)_
389
511
 
390
512
  ## `lps doctor`
391
513
 
@@ -407,7 +529,7 @@ EXAMPLES
407
529
  $ lps doctor --env production
408
530
  ```
409
531
 
410
- _See code: [src/commands/doctor.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/doctor.ts)_
532
+ _See code: [src/commands/doctor.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/doctor.ts)_
411
533
 
412
534
  ## `lps form list`
413
535
 
@@ -430,7 +552,7 @@ EXAMPLES
430
552
  $ lps form list
431
553
  ```
432
554
 
433
- _See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/form/list.ts)_
555
+ _See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/form/list.ts)_
434
556
 
435
557
  ## `lps form pull [PATH]`
436
558
 
@@ -455,7 +577,7 @@ EXAMPLES
455
577
  $ lps form pull
456
578
  ```
457
579
 
458
- _See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/form/pull.ts)_
580
+ _See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/form/pull.ts)_
459
581
 
460
582
  ## `lps form push [PATH]`
461
583
 
@@ -481,7 +603,7 @@ EXAMPLES
481
603
  $ lps form push
482
604
  ```
483
605
 
484
- _See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/form/push.ts)_
606
+ _See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/form/push.ts)_
485
607
 
486
608
  ## `lps help [COMMAND]`
487
609
 
@@ -501,7 +623,7 @@ DESCRIPTION
501
623
  Display help for lps.
502
624
  ```
503
625
 
504
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.3.0/src/commands/help.ts)_
626
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/7.0.0/src/commands/help.ts)_
505
627
 
506
628
  ## `lps init`
507
629
 
@@ -518,7 +640,7 @@ EXAMPLES
518
640
  $ lps init
519
641
  ```
520
642
 
521
- _See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/init.ts)_
643
+ _See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/init.ts)_
522
644
 
523
645
  ## `lps login`
524
646
 
@@ -535,7 +657,7 @@ EXAMPLES
535
657
  $ lps login
536
658
  ```
537
659
 
538
- _See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/login.ts)_
660
+ _See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/login.ts)_
539
661
 
540
662
  ## `lps logout`
541
663
 
@@ -552,7 +674,7 @@ EXAMPLES
552
674
  $ lps logout
553
675
  ```
554
676
 
555
- _See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/logout.ts)_
677
+ _See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/logout.ts)_
556
678
 
557
679
  ## `lps page list`
558
680
 
@@ -575,7 +697,7 @@ EXAMPLES
575
697
  $ lps page list
576
698
  ```
577
699
 
578
- _See code: [src/commands/page/list.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/page/list.ts)_
700
+ _See code: [src/commands/page/list.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/page/list.ts)_
579
701
 
580
702
  ## `lps page pull [PATH]`
581
703
 
@@ -603,7 +725,7 @@ EXAMPLES
603
725
  $ lps page pull
604
726
  ```
605
727
 
606
- _See code: [src/commands/page/pull.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/page/pull.ts)_
728
+ _See code: [src/commands/page/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/page/pull.ts)_
607
729
 
608
730
  ## `lps page push [PATH]`
609
731
 
@@ -631,7 +753,7 @@ EXAMPLES
631
753
  $ lps page push
632
754
  ```
633
755
 
634
- _See code: [src/commands/page/push.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/page/push.ts)_
756
+ _See code: [src/commands/page/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/page/push.ts)_
635
757
 
636
758
  ## `lps plugin add SLUG`
637
759
 
@@ -639,14 +761,15 @@ Add a WordPress.org plugin to loopress.json
639
761
 
640
762
  ```
641
763
  USAGE
642
- $ lps plugin add SLUG [--env <value>] [-d]
764
+ $ lps plugin add SLUG [--env <value>] [-d] [--version <value>]
643
765
 
644
766
  ARGUMENTS
645
767
  SLUG Plugin slug on WordPress.org
646
768
 
647
769
  FLAGS
648
- -d, --dry-run Show what would change without making changes
649
- --env=<value> Target environment by name, overriding the globally active one (lps project switch)
770
+ -d, --dry-run Show what would change without making changes
771
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
772
+ --version=<value> Exact version to pin (default: "latest", tracked on every push)
650
773
 
651
774
  DESCRIPTION
652
775
  Add a WordPress.org plugin to loopress.json
@@ -654,14 +777,39 @@ DESCRIPTION
654
777
  EXAMPLES
655
778
  $ lps plugin add woocommerce
656
779
 
780
+ $ lps plugin add woocommerce --version 9.4.2
781
+
657
782
  $ lps plugin add contact-form-7 --dry-run
658
783
  ```
659
784
 
660
- _See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/plugin/add.ts)_
785
+ _See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/plugin/add.ts)_
786
+
787
+ ## `lps plugin audit`
788
+
789
+ Check the plugins in loopress.json for known vulnerabilities and health issues
790
+
791
+ ```
792
+ USAGE
793
+ $ lps plugin audit [--json] [--env <value>]
794
+
795
+ FLAGS
796
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
797
+
798
+ GLOBAL FLAGS
799
+ --json Format output as json.
800
+
801
+ DESCRIPTION
802
+ Check the plugins in loopress.json for known vulnerabilities and health issues
803
+
804
+ EXAMPLES
805
+ $ lps plugin audit
806
+ ```
807
+
808
+ _See code: [src/commands/plugin/audit.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/plugin/audit.ts)_
661
809
 
662
810
  ## `lps plugin pull`
663
811
 
664
- Pull installed plugins from WordPress into loopress.json
812
+ Pull installed plugins from WordPress into loopress.json, pinned to their live versions
665
813
 
666
814
  ```
667
815
  USAGE
@@ -675,7 +823,7 @@ GLOBAL FLAGS
675
823
  --json Format output as json.
676
824
 
677
825
  DESCRIPTION
678
- Pull installed plugins from WordPress into loopress.json
826
+ Pull installed plugins from WordPress into loopress.json, pinned to their live versions
679
827
 
680
828
  EXAMPLES
681
829
  $ lps plugin pull
@@ -683,34 +831,61 @@ EXAMPLES
683
831
  $ lps plugin pull --dry-run
684
832
  ```
685
833
 
686
- _See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/plugin/pull.ts)_
834
+ _See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/plugin/pull.ts)_
687
835
 
688
836
  ## `lps plugin push`
689
837
 
690
- Push plugins to WordPress to match loopress.json
838
+ Install plugins on WordPress to match loopress.json, pinned via Composer + WPackagist
691
839
 
692
840
  ```
693
841
  USAGE
694
- $ lps plugin push [--json] [--env <value>] [-d] [-y]
842
+ $ lps plugin push [--json] [--env <value>] [-d] [-y] [--force] [--prune]
695
843
 
696
844
  FLAGS
697
845
  -d, --dry-run Show what would change without making changes
698
846
  -y, --yes Answer yes to confirmation prompts
699
847
  --env=<value> Target environment by name, overriding the globally active one (lps project switch)
848
+ --force Allow downgrades and let Loopress take over plugins installed outside it (replaces their files)
849
+ --prune Deactivate plugins that are active on the site but absent from loopress.json
700
850
 
701
851
  GLOBAL FLAGS
702
852
  --json Format output as json.
703
853
 
704
854
  DESCRIPTION
705
- Push plugins to WordPress to match loopress.json
855
+ Install plugins on WordPress to match loopress.json, pinned via Composer + WPackagist
706
856
 
707
857
  EXAMPLES
708
858
  $ lps plugin push
709
859
 
710
860
  $ lps plugin push --dry-run
861
+
862
+ $ lps plugin push --force --prune
863
+ ```
864
+
865
+ _See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/plugin/push.ts)_
866
+
867
+ ## `lps plugin status`
868
+
869
+ Compare the plugins on WordPress against loopress.json and report drift
870
+
871
+ ```
872
+ USAGE
873
+ $ lps plugin status [--json] [--env <value>]
874
+
875
+ FLAGS
876
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
877
+
878
+ GLOBAL FLAGS
879
+ --json Format output as json.
880
+
881
+ DESCRIPTION
882
+ Compare the plugins on WordPress against loopress.json and report drift
883
+
884
+ EXAMPLES
885
+ $ lps plugin status
711
886
  ```
712
887
 
713
- _See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/plugin/push.ts)_
888
+ _See code: [src/commands/plugin/status.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/plugin/status.ts)_
714
889
 
715
890
  ## `lps project config`
716
891
 
@@ -728,7 +903,7 @@ EXAMPLES
728
903
  $ lps project config
729
904
  ```
730
905
 
731
- _See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/project/config.ts)_
906
+ _See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/project/config.ts)_
732
907
 
733
908
  ## `lps project list`
734
909
 
@@ -748,7 +923,7 @@ EXAMPLES
748
923
  $ lps project list
749
924
  ```
750
925
 
751
- _See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/project/list.ts)_
926
+ _See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/project/list.ts)_
752
927
 
753
928
  ## `lps project pull`
754
929
 
@@ -765,7 +940,7 @@ EXAMPLES
765
940
  $ lps project pull
766
941
  ```
767
942
 
768
- _See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/project/pull.ts)_
943
+ _See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/project/pull.ts)_
769
944
 
770
945
  ## `lps project push`
771
946
 
@@ -785,7 +960,7 @@ EXAMPLES
785
960
  $ lps project push
786
961
  ```
787
962
 
788
- _See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/project/push.ts)_
963
+ _See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/project/push.ts)_
789
964
 
790
965
  ## `lps project remove`
791
966
 
@@ -802,7 +977,7 @@ EXAMPLES
802
977
  $ lps project remove
803
978
  ```
804
979
 
805
- _See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/project/remove.ts)_
980
+ _See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/project/remove.ts)_
806
981
 
807
982
  ## `lps project rotate`
808
983
 
@@ -824,7 +999,7 @@ EXAMPLES
824
999
  $ lps project rotate --env staging
825
1000
  ```
826
1001
 
827
- _See code: [src/commands/project/rotate.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/project/rotate.ts)_
1002
+ _See code: [src/commands/project/rotate.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/project/rotate.ts)_
828
1003
 
829
1004
  ## `lps project switch`
830
1005
 
@@ -841,7 +1016,7 @@ EXAMPLES
841
1016
  $ lps project switch
842
1017
  ```
843
1018
 
844
- _See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/project/switch.ts)_
1019
+ _See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/project/switch.ts)_
845
1020
 
846
1021
  ## `lps promote FROM TO`
847
1022
 
@@ -869,7 +1044,7 @@ EXAMPLES
869
1044
  $ lps promote production staging --dry-run
870
1045
  ```
871
1046
 
872
- _See code: [src/commands/promote.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/promote.ts)_
1047
+ _See code: [src/commands/promote.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/promote.ts)_
873
1048
 
874
1049
  ## `lps pull`
875
1050
 
@@ -895,7 +1070,7 @@ EXAMPLES
895
1070
  $ lps pull --dry-run
896
1071
  ```
897
1072
 
898
- _See code: [src/commands/pull.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/pull.ts)_
1073
+ _See code: [src/commands/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/pull.ts)_
899
1074
 
900
1075
  ## `lps push`
901
1076
 
@@ -921,7 +1096,7 @@ EXAMPLES
921
1096
  $ lps push --dry-run
922
1097
  ```
923
1098
 
924
- _See code: [src/commands/push.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/push.ts)_
1099
+ _See code: [src/commands/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/push.ts)_
925
1100
 
926
1101
  ## `lps seo list`
927
1102
 
@@ -947,7 +1122,7 @@ EXAMPLES
947
1122
  $ lps seo list --post-type post
948
1123
  ```
949
1124
 
950
- _See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/seo/list.ts)_
1125
+ _See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/seo/list.ts)_
951
1126
 
952
1127
  ## `lps seo pull [PATH]`
953
1128
 
@@ -975,7 +1150,7 @@ EXAMPLES
975
1150
  $ lps seo pull --post-type post --post-type page
976
1151
  ```
977
1152
 
978
- _See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/seo/pull.ts)_
1153
+ _See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/seo/pull.ts)_
979
1154
 
980
1155
  ## `lps seo push [PATH]`
981
1156
 
@@ -1001,7 +1176,7 @@ EXAMPLES
1001
1176
  $ lps seo push
1002
1177
  ```
1003
1178
 
1004
- _See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/seo/push.ts)_
1179
+ _See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/seo/push.ts)_
1005
1180
 
1006
1181
  ## `lps snippet list`
1007
1182
 
@@ -1024,7 +1199,7 @@ EXAMPLES
1024
1199
  $ lps snippet list
1025
1200
  ```
1026
1201
 
1027
- _See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/snippet/list.ts)_
1202
+ _See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/snippet/list.ts)_
1028
1203
 
1029
1204
  ## `lps snippet publish [PATH]`
1030
1205
 
@@ -1047,7 +1222,7 @@ EXAMPLES
1047
1222
  $ lps snippet publish --path ./snippets
1048
1223
  ```
1049
1224
 
1050
- _See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/snippet/publish.ts)_
1225
+ _See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/snippet/publish.ts)_
1051
1226
 
1052
1227
  ## `lps snippet pull [PATH]`
1053
1228
 
@@ -1077,7 +1252,7 @@ EXAMPLES
1077
1252
  $ lps snippet pull --path ./snippets
1078
1253
  ```
1079
1254
 
1080
- _See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/snippet/pull.ts)_
1255
+ _See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/snippet/pull.ts)_
1081
1256
 
1082
1257
  ## `lps snippet push [PATH]`
1083
1258
 
@@ -1108,7 +1283,7 @@ EXAMPLES
1108
1283
  $ lps snippet push --path ./snippets
1109
1284
  ```
1110
1285
 
1111
- _See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/snippet/push.ts)_
1286
+ _See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/snippet/push.ts)_
1112
1287
 
1113
1288
  ## `lps status`
1114
1289
 
@@ -1133,7 +1308,7 @@ EXAMPLES
1133
1308
  $ lps status --env staging
1134
1309
  ```
1135
1310
 
1136
- _See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/status.ts)_
1311
+ _See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/status.ts)_
1137
1312
 
1138
1313
  ## `lps telemetry disable`
1139
1314
 
@@ -1150,7 +1325,7 @@ EXAMPLES
1150
1325
  $ lps telemetry disable
1151
1326
  ```
1152
1327
 
1153
- _See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/telemetry/disable.ts)_
1328
+ _See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/telemetry/disable.ts)_
1154
1329
 
1155
1330
  ## `lps telemetry enable`
1156
1331
 
@@ -1167,7 +1342,109 @@ EXAMPLES
1167
1342
  $ lps telemetry enable
1168
1343
  ```
1169
1344
 
1170
- _See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/telemetry/enable.ts)_
1345
+ _See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/telemetry/enable.ts)_
1346
+
1347
+ ## `lps theme add SLUG`
1348
+
1349
+ Add a WordPress.org theme to loopress.json
1350
+
1351
+ ```
1352
+ USAGE
1353
+ $ lps theme add SLUG [--env <value>] [-d] [--version <value>]
1354
+
1355
+ ARGUMENTS
1356
+ SLUG Theme slug on WordPress.org
1357
+
1358
+ FLAGS
1359
+ -d, --dry-run Show what would change without making changes
1360
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1361
+ --version=<value> Exact version to pin (default: "latest")
1362
+
1363
+ DESCRIPTION
1364
+ Add a WordPress.org theme to loopress.json
1365
+
1366
+ EXAMPLES
1367
+ $ lps theme add generatepress
1368
+
1369
+ $ lps theme add generatepress --version 3.4.0
1370
+ ```
1371
+
1372
+ _See code: [src/commands/theme/add.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/theme/add.ts)_
1373
+
1374
+ ## `lps theme pull`
1375
+
1376
+ Pull installed themes from WordPress into loopress.json, pinned to their live versions
1377
+
1378
+ ```
1379
+ USAGE
1380
+ $ lps theme pull [--json] [--env <value>] [-d]
1381
+
1382
+ FLAGS
1383
+ -d, --dry-run Show what would change without making changes
1384
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1385
+
1386
+ GLOBAL FLAGS
1387
+ --json Format output as json.
1388
+
1389
+ DESCRIPTION
1390
+ Pull installed themes from WordPress into loopress.json, pinned to their live versions
1391
+
1392
+ EXAMPLES
1393
+ $ lps theme pull
1394
+ ```
1395
+
1396
+ _See code: [src/commands/theme/pull.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/theme/pull.ts)_
1397
+
1398
+ ## `lps theme push`
1399
+
1400
+ Install themes on WordPress to match loopress.json (versions only, never switches the active theme)
1401
+
1402
+ ```
1403
+ USAGE
1404
+ $ lps theme push [--json] [--env <value>] [-d] [-y] [--force]
1405
+
1406
+ FLAGS
1407
+ -d, --dry-run Show what would change without making changes
1408
+ -y, --yes Answer yes to confirmation prompts
1409
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1410
+ --force Allow downgrades and take over themes installed outside Loopress
1411
+
1412
+ GLOBAL FLAGS
1413
+ --json Format output as json.
1414
+
1415
+ DESCRIPTION
1416
+ Install themes on WordPress to match loopress.json (versions only, never switches the active theme)
1417
+
1418
+ EXAMPLES
1419
+ $ lps theme push
1420
+
1421
+ $ lps theme push --force
1422
+ ```
1423
+
1424
+ _See code: [src/commands/theme/push.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/theme/push.ts)_
1425
+
1426
+ ## `lps theme status`
1427
+
1428
+ Compare the themes on WordPress against loopress.json and report version drift
1429
+
1430
+ ```
1431
+ USAGE
1432
+ $ lps theme status [--json] [--env <value>]
1433
+
1434
+ FLAGS
1435
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
1436
+
1437
+ GLOBAL FLAGS
1438
+ --json Format output as json.
1439
+
1440
+ DESCRIPTION
1441
+ Compare the themes on WordPress against loopress.json and report version drift
1442
+
1443
+ EXAMPLES
1444
+ $ lps theme status
1445
+ ```
1446
+
1447
+ _See code: [src/commands/theme/status.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/theme/status.ts)_
1171
1448
 
1172
1449
  ## `lps validate`
1173
1450
 
@@ -1187,5 +1464,5 @@ EXAMPLES
1187
1464
  $ lps validate
1188
1465
  ```
1189
1466
 
1190
- _See code: [src/commands/validate.ts](https://github.com/loopress/loopress/blob/v0.22.0/src/commands/validate.ts)_
1467
+ _See code: [src/commands/validate.ts](https://github.com/loopress/loopress/blob/v0.23.0/src/commands/validate.ts)_
1191
1468
  <!-- commandsstop -->