@loopress/cli 0.24.1 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +629 -88
- package/dist/commands/acf/push.d.ts +1 -0
- package/dist/commands/acf/push.js +25 -2
- package/dist/commands/acf/rollback.d.ts +2 -0
- package/dist/commands/acf/rollback.js +5 -0
- package/dist/commands/api/rollback.d.ts +2 -0
- package/dist/commands/api/rollback.js +5 -0
- package/dist/commands/diff.js +1 -1
- package/dist/commands/doctor.d.ts +17 -1
- package/dist/commands/doctor.js +55 -38
- package/dist/commands/form/pull.js +4 -1
- package/dist/commands/form/push.d.ts +1 -0
- package/dist/commands/form/push.js +29 -3
- package/dist/commands/form/rollback.d.ts +2 -0
- package/dist/commands/form/rollback.js +5 -0
- package/dist/commands/hook/rollback.d.ts +2 -0
- package/dist/commands/hook/rollback.js +5 -0
- package/dist/commands/init.js +1 -0
- package/dist/commands/menu/diff.d.ts +2 -0
- package/dist/commands/menu/diff.js +5 -0
- package/dist/commands/menu/list.d.ts +13 -0
- package/dist/commands/menu/list.js +32 -0
- package/dist/commands/menu/pull.d.ts +15 -0
- package/dist/commands/menu/pull.js +72 -0
- package/dist/commands/menu/push.d.ts +17 -0
- package/dist/commands/menu/push.js +120 -0
- package/dist/commands/menu/rollback.d.ts +2 -0
- package/dist/commands/menu/rollback.js +5 -0
- package/dist/commands/option/add.js +1 -1
- package/dist/commands/option/push.d.ts +1 -0
- package/dist/commands/option/push.js +26 -1
- package/dist/commands/option/rollback.d.ts +2 -0
- package/dist/commands/option/rollback.js +5 -0
- package/dist/commands/plugin/push.d.ts +1 -0
- package/dist/commands/plugin/push.js +14 -0
- package/dist/commands/promote.d.ts +8 -1
- package/dist/commands/promote.js +2 -0
- package/dist/commands/pull.d.ts +11 -1
- package/dist/commands/pull.js +9 -2
- package/dist/commands/push.d.ts +11 -1
- package/dist/commands/push.js +9 -2
- package/dist/commands/seo/pull.js +6 -2
- package/dist/commands/seo/push.d.ts +1 -0
- package/dist/commands/seo/push.js +33 -3
- package/dist/commands/seo/rollback.d.ts +2 -0
- package/dist/commands/seo/rollback.js +5 -0
- package/dist/commands/snippet/push.d.ts +1 -0
- package/dist/commands/snippet/push.js +31 -1
- package/dist/commands/snippet/rollback.d.ts +2 -0
- package/dist/commands/snippet/rollback.js +5 -0
- package/dist/commands/theme-styles/diff.d.ts +2 -0
- package/dist/commands/theme-styles/diff.js +5 -0
- package/dist/commands/theme-styles/pull.d.ts +12 -0
- package/dist/commands/theme-styles/pull.js +31 -0
- package/dist/commands/theme-styles/push.d.ts +12 -0
- package/dist/commands/theme-styles/push.js +45 -0
- package/dist/commands/theme-styles/rollback.d.ts +2 -0
- package/dist/commands/theme-styles/rollback.js +5 -0
- package/dist/lib/app-manifest.js +4 -27
- package/dist/lib/base.d.ts +2 -0
- package/dist/lib/base.js +6 -0
- package/dist/lib/find-orphaned-files.js +5 -47
- package/dist/lib/load-files.js +4 -42
- package/dist/lib/php-files-command.d.ts +1 -0
- package/dist/lib/php-files-command.js +84 -47
- package/dist/lib/push-command.d.ts +4 -0
- package/dist/lib/push-command.js +49 -0
- package/dist/lib/readdir-tolerant.d.ts +1 -0
- package/dist/lib/readdir-tolerant.js +12 -0
- package/dist/lib/resource-state.js +92 -3
- package/dist/lib/rollback-command.d.ts +21 -0
- package/dist/lib/rollback-command.js +180 -0
- package/dist/lib/rollback-materialize.d.ts +1 -0
- package/dist/lib/rollback-materialize.js +121 -0
- package/dist/lib/snapshot-store.d.ts +30 -0
- package/dist/lib/snapshot-store.js +133 -0
- package/dist/lib/validate-local.js +2 -1
- package/dist/types/project-config.generated.d.ts +8 -0
- package/dist/utils/acf-format.d.ts +1 -0
- package/dist/utils/acf-format.js +6 -0
- package/dist/utils/form-format.d.ts +4 -0
- package/dist/utils/form-format.js +3 -7
- package/dist/utils/menu-format.d.ts +24 -0
- package/dist/utils/menu-format.js +8 -0
- package/dist/utils/option-format.d.ts +1 -0
- package/dist/utils/resource-dirs.d.ts +2 -0
- package/dist/utils/resource-dirs.js +4 -0
- package/dist/utils/seo-format.d.ts +8 -0
- package/dist/utils/seo-format.js +3 -0
- package/dist/utils/snippet-format.d.ts +1 -0
- package/dist/utils/snippet-format.js +1 -0
- package/dist/utils/theme-styles-format.d.ts +26 -0
- package/dist/utils/theme-styles-format.js +55 -0
- package/oclif.manifest.json +1736 -465
- package/package.json +4 -2
- package/schemas/project-config.schema.json +10 -0
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ $ npm install -g @loopress/cli
|
|
|
21
21
|
$ lps COMMAND
|
|
22
22
|
running command...
|
|
23
23
|
$ lps (--version)
|
|
24
|
-
@loopress/cli/0.
|
|
24
|
+
@loopress/cli/0.25.0 linux-x64 node-v24.20.0
|
|
25
25
|
$ lps --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ lps COMMAND
|
|
@@ -51,12 +51,14 @@ report.
|
|
|
51
51
|
* [`lps acf list`](#lps-acf-list)
|
|
52
52
|
* [`lps acf pull [PATH]`](#lps-acf-pull-path)
|
|
53
53
|
* [`lps acf push [PATH]`](#lps-acf-push-path)
|
|
54
|
+
* [`lps acf rollback [PATH]`](#lps-acf-rollback-path)
|
|
54
55
|
* [`lps api diff [PATH]`](#lps-api-diff-path)
|
|
55
56
|
* [`lps api list`](#lps-api-list)
|
|
56
57
|
* [`lps api publish [PATH]`](#lps-api-publish-path)
|
|
57
58
|
* [`lps api pull [PATH]`](#lps-api-pull-path)
|
|
58
59
|
* [`lps api push [PATH]`](#lps-api-push-path)
|
|
59
60
|
* [`lps api rm FILENAME`](#lps-api-rm-filename)
|
|
61
|
+
* [`lps api rollback [PATH]`](#lps-api-rollback-path)
|
|
60
62
|
* [`lps app list`](#lps-app-list)
|
|
61
63
|
* [`lps app pull [PATH]`](#lps-app-pull-path)
|
|
62
64
|
* [`lps app push [NAME]`](#lps-app-push-name)
|
|
@@ -71,21 +73,29 @@ report.
|
|
|
71
73
|
* [`lps form list`](#lps-form-list)
|
|
72
74
|
* [`lps form pull [PATH]`](#lps-form-pull-path)
|
|
73
75
|
* [`lps form push [PATH]`](#lps-form-push-path)
|
|
76
|
+
* [`lps form rollback [PATH]`](#lps-form-rollback-path)
|
|
74
77
|
* [`lps help [COMMAND]`](#lps-help-command)
|
|
75
78
|
* [`lps hook diff [PATH]`](#lps-hook-diff-path)
|
|
76
79
|
* [`lps hook list`](#lps-hook-list)
|
|
77
80
|
* [`lps hook pull [PATH]`](#lps-hook-pull-path)
|
|
78
81
|
* [`lps hook push [PATH]`](#lps-hook-push-path)
|
|
79
82
|
* [`lps hook rm FILENAME`](#lps-hook-rm-filename)
|
|
83
|
+
* [`lps hook rollback [PATH]`](#lps-hook-rollback-path)
|
|
80
84
|
* [`lps init`](#lps-init)
|
|
81
85
|
* [`lps login`](#lps-login)
|
|
82
86
|
* [`lps logout`](#lps-logout)
|
|
87
|
+
* [`lps menu diff [PATH]`](#lps-menu-diff-path)
|
|
88
|
+
* [`lps menu list`](#lps-menu-list)
|
|
89
|
+
* [`lps menu pull [PATH]`](#lps-menu-pull-path)
|
|
90
|
+
* [`lps menu push [PATH]`](#lps-menu-push-path)
|
|
91
|
+
* [`lps menu rollback [PATH]`](#lps-menu-rollback-path)
|
|
83
92
|
* [`lps option add NAME`](#lps-option-add-name)
|
|
84
93
|
* [`lps option diff [PATH]`](#lps-option-diff-path)
|
|
85
94
|
* [`lps option list`](#lps-option-list)
|
|
86
95
|
* [`lps option pull [PATH]`](#lps-option-pull-path)
|
|
87
96
|
* [`lps option push [PATH]`](#lps-option-push-path)
|
|
88
97
|
* [`lps option remove NAME`](#lps-option-remove-name)
|
|
98
|
+
* [`lps option rollback [PATH]`](#lps-option-rollback-path)
|
|
89
99
|
* [`lps plugin add SLUG`](#lps-plugin-add-slug)
|
|
90
100
|
* [`lps plugin audit`](#lps-plugin-audit)
|
|
91
101
|
* [`lps plugin pull`](#lps-plugin-pull)
|
|
@@ -105,14 +115,20 @@ report.
|
|
|
105
115
|
* [`lps seo list`](#lps-seo-list)
|
|
106
116
|
* [`lps seo pull [PATH]`](#lps-seo-pull-path)
|
|
107
117
|
* [`lps seo push [PATH]`](#lps-seo-push-path)
|
|
118
|
+
* [`lps seo rollback [PATH]`](#lps-seo-rollback-path)
|
|
108
119
|
* [`lps snippet diff [PATH]`](#lps-snippet-diff-path)
|
|
109
120
|
* [`lps snippet list`](#lps-snippet-list)
|
|
110
121
|
* [`lps snippet publish [PATH]`](#lps-snippet-publish-path)
|
|
111
122
|
* [`lps snippet pull [PATH]`](#lps-snippet-pull-path)
|
|
112
123
|
* [`lps snippet push [PATH]`](#lps-snippet-push-path)
|
|
124
|
+
* [`lps snippet rollback [PATH]`](#lps-snippet-rollback-path)
|
|
113
125
|
* [`lps status`](#lps-status)
|
|
114
126
|
* [`lps telemetry disable`](#lps-telemetry-disable)
|
|
115
127
|
* [`lps telemetry enable`](#lps-telemetry-enable)
|
|
128
|
+
* [`lps theme-styles diff [PATH]`](#lps-theme-styles-diff-path)
|
|
129
|
+
* [`lps theme-styles pull [PATH]`](#lps-theme-styles-pull-path)
|
|
130
|
+
* [`lps theme-styles push [PATH]`](#lps-theme-styles-push-path)
|
|
131
|
+
* [`lps theme-styles rollback [PATH]`](#lps-theme-styles-rollback-path)
|
|
116
132
|
* [`lps theme add SLUG`](#lps-theme-add-slug)
|
|
117
133
|
* [`lps theme pull`](#lps-theme-pull)
|
|
118
134
|
* [`lps theme push`](#lps-theme-push)
|
|
@@ -149,7 +165,7 @@ EXAMPLES
|
|
|
149
165
|
$ lps acf diff --env staging --against production
|
|
150
166
|
```
|
|
151
167
|
|
|
152
|
-
_See code: [src/commands/acf/diff.ts](https://github.com/loopress/loopress/blob/v0.
|
|
168
|
+
_See code: [src/commands/acf/diff.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/acf/diff.ts)_
|
|
153
169
|
|
|
154
170
|
## `lps acf list`
|
|
155
171
|
|
|
@@ -176,7 +192,7 @@ EXAMPLES
|
|
|
176
192
|
$ lps acf list --type field-groups
|
|
177
193
|
```
|
|
178
194
|
|
|
179
|
-
_See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
195
|
+
_See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/acf/list.ts)_
|
|
180
196
|
|
|
181
197
|
## `lps acf pull [PATH]`
|
|
182
198
|
|
|
@@ -205,7 +221,7 @@ EXAMPLES
|
|
|
205
221
|
$ lps acf pull --type field-groups
|
|
206
222
|
```
|
|
207
223
|
|
|
208
|
-
_See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
224
|
+
_See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/acf/pull.ts)_
|
|
209
225
|
|
|
210
226
|
## `lps acf push [PATH]`
|
|
211
227
|
|
|
@@ -234,7 +250,44 @@ EXAMPLES
|
|
|
234
250
|
$ lps acf push --type field-groups
|
|
235
251
|
```
|
|
236
252
|
|
|
237
|
-
_See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
253
|
+
_See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/acf/push.ts)_
|
|
254
|
+
|
|
255
|
+
## `lps acf rollback [PATH]`
|
|
256
|
+
|
|
257
|
+
Restore ACF field groups, post types, taxonomies, and options pages to a snapshot taken automatically before an earlier `lps acf push`
|
|
258
|
+
|
|
259
|
+
```
|
|
260
|
+
USAGE
|
|
261
|
+
$ lps acf rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
|
|
262
|
+
|
|
263
|
+
ARGUMENTS
|
|
264
|
+
[PATH] Path to ACF directory (overrides project config)
|
|
265
|
+
|
|
266
|
+
FLAGS
|
|
267
|
+
-d, --dry-run Show what would change without making changes
|
|
268
|
+
-y, --yes Answer yes to confirmation prompts
|
|
269
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
270
|
+
--list List available snapshots instead of rolling back
|
|
271
|
+
--to=<value> Roll back to this snapshot id instead of the most recent one
|
|
272
|
+
|
|
273
|
+
GLOBAL FLAGS
|
|
274
|
+
--json Format output as json.
|
|
275
|
+
|
|
276
|
+
DESCRIPTION
|
|
277
|
+
Restore ACF field groups, post types, taxonomies, and options pages to a snapshot taken automatically before an
|
|
278
|
+
earlier `lps acf push`
|
|
279
|
+
|
|
280
|
+
EXAMPLES
|
|
281
|
+
$ lps acf rollback
|
|
282
|
+
|
|
283
|
+
$ lps acf rollback --list
|
|
284
|
+
|
|
285
|
+
$ lps acf rollback --to 1732000000000
|
|
286
|
+
|
|
287
|
+
$ lps acf rollback --dry-run
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
_See code: [src/commands/acf/rollback.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/acf/rollback.ts)_
|
|
238
291
|
|
|
239
292
|
## `lps api diff [PATH]`
|
|
240
293
|
|
|
@@ -266,7 +319,7 @@ EXAMPLES
|
|
|
266
319
|
$ lps api diff --env staging --against production
|
|
267
320
|
```
|
|
268
321
|
|
|
269
|
-
_See code: [src/commands/api/diff.ts](https://github.com/loopress/loopress/blob/v0.
|
|
322
|
+
_See code: [src/commands/api/diff.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/api/diff.ts)_
|
|
270
323
|
|
|
271
324
|
## `lps api list`
|
|
272
325
|
|
|
@@ -289,7 +342,7 @@ EXAMPLES
|
|
|
289
342
|
$ lps api list
|
|
290
343
|
```
|
|
291
344
|
|
|
292
|
-
_See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
345
|
+
_See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/api/list.ts)_
|
|
293
346
|
|
|
294
347
|
## `lps api publish [PATH]`
|
|
295
348
|
|
|
@@ -312,7 +365,7 @@ EXAMPLES
|
|
|
312
365
|
$ lps api publish --path ./api
|
|
313
366
|
```
|
|
314
367
|
|
|
315
|
-
_See code: [src/commands/api/publish.ts](https://github.com/loopress/loopress/blob/v0.
|
|
368
|
+
_See code: [src/commands/api/publish.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/api/publish.ts)_
|
|
316
369
|
|
|
317
370
|
## `lps api pull [PATH]`
|
|
318
371
|
|
|
@@ -342,7 +395,7 @@ EXAMPLES
|
|
|
342
395
|
$ lps api pull --path ./api
|
|
343
396
|
```
|
|
344
397
|
|
|
345
|
-
_See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
398
|
+
_See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/api/pull.ts)_
|
|
346
399
|
|
|
347
400
|
## `lps api push [PATH]`
|
|
348
401
|
|
|
@@ -375,7 +428,7 @@ EXAMPLES
|
|
|
375
428
|
$ lps api push --prune
|
|
376
429
|
```
|
|
377
430
|
|
|
378
|
-
_See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
431
|
+
_See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/api/push.ts)_
|
|
379
432
|
|
|
380
433
|
## `lps api rm FILENAME`
|
|
381
434
|
|
|
@@ -405,7 +458,43 @@ EXAMPLES
|
|
|
405
458
|
$ lps api rm hello --yes
|
|
406
459
|
```
|
|
407
460
|
|
|
408
|
-
_See code: [src/commands/api/rm.ts](https://github.com/loopress/loopress/blob/v0.
|
|
461
|
+
_See code: [src/commands/api/rm.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/api/rm.ts)_
|
|
462
|
+
|
|
463
|
+
## `lps api rollback [PATH]`
|
|
464
|
+
|
|
465
|
+
Restore API route files to a snapshot taken automatically before an earlier `lps api push`
|
|
466
|
+
|
|
467
|
+
```
|
|
468
|
+
USAGE
|
|
469
|
+
$ lps api rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
|
|
470
|
+
|
|
471
|
+
ARGUMENTS
|
|
472
|
+
[PATH] Path to api directory (overrides project config)
|
|
473
|
+
|
|
474
|
+
FLAGS
|
|
475
|
+
-d, --dry-run Show what would change without making changes
|
|
476
|
+
-y, --yes Answer yes to confirmation prompts
|
|
477
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
478
|
+
--list List available snapshots instead of rolling back
|
|
479
|
+
--to=<value> Roll back to this snapshot id instead of the most recent one
|
|
480
|
+
|
|
481
|
+
GLOBAL FLAGS
|
|
482
|
+
--json Format output as json.
|
|
483
|
+
|
|
484
|
+
DESCRIPTION
|
|
485
|
+
Restore API route files to a snapshot taken automatically before an earlier `lps api push`
|
|
486
|
+
|
|
487
|
+
EXAMPLES
|
|
488
|
+
$ lps api rollback
|
|
489
|
+
|
|
490
|
+
$ lps api rollback --list
|
|
491
|
+
|
|
492
|
+
$ lps api rollback --to 1732000000000
|
|
493
|
+
|
|
494
|
+
$ lps api rollback --dry-run
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
_See code: [src/commands/api/rollback.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/api/rollback.ts)_
|
|
409
498
|
|
|
410
499
|
## `lps app list`
|
|
411
500
|
|
|
@@ -428,7 +517,7 @@ EXAMPLES
|
|
|
428
517
|
$ lps app list
|
|
429
518
|
```
|
|
430
519
|
|
|
431
|
-
_See code: [src/commands/app/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
520
|
+
_See code: [src/commands/app/list.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/app/list.ts)_
|
|
432
521
|
|
|
433
522
|
## `lps app pull [PATH]`
|
|
434
523
|
|
|
@@ -456,7 +545,7 @@ EXAMPLES
|
|
|
456
545
|
$ lps app pull
|
|
457
546
|
```
|
|
458
547
|
|
|
459
|
-
_See code: [src/commands/app/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
548
|
+
_See code: [src/commands/app/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/app/pull.ts)_
|
|
460
549
|
|
|
461
550
|
## `lps app push [NAME]`
|
|
462
551
|
|
|
@@ -487,7 +576,7 @@ EXAMPLES
|
|
|
487
576
|
$ lps app push search
|
|
488
577
|
```
|
|
489
578
|
|
|
490
|
-
_See code: [src/commands/app/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
579
|
+
_See code: [src/commands/app/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/app/push.ts)_
|
|
491
580
|
|
|
492
581
|
## `lps app remove NAME`
|
|
493
582
|
|
|
@@ -516,7 +605,7 @@ EXAMPLES
|
|
|
516
605
|
$ lps app remove search
|
|
517
606
|
```
|
|
518
607
|
|
|
519
|
-
_See code: [src/commands/app/remove.ts](https://github.com/loopress/loopress/blob/v0.
|
|
608
|
+
_See code: [src/commands/app/remove.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/app/remove.ts)_
|
|
520
609
|
|
|
521
610
|
## `lps composer init`
|
|
522
611
|
|
|
@@ -539,7 +628,7 @@ EXAMPLES
|
|
|
539
628
|
$ lps composer init --dry-run
|
|
540
629
|
```
|
|
541
630
|
|
|
542
|
-
_See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.
|
|
631
|
+
_See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/composer/init.ts)_
|
|
543
632
|
|
|
544
633
|
## `lps composer pull`
|
|
545
634
|
|
|
@@ -565,7 +654,7 @@ EXAMPLES
|
|
|
565
654
|
$ lps composer pull --dry-run
|
|
566
655
|
```
|
|
567
656
|
|
|
568
|
-
_See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
657
|
+
_See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/composer/pull.ts)_
|
|
569
658
|
|
|
570
659
|
## `lps composer push`
|
|
571
660
|
|
|
@@ -593,7 +682,7 @@ EXAMPLES
|
|
|
593
682
|
$ lps composer push --dry-run
|
|
594
683
|
```
|
|
595
684
|
|
|
596
|
-
_See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
685
|
+
_See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/composer/push.ts)_
|
|
597
686
|
|
|
598
687
|
## `lps dev`
|
|
599
688
|
|
|
@@ -619,33 +708,34 @@ EXAMPLES
|
|
|
619
708
|
$ lps dev --skip=plugins
|
|
620
709
|
```
|
|
621
710
|
|
|
622
|
-
_See code: [src/commands/dev.ts](https://github.com/loopress/loopress/blob/v0.
|
|
711
|
+
_See code: [src/commands/dev.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/dev.ts)_
|
|
623
712
|
|
|
624
713
|
## `lps diff`
|
|
625
714
|
|
|
626
|
-
Show what differs between your local tracked files and a WordPress environment, or between two environments. Covers snippets, forms, ACF, API routes, Hooks, SEO, and Composer. Plugins and themes have their own `lps plugin status` / `lps theme status`. Exit code: 0 in sync, 1 on drift, 2 when a resource could not be compared, so it doubles as a CI drift gate.
|
|
715
|
+
Show what differs between your local tracked files and a WordPress environment, or between two environments. Covers snippets, forms, ACF, API routes, Hooks, SEO, Options, Menus, Theme styles, and Composer. Plugins and themes have their own `lps plugin status` / `lps theme status`. Exit code: 0 in sync, 1 on drift, 2 when a resource could not be compared, so it doubles as a CI drift gate.
|
|
627
716
|
|
|
628
717
|
```
|
|
629
718
|
USAGE
|
|
630
719
|
$ lps diff [--json] [--env <value>] [--against <value>] [--only
|
|
631
|
-
snippet|form|acf|api|hook|seo|option|composer...] [--skip
|
|
720
|
+
snippet|form|acf|api|hook|seo|menu|option|theme-styles|composer...] [--skip
|
|
721
|
+
snippet|form|acf|api|hook|seo|menu|option|theme-styles|composer...]
|
|
632
722
|
|
|
633
723
|
FLAGS
|
|
634
724
|
--against=<value> Compare the primary environment against this second environment instead of against local files
|
|
635
725
|
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
636
726
|
--only=<option>... Only compare these resources
|
|
637
|
-
<options: snippet|form|acf|api|hook|seo|option|composer>
|
|
727
|
+
<options: snippet|form|acf|api|hook|seo|menu|option|theme-styles|composer>
|
|
638
728
|
--skip=<option>... Compare every resource except these
|
|
639
|
-
<options: snippet|form|acf|api|hook|seo|option|composer>
|
|
729
|
+
<options: snippet|form|acf|api|hook|seo|menu|option|theme-styles|composer>
|
|
640
730
|
|
|
641
731
|
GLOBAL FLAGS
|
|
642
732
|
--json Format output as json.
|
|
643
733
|
|
|
644
734
|
DESCRIPTION
|
|
645
735
|
Show what differs between your local tracked files and a WordPress environment, or between two environments. Covers
|
|
646
|
-
snippets, forms, ACF, API routes, Hooks, SEO, and Composer. Plugins and themes have
|
|
647
|
-
`lps theme status`. Exit code: 0 in sync, 1 on drift, 2 when a resource could not be
|
|
648
|
-
drift gate.
|
|
736
|
+
snippets, forms, ACF, API routes, Hooks, SEO, Options, Menus, Theme styles, and Composer. Plugins and themes have
|
|
737
|
+
their own `lps plugin status` / `lps theme status`. Exit code: 0 in sync, 1 on drift, 2 when a resource could not be
|
|
738
|
+
compared, so it doubles as a CI drift gate.
|
|
649
739
|
|
|
650
740
|
EXAMPLES
|
|
651
741
|
$ lps diff
|
|
@@ -659,7 +749,7 @@ EXAMPLES
|
|
|
659
749
|
$ lps diff --skip composer
|
|
660
750
|
```
|
|
661
751
|
|
|
662
|
-
_See code: [src/commands/diff.ts](https://github.com/loopress/loopress/blob/v0.
|
|
752
|
+
_See code: [src/commands/diff.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/diff.ts)_
|
|
663
753
|
|
|
664
754
|
## `lps doctor`
|
|
665
755
|
|
|
@@ -667,11 +757,14 @@ Diagnose connectivity, plugin and credential problems for the targeted environme
|
|
|
667
757
|
|
|
668
758
|
```
|
|
669
759
|
USAGE
|
|
670
|
-
$ lps doctor [--env <value>]
|
|
760
|
+
$ lps doctor [--json] [--env <value>]
|
|
671
761
|
|
|
672
762
|
FLAGS
|
|
673
763
|
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
674
764
|
|
|
765
|
+
GLOBAL FLAGS
|
|
766
|
+
--json Format output as json.
|
|
767
|
+
|
|
675
768
|
DESCRIPTION
|
|
676
769
|
Diagnose connectivity, plugin and credential problems for the targeted environment
|
|
677
770
|
|
|
@@ -681,7 +774,7 @@ EXAMPLES
|
|
|
681
774
|
$ lps doctor --env production
|
|
682
775
|
```
|
|
683
776
|
|
|
684
|
-
_See code: [src/commands/doctor.ts](https://github.com/loopress/loopress/blob/v0.
|
|
777
|
+
_See code: [src/commands/doctor.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/doctor.ts)_
|
|
685
778
|
|
|
686
779
|
## `lps form diff [PATH]`
|
|
687
780
|
|
|
@@ -712,7 +805,7 @@ EXAMPLES
|
|
|
712
805
|
$ lps form diff --env staging --against production
|
|
713
806
|
```
|
|
714
807
|
|
|
715
|
-
_See code: [src/commands/form/diff.ts](https://github.com/loopress/loopress/blob/v0.
|
|
808
|
+
_See code: [src/commands/form/diff.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/form/diff.ts)_
|
|
716
809
|
|
|
717
810
|
## `lps form list`
|
|
718
811
|
|
|
@@ -735,7 +828,7 @@ EXAMPLES
|
|
|
735
828
|
$ lps form list
|
|
736
829
|
```
|
|
737
830
|
|
|
738
|
-
_See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
831
|
+
_See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/form/list.ts)_
|
|
739
832
|
|
|
740
833
|
## `lps form pull [PATH]`
|
|
741
834
|
|
|
@@ -760,7 +853,7 @@ EXAMPLES
|
|
|
760
853
|
$ lps form pull
|
|
761
854
|
```
|
|
762
855
|
|
|
763
|
-
_See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
856
|
+
_See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/form/pull.ts)_
|
|
764
857
|
|
|
765
858
|
## `lps form push [PATH]`
|
|
766
859
|
|
|
@@ -791,7 +884,43 @@ EXAMPLES
|
|
|
791
884
|
$ lps form push --allow-notifications
|
|
792
885
|
```
|
|
793
886
|
|
|
794
|
-
_See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
887
|
+
_See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/form/push.ts)_
|
|
888
|
+
|
|
889
|
+
## `lps form rollback [PATH]`
|
|
890
|
+
|
|
891
|
+
Restore forms to a snapshot taken automatically before an earlier `lps form push`
|
|
892
|
+
|
|
893
|
+
```
|
|
894
|
+
USAGE
|
|
895
|
+
$ lps form rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
|
|
896
|
+
|
|
897
|
+
ARGUMENTS
|
|
898
|
+
[PATH] Path to forms directory (overrides project config)
|
|
899
|
+
|
|
900
|
+
FLAGS
|
|
901
|
+
-d, --dry-run Show what would change without making changes
|
|
902
|
+
-y, --yes Answer yes to confirmation prompts
|
|
903
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
904
|
+
--list List available snapshots instead of rolling back
|
|
905
|
+
--to=<value> Roll back to this snapshot id instead of the most recent one
|
|
906
|
+
|
|
907
|
+
GLOBAL FLAGS
|
|
908
|
+
--json Format output as json.
|
|
909
|
+
|
|
910
|
+
DESCRIPTION
|
|
911
|
+
Restore forms to a snapshot taken automatically before an earlier `lps form push`
|
|
912
|
+
|
|
913
|
+
EXAMPLES
|
|
914
|
+
$ lps form rollback
|
|
915
|
+
|
|
916
|
+
$ lps form rollback --list
|
|
917
|
+
|
|
918
|
+
$ lps form rollback --to 1732000000000
|
|
919
|
+
|
|
920
|
+
$ lps form rollback --dry-run
|
|
921
|
+
```
|
|
922
|
+
|
|
923
|
+
_See code: [src/commands/form/rollback.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/form/rollback.ts)_
|
|
795
924
|
|
|
796
925
|
## `lps help [COMMAND]`
|
|
797
926
|
|
|
@@ -842,7 +971,7 @@ EXAMPLES
|
|
|
842
971
|
$ lps hook diff --env staging --against production
|
|
843
972
|
```
|
|
844
973
|
|
|
845
|
-
_See code: [src/commands/hook/diff.ts](https://github.com/loopress/loopress/blob/v0.
|
|
974
|
+
_See code: [src/commands/hook/diff.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/hook/diff.ts)_
|
|
846
975
|
|
|
847
976
|
## `lps hook list`
|
|
848
977
|
|
|
@@ -865,7 +994,7 @@ EXAMPLES
|
|
|
865
994
|
$ lps hook list
|
|
866
995
|
```
|
|
867
996
|
|
|
868
|
-
_See code: [src/commands/hook/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
997
|
+
_See code: [src/commands/hook/list.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/hook/list.ts)_
|
|
869
998
|
|
|
870
999
|
## `lps hook pull [PATH]`
|
|
871
1000
|
|
|
@@ -895,7 +1024,7 @@ EXAMPLES
|
|
|
895
1024
|
$ lps hook pull --path ./hooks
|
|
896
1025
|
```
|
|
897
1026
|
|
|
898
|
-
_See code: [src/commands/hook/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1027
|
+
_See code: [src/commands/hook/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/hook/pull.ts)_
|
|
899
1028
|
|
|
900
1029
|
## `lps hook push [PATH]`
|
|
901
1030
|
|
|
@@ -928,7 +1057,7 @@ EXAMPLES
|
|
|
928
1057
|
$ lps hook push --prune
|
|
929
1058
|
```
|
|
930
1059
|
|
|
931
|
-
_See code: [src/commands/hook/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1060
|
+
_See code: [src/commands/hook/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/hook/push.ts)_
|
|
932
1061
|
|
|
933
1062
|
## `lps hook rm FILENAME`
|
|
934
1063
|
|
|
@@ -958,7 +1087,43 @@ EXAMPLES
|
|
|
958
1087
|
$ lps hook rm hello --yes
|
|
959
1088
|
```
|
|
960
1089
|
|
|
961
|
-
_See code: [src/commands/hook/rm.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1090
|
+
_See code: [src/commands/hook/rm.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/hook/rm.ts)_
|
|
1091
|
+
|
|
1092
|
+
## `lps hook rollback [PATH]`
|
|
1093
|
+
|
|
1094
|
+
Restore hook files to a snapshot taken automatically before an earlier `lps hook push`
|
|
1095
|
+
|
|
1096
|
+
```
|
|
1097
|
+
USAGE
|
|
1098
|
+
$ lps hook rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
|
|
1099
|
+
|
|
1100
|
+
ARGUMENTS
|
|
1101
|
+
[PATH] Path to hooks directory (overrides project config)
|
|
1102
|
+
|
|
1103
|
+
FLAGS
|
|
1104
|
+
-d, --dry-run Show what would change without making changes
|
|
1105
|
+
-y, --yes Answer yes to confirmation prompts
|
|
1106
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
1107
|
+
--list List available snapshots instead of rolling back
|
|
1108
|
+
--to=<value> Roll back to this snapshot id instead of the most recent one
|
|
1109
|
+
|
|
1110
|
+
GLOBAL FLAGS
|
|
1111
|
+
--json Format output as json.
|
|
1112
|
+
|
|
1113
|
+
DESCRIPTION
|
|
1114
|
+
Restore hook files to a snapshot taken automatically before an earlier `lps hook push`
|
|
1115
|
+
|
|
1116
|
+
EXAMPLES
|
|
1117
|
+
$ lps hook rollback
|
|
1118
|
+
|
|
1119
|
+
$ lps hook rollback --list
|
|
1120
|
+
|
|
1121
|
+
$ lps hook rollback --to 1732000000000
|
|
1122
|
+
|
|
1123
|
+
$ lps hook rollback --dry-run
|
|
1124
|
+
```
|
|
1125
|
+
|
|
1126
|
+
_See code: [src/commands/hook/rollback.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/hook/rollback.ts)_
|
|
962
1127
|
|
|
963
1128
|
## `lps init`
|
|
964
1129
|
|
|
@@ -975,7 +1140,7 @@ EXAMPLES
|
|
|
975
1140
|
$ lps init
|
|
976
1141
|
```
|
|
977
1142
|
|
|
978
|
-
_See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1143
|
+
_See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/init.ts)_
|
|
979
1144
|
|
|
980
1145
|
## `lps login`
|
|
981
1146
|
|
|
@@ -992,7 +1157,7 @@ EXAMPLES
|
|
|
992
1157
|
$ lps login
|
|
993
1158
|
```
|
|
994
1159
|
|
|
995
|
-
_See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1160
|
+
_See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/login.ts)_
|
|
996
1161
|
|
|
997
1162
|
## `lps logout`
|
|
998
1163
|
|
|
@@ -1009,7 +1174,150 @@ EXAMPLES
|
|
|
1009
1174
|
$ lps logout
|
|
1010
1175
|
```
|
|
1011
1176
|
|
|
1012
|
-
_See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1177
|
+
_See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/logout.ts)_
|
|
1178
|
+
|
|
1179
|
+
## `lps menu diff [PATH]`
|
|
1180
|
+
|
|
1181
|
+
Show what differs in nav menus and the active theme menu locations between your local files and a WordPress environment, or between two environments
|
|
1182
|
+
|
|
1183
|
+
```
|
|
1184
|
+
USAGE
|
|
1185
|
+
$ lps menu diff [PATH] [--json] [--env <value>] [--against <value>]
|
|
1186
|
+
|
|
1187
|
+
ARGUMENTS
|
|
1188
|
+
[PATH] Path to menus directory (overrides project config)
|
|
1189
|
+
|
|
1190
|
+
FLAGS
|
|
1191
|
+
--against=<value> Compare the primary environment against this second environment instead of against local files
|
|
1192
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
1193
|
+
|
|
1194
|
+
GLOBAL FLAGS
|
|
1195
|
+
--json Format output as json.
|
|
1196
|
+
|
|
1197
|
+
DESCRIPTION
|
|
1198
|
+
Show what differs in nav menus and the active theme menu locations between your local files and a WordPress
|
|
1199
|
+
environment, or between two environments
|
|
1200
|
+
|
|
1201
|
+
EXAMPLES
|
|
1202
|
+
$ lps menu diff
|
|
1203
|
+
|
|
1204
|
+
$ lps menu diff --env staging
|
|
1205
|
+
|
|
1206
|
+
$ lps menu diff --env staging --against production
|
|
1207
|
+
```
|
|
1208
|
+
|
|
1209
|
+
_See code: [src/commands/menu/diff.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/menu/diff.ts)_
|
|
1210
|
+
|
|
1211
|
+
## `lps menu list`
|
|
1212
|
+
|
|
1213
|
+
List nav menus and the active theme menu locations on WordPress
|
|
1214
|
+
|
|
1215
|
+
```
|
|
1216
|
+
USAGE
|
|
1217
|
+
$ lps menu list [--json] [--env <value>]
|
|
1218
|
+
|
|
1219
|
+
FLAGS
|
|
1220
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
1221
|
+
|
|
1222
|
+
GLOBAL FLAGS
|
|
1223
|
+
--json Format output as json.
|
|
1224
|
+
|
|
1225
|
+
DESCRIPTION
|
|
1226
|
+
List nav menus and the active theme menu locations on WordPress
|
|
1227
|
+
|
|
1228
|
+
EXAMPLES
|
|
1229
|
+
$ lps menu list
|
|
1230
|
+
```
|
|
1231
|
+
|
|
1232
|
+
_See code: [src/commands/menu/list.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/menu/list.ts)_
|
|
1233
|
+
|
|
1234
|
+
## `lps menu pull [PATH]`
|
|
1235
|
+
|
|
1236
|
+
Pull nav menus and the active theme menu locations from WordPress
|
|
1237
|
+
|
|
1238
|
+
```
|
|
1239
|
+
USAGE
|
|
1240
|
+
$ lps menu pull [PATH] [--env <value>] [-d] [-y]
|
|
1241
|
+
|
|
1242
|
+
ARGUMENTS
|
|
1243
|
+
[PATH] Path to menus directory (overrides project config)
|
|
1244
|
+
|
|
1245
|
+
FLAGS
|
|
1246
|
+
-d, --dry-run Show what would change without making changes
|
|
1247
|
+
-y, --yes Answer yes to confirmation prompts
|
|
1248
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
1249
|
+
|
|
1250
|
+
DESCRIPTION
|
|
1251
|
+
Pull nav menus and the active theme menu locations from WordPress
|
|
1252
|
+
|
|
1253
|
+
EXAMPLES
|
|
1254
|
+
$ lps menu pull
|
|
1255
|
+
```
|
|
1256
|
+
|
|
1257
|
+
_See code: [src/commands/menu/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/menu/pull.ts)_
|
|
1258
|
+
|
|
1259
|
+
## `lps menu push [PATH]`
|
|
1260
|
+
|
|
1261
|
+
Push local nav menus and the active theme menu locations to WordPress. Each menu's post_type/taxonomy items are resolved by slug on the target environment, never by a raw id; an item whose target does not exist there fails the whole menu rather than guessing.
|
|
1262
|
+
|
|
1263
|
+
```
|
|
1264
|
+
USAGE
|
|
1265
|
+
$ lps menu push [PATH] [--env <value>] [-d] [-y]
|
|
1266
|
+
|
|
1267
|
+
ARGUMENTS
|
|
1268
|
+
[PATH] Path to menus directory (overrides project config)
|
|
1269
|
+
|
|
1270
|
+
FLAGS
|
|
1271
|
+
-d, --dry-run Show what would change without making changes
|
|
1272
|
+
-y, --yes Answer yes to confirmation prompts
|
|
1273
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
1274
|
+
|
|
1275
|
+
DESCRIPTION
|
|
1276
|
+
Push local nav menus and the active theme menu locations to WordPress. Each menu's post_type/taxonomy items are
|
|
1277
|
+
resolved by slug on the target environment, never by a raw id; an item whose target does not exist there fails the
|
|
1278
|
+
whole menu rather than guessing.
|
|
1279
|
+
|
|
1280
|
+
EXAMPLES
|
|
1281
|
+
$ lps menu push
|
|
1282
|
+
```
|
|
1283
|
+
|
|
1284
|
+
_See code: [src/commands/menu/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/menu/push.ts)_
|
|
1285
|
+
|
|
1286
|
+
## `lps menu rollback [PATH]`
|
|
1287
|
+
|
|
1288
|
+
Restore nav menus and menu locations to a snapshot taken automatically before an earlier `lps menu push`
|
|
1289
|
+
|
|
1290
|
+
```
|
|
1291
|
+
USAGE
|
|
1292
|
+
$ lps menu rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
|
|
1293
|
+
|
|
1294
|
+
ARGUMENTS
|
|
1295
|
+
[PATH] Path to menus directory (overrides project config)
|
|
1296
|
+
|
|
1297
|
+
FLAGS
|
|
1298
|
+
-d, --dry-run Show what would change without making changes
|
|
1299
|
+
-y, --yes Answer yes to confirmation prompts
|
|
1300
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
1301
|
+
--list List available snapshots instead of rolling back
|
|
1302
|
+
--to=<value> Roll back to this snapshot id instead of the most recent one
|
|
1303
|
+
|
|
1304
|
+
GLOBAL FLAGS
|
|
1305
|
+
--json Format output as json.
|
|
1306
|
+
|
|
1307
|
+
DESCRIPTION
|
|
1308
|
+
Restore nav menus and menu locations to a snapshot taken automatically before an earlier `lps menu push`
|
|
1309
|
+
|
|
1310
|
+
EXAMPLES
|
|
1311
|
+
$ lps menu rollback
|
|
1312
|
+
|
|
1313
|
+
$ lps menu rollback --list
|
|
1314
|
+
|
|
1315
|
+
$ lps menu rollback --to 1732000000000
|
|
1316
|
+
|
|
1317
|
+
$ lps menu rollback --dry-run
|
|
1318
|
+
```
|
|
1319
|
+
|
|
1320
|
+
_See code: [src/commands/menu/rollback.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/menu/rollback.ts)_
|
|
1013
1321
|
|
|
1014
1322
|
## `lps option add NAME`
|
|
1015
1323
|
|
|
@@ -1040,7 +1348,7 @@ EXAMPLES
|
|
|
1040
1348
|
$ lps option add siteurl
|
|
1041
1349
|
```
|
|
1042
1350
|
|
|
1043
|
-
_See code: [src/commands/option/add.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1351
|
+
_See code: [src/commands/option/add.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/option/add.ts)_
|
|
1044
1352
|
|
|
1045
1353
|
## `lps option diff [PATH]`
|
|
1046
1354
|
|
|
@@ -1072,7 +1380,7 @@ EXAMPLES
|
|
|
1072
1380
|
$ lps option diff --env staging --against production
|
|
1073
1381
|
```
|
|
1074
1382
|
|
|
1075
|
-
_See code: [src/commands/option/diff.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1383
|
+
_See code: [src/commands/option/diff.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/option/diff.ts)_
|
|
1076
1384
|
|
|
1077
1385
|
## `lps option list`
|
|
1078
1386
|
|
|
@@ -1102,7 +1410,7 @@ EXAMPLES
|
|
|
1102
1410
|
$ lps option list --no-core
|
|
1103
1411
|
```
|
|
1104
1412
|
|
|
1105
|
-
_See code: [src/commands/option/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1413
|
+
_See code: [src/commands/option/list.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/option/list.ts)_
|
|
1106
1414
|
|
|
1107
1415
|
## `lps option pull [PATH]`
|
|
1108
1416
|
|
|
@@ -1131,7 +1439,7 @@ EXAMPLES
|
|
|
1131
1439
|
$ lps option pull
|
|
1132
1440
|
```
|
|
1133
1441
|
|
|
1134
|
-
_See code: [src/commands/option/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1442
|
+
_See code: [src/commands/option/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/option/pull.ts)_
|
|
1135
1443
|
|
|
1136
1444
|
## `lps option push [PATH]`
|
|
1137
1445
|
|
|
@@ -1160,7 +1468,7 @@ EXAMPLES
|
|
|
1160
1468
|
$ lps option push
|
|
1161
1469
|
```
|
|
1162
1470
|
|
|
1163
|
-
_See code: [src/commands/option/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1471
|
+
_See code: [src/commands/option/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/option/push.ts)_
|
|
1164
1472
|
|
|
1165
1473
|
## `lps option remove NAME`
|
|
1166
1474
|
|
|
@@ -1193,7 +1501,43 @@ EXAMPLES
|
|
|
1193
1501
|
$ lps option remove wpseo_titles --local-only
|
|
1194
1502
|
```
|
|
1195
1503
|
|
|
1196
|
-
_See code: [src/commands/option/remove.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1504
|
+
_See code: [src/commands/option/remove.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/option/remove.ts)_
|
|
1505
|
+
|
|
1506
|
+
## `lps option rollback [PATH]`
|
|
1507
|
+
|
|
1508
|
+
Restore tracked options to a snapshot taken automatically before an earlier `lps option push`
|
|
1509
|
+
|
|
1510
|
+
```
|
|
1511
|
+
USAGE
|
|
1512
|
+
$ lps option rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
|
|
1513
|
+
|
|
1514
|
+
ARGUMENTS
|
|
1515
|
+
[PATH] Path to options directory (overrides project config)
|
|
1516
|
+
|
|
1517
|
+
FLAGS
|
|
1518
|
+
-d, --dry-run Show what would change without making changes
|
|
1519
|
+
-y, --yes Answer yes to confirmation prompts
|
|
1520
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
1521
|
+
--list List available snapshots instead of rolling back
|
|
1522
|
+
--to=<value> Roll back to this snapshot id instead of the most recent one
|
|
1523
|
+
|
|
1524
|
+
GLOBAL FLAGS
|
|
1525
|
+
--json Format output as json.
|
|
1526
|
+
|
|
1527
|
+
DESCRIPTION
|
|
1528
|
+
Restore tracked options to a snapshot taken automatically before an earlier `lps option push`
|
|
1529
|
+
|
|
1530
|
+
EXAMPLES
|
|
1531
|
+
$ lps option rollback
|
|
1532
|
+
|
|
1533
|
+
$ lps option rollback --list
|
|
1534
|
+
|
|
1535
|
+
$ lps option rollback --to 1732000000000
|
|
1536
|
+
|
|
1537
|
+
$ lps option rollback --dry-run
|
|
1538
|
+
```
|
|
1539
|
+
|
|
1540
|
+
_See code: [src/commands/option/rollback.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/option/rollback.ts)_
|
|
1197
1541
|
|
|
1198
1542
|
## `lps plugin add SLUG`
|
|
1199
1543
|
|
|
@@ -1222,7 +1566,7 @@ EXAMPLES
|
|
|
1222
1566
|
$ lps plugin add contact-form-7 --dry-run
|
|
1223
1567
|
```
|
|
1224
1568
|
|
|
1225
|
-
_See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1569
|
+
_See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/plugin/add.ts)_
|
|
1226
1570
|
|
|
1227
1571
|
## `lps plugin audit`
|
|
1228
1572
|
|
|
@@ -1245,7 +1589,7 @@ EXAMPLES
|
|
|
1245
1589
|
$ lps plugin audit
|
|
1246
1590
|
```
|
|
1247
1591
|
|
|
1248
|
-
_See code: [src/commands/plugin/audit.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1592
|
+
_See code: [src/commands/plugin/audit.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/plugin/audit.ts)_
|
|
1249
1593
|
|
|
1250
1594
|
## `lps plugin pull`
|
|
1251
1595
|
|
|
@@ -1271,7 +1615,7 @@ EXAMPLES
|
|
|
1271
1615
|
$ lps plugin pull --dry-run
|
|
1272
1616
|
```
|
|
1273
1617
|
|
|
1274
|
-
_See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1618
|
+
_See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/plugin/pull.ts)_
|
|
1275
1619
|
|
|
1276
1620
|
## `lps plugin push`
|
|
1277
1621
|
|
|
@@ -1302,7 +1646,7 @@ EXAMPLES
|
|
|
1302
1646
|
$ lps plugin push --force --prune
|
|
1303
1647
|
```
|
|
1304
1648
|
|
|
1305
|
-
_See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1649
|
+
_See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/plugin/push.ts)_
|
|
1306
1650
|
|
|
1307
1651
|
## `lps plugin status`
|
|
1308
1652
|
|
|
@@ -1325,7 +1669,7 @@ EXAMPLES
|
|
|
1325
1669
|
$ lps plugin status
|
|
1326
1670
|
```
|
|
1327
1671
|
|
|
1328
|
-
_See code: [src/commands/plugin/status.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1672
|
+
_See code: [src/commands/plugin/status.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/plugin/status.ts)_
|
|
1329
1673
|
|
|
1330
1674
|
## `lps project config`
|
|
1331
1675
|
|
|
@@ -1343,7 +1687,7 @@ EXAMPLES
|
|
|
1343
1687
|
$ lps project config
|
|
1344
1688
|
```
|
|
1345
1689
|
|
|
1346
|
-
_See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1690
|
+
_See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/project/config.ts)_
|
|
1347
1691
|
|
|
1348
1692
|
## `lps project list`
|
|
1349
1693
|
|
|
@@ -1363,7 +1707,7 @@ EXAMPLES
|
|
|
1363
1707
|
$ lps project list
|
|
1364
1708
|
```
|
|
1365
1709
|
|
|
1366
|
-
_See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1710
|
+
_See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/project/list.ts)_
|
|
1367
1711
|
|
|
1368
1712
|
## `lps project pull`
|
|
1369
1713
|
|
|
@@ -1380,7 +1724,7 @@ EXAMPLES
|
|
|
1380
1724
|
$ lps project pull
|
|
1381
1725
|
```
|
|
1382
1726
|
|
|
1383
|
-
_See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1727
|
+
_See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/project/pull.ts)_
|
|
1384
1728
|
|
|
1385
1729
|
## `lps project push`
|
|
1386
1730
|
|
|
@@ -1400,7 +1744,7 @@ EXAMPLES
|
|
|
1400
1744
|
$ lps project push
|
|
1401
1745
|
```
|
|
1402
1746
|
|
|
1403
|
-
_See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1747
|
+
_See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/project/push.ts)_
|
|
1404
1748
|
|
|
1405
1749
|
## `lps project remove`
|
|
1406
1750
|
|
|
@@ -1417,7 +1761,7 @@ EXAMPLES
|
|
|
1417
1761
|
$ lps project remove
|
|
1418
1762
|
```
|
|
1419
1763
|
|
|
1420
|
-
_See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1764
|
+
_See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/project/remove.ts)_
|
|
1421
1765
|
|
|
1422
1766
|
## `lps project rotate`
|
|
1423
1767
|
|
|
@@ -1439,7 +1783,7 @@ EXAMPLES
|
|
|
1439
1783
|
$ lps project rotate --env staging
|
|
1440
1784
|
```
|
|
1441
1785
|
|
|
1442
|
-
_See code: [src/commands/project/rotate.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1786
|
+
_See code: [src/commands/project/rotate.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/project/rotate.ts)_
|
|
1443
1787
|
|
|
1444
1788
|
## `lps project switch`
|
|
1445
1789
|
|
|
@@ -1456,7 +1800,7 @@ EXAMPLES
|
|
|
1456
1800
|
$ lps project switch
|
|
1457
1801
|
```
|
|
1458
1802
|
|
|
1459
|
-
_See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1803
|
+
_See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/project/switch.ts)_
|
|
1460
1804
|
|
|
1461
1805
|
## `lps promote FROM TO`
|
|
1462
1806
|
|
|
@@ -1464,7 +1808,7 @@ Copy every tracked resource from one environment to another by pulling from <fro
|
|
|
1464
1808
|
|
|
1465
1809
|
```
|
|
1466
1810
|
USAGE
|
|
1467
|
-
$ lps promote FROM TO [-d] [-y]
|
|
1811
|
+
$ lps promote FROM TO [--json] [-d] [-y]
|
|
1468
1812
|
|
|
1469
1813
|
ARGUMENTS
|
|
1470
1814
|
FROM Environment to copy the configuration from
|
|
@@ -1474,6 +1818,9 @@ FLAGS
|
|
|
1474
1818
|
-d, --dry-run Show what would change without making changes
|
|
1475
1819
|
-y, --yes Answer yes to confirmation prompts
|
|
1476
1820
|
|
|
1821
|
+
GLOBAL FLAGS
|
|
1822
|
+
--json Format output as json.
|
|
1823
|
+
|
|
1477
1824
|
DESCRIPTION
|
|
1478
1825
|
Copy every tracked resource from one environment to another by pulling from <from> then pushing to <to>. Local tracked
|
|
1479
1826
|
files are overwritten with <from> in the process.
|
|
@@ -1484,24 +1831,27 @@ EXAMPLES
|
|
|
1484
1831
|
$ lps promote production staging --dry-run
|
|
1485
1832
|
```
|
|
1486
1833
|
|
|
1487
|
-
_See code: [src/commands/promote.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1834
|
+
_See code: [src/commands/promote.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/promote.ts)_
|
|
1488
1835
|
|
|
1489
1836
|
## `lps pull`
|
|
1490
1837
|
|
|
1491
|
-
Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, from WordPress
|
|
1838
|
+
Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, menus, options, and snippets, from WordPress
|
|
1492
1839
|
|
|
1493
1840
|
```
|
|
1494
1841
|
USAGE
|
|
1495
|
-
$ lps pull [--env <value>] [-d] [-y]
|
|
1842
|
+
$ lps pull [--json] [--env <value>] [-d] [-y]
|
|
1496
1843
|
|
|
1497
1844
|
FLAGS
|
|
1498
1845
|
-d, --dry-run Show what would change without making changes
|
|
1499
1846
|
-y, --yes Answer yes to confirmation prompts
|
|
1500
1847
|
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
1501
1848
|
|
|
1849
|
+
GLOBAL FLAGS
|
|
1850
|
+
--json Format output as json.
|
|
1851
|
+
|
|
1502
1852
|
DESCRIPTION
|
|
1503
|
-
Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets,
|
|
1504
|
-
WordPress
|
|
1853
|
+
Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, menus, options, and snippets,
|
|
1854
|
+
from WordPress
|
|
1505
1855
|
|
|
1506
1856
|
EXAMPLES
|
|
1507
1857
|
$ lps pull
|
|
@@ -1511,24 +1861,27 @@ EXAMPLES
|
|
|
1511
1861
|
$ lps pull --dry-run
|
|
1512
1862
|
```
|
|
1513
1863
|
|
|
1514
|
-
_See code: [src/commands/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1864
|
+
_See code: [src/commands/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/pull.ts)_
|
|
1515
1865
|
|
|
1516
1866
|
## `lps push`
|
|
1517
1867
|
|
|
1518
|
-
Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, to WordPress
|
|
1868
|
+
Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, menus, options, and snippets, to WordPress
|
|
1519
1869
|
|
|
1520
1870
|
```
|
|
1521
1871
|
USAGE
|
|
1522
|
-
$ lps push [--env <value>] [-d] [-y]
|
|
1872
|
+
$ lps push [--json] [--env <value>] [-d] [-y]
|
|
1523
1873
|
|
|
1524
1874
|
FLAGS
|
|
1525
1875
|
-d, --dry-run Show what would change without making changes
|
|
1526
1876
|
-y, --yes Answer yes to confirmation prompts
|
|
1527
1877
|
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
1528
1878
|
|
|
1879
|
+
GLOBAL FLAGS
|
|
1880
|
+
--json Format output as json.
|
|
1881
|
+
|
|
1529
1882
|
DESCRIPTION
|
|
1530
|
-
Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and
|
|
1531
|
-
WordPress
|
|
1883
|
+
Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, menus, options, and
|
|
1884
|
+
snippets, to WordPress
|
|
1532
1885
|
|
|
1533
1886
|
EXAMPLES
|
|
1534
1887
|
$ lps push
|
|
@@ -1538,7 +1891,7 @@ EXAMPLES
|
|
|
1538
1891
|
$ lps push --dry-run
|
|
1539
1892
|
```
|
|
1540
1893
|
|
|
1541
|
-
_See code: [src/commands/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1894
|
+
_See code: [src/commands/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/push.ts)_
|
|
1542
1895
|
|
|
1543
1896
|
## `lps seo diff [PATH]`
|
|
1544
1897
|
|
|
@@ -1570,7 +1923,7 @@ EXAMPLES
|
|
|
1570
1923
|
$ lps seo diff --env staging --against production
|
|
1571
1924
|
```
|
|
1572
1925
|
|
|
1573
|
-
_See code: [src/commands/seo/diff.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1926
|
+
_See code: [src/commands/seo/diff.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/seo/diff.ts)_
|
|
1574
1927
|
|
|
1575
1928
|
## `lps seo list`
|
|
1576
1929
|
|
|
@@ -1596,7 +1949,7 @@ EXAMPLES
|
|
|
1596
1949
|
$ lps seo list --post-type post
|
|
1597
1950
|
```
|
|
1598
1951
|
|
|
1599
|
-
_See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1952
|
+
_See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/seo/list.ts)_
|
|
1600
1953
|
|
|
1601
1954
|
## `lps seo pull [PATH]`
|
|
1602
1955
|
|
|
@@ -1624,7 +1977,7 @@ EXAMPLES
|
|
|
1624
1977
|
$ lps seo pull --post-type post --post-type page
|
|
1625
1978
|
```
|
|
1626
1979
|
|
|
1627
|
-
_See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1980
|
+
_See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/seo/pull.ts)_
|
|
1628
1981
|
|
|
1629
1982
|
## `lps seo push [PATH]`
|
|
1630
1983
|
|
|
@@ -1654,7 +2007,43 @@ EXAMPLES
|
|
|
1654
2007
|
$ lps seo push --allow-external-redirects
|
|
1655
2008
|
```
|
|
1656
2009
|
|
|
1657
|
-
_See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2010
|
+
_See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/seo/push.ts)_
|
|
2011
|
+
|
|
2012
|
+
## `lps seo rollback [PATH]`
|
|
2013
|
+
|
|
2014
|
+
Restore SEO settings, post meta, and redirects to a snapshot taken automatically before an earlier `lps seo push`
|
|
2015
|
+
|
|
2016
|
+
```
|
|
2017
|
+
USAGE
|
|
2018
|
+
$ lps seo rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
|
|
2019
|
+
|
|
2020
|
+
ARGUMENTS
|
|
2021
|
+
[PATH] Path to SEO directory (overrides project config)
|
|
2022
|
+
|
|
2023
|
+
FLAGS
|
|
2024
|
+
-d, --dry-run Show what would change without making changes
|
|
2025
|
+
-y, --yes Answer yes to confirmation prompts
|
|
2026
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
2027
|
+
--list List available snapshots instead of rolling back
|
|
2028
|
+
--to=<value> Roll back to this snapshot id instead of the most recent one
|
|
2029
|
+
|
|
2030
|
+
GLOBAL FLAGS
|
|
2031
|
+
--json Format output as json.
|
|
2032
|
+
|
|
2033
|
+
DESCRIPTION
|
|
2034
|
+
Restore SEO settings, post meta, and redirects to a snapshot taken automatically before an earlier `lps seo push`
|
|
2035
|
+
|
|
2036
|
+
EXAMPLES
|
|
2037
|
+
$ lps seo rollback
|
|
2038
|
+
|
|
2039
|
+
$ lps seo rollback --list
|
|
2040
|
+
|
|
2041
|
+
$ lps seo rollback --to 1732000000000
|
|
2042
|
+
|
|
2043
|
+
$ lps seo rollback --dry-run
|
|
2044
|
+
```
|
|
2045
|
+
|
|
2046
|
+
_See code: [src/commands/seo/rollback.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/seo/rollback.ts)_
|
|
1658
2047
|
|
|
1659
2048
|
## `lps snippet diff [PATH]`
|
|
1660
2049
|
|
|
@@ -1685,7 +2074,7 @@ EXAMPLES
|
|
|
1685
2074
|
$ lps snippet diff --env staging --against production
|
|
1686
2075
|
```
|
|
1687
2076
|
|
|
1688
|
-
_See code: [src/commands/snippet/diff.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2077
|
+
_See code: [src/commands/snippet/diff.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/snippet/diff.ts)_
|
|
1689
2078
|
|
|
1690
2079
|
## `lps snippet list`
|
|
1691
2080
|
|
|
@@ -1708,7 +2097,7 @@ EXAMPLES
|
|
|
1708
2097
|
$ lps snippet list
|
|
1709
2098
|
```
|
|
1710
2099
|
|
|
1711
|
-
_See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2100
|
+
_See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/snippet/list.ts)_
|
|
1712
2101
|
|
|
1713
2102
|
## `lps snippet publish [PATH]`
|
|
1714
2103
|
|
|
@@ -1731,7 +2120,7 @@ EXAMPLES
|
|
|
1731
2120
|
$ lps snippet publish --path ./snippets
|
|
1732
2121
|
```
|
|
1733
2122
|
|
|
1734
|
-
_See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2123
|
+
_See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/snippet/publish.ts)_
|
|
1735
2124
|
|
|
1736
2125
|
## `lps snippet pull [PATH]`
|
|
1737
2126
|
|
|
@@ -1761,7 +2150,7 @@ EXAMPLES
|
|
|
1761
2150
|
$ lps snippet pull --path ./snippets
|
|
1762
2151
|
```
|
|
1763
2152
|
|
|
1764
|
-
_See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2153
|
+
_See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/snippet/pull.ts)_
|
|
1765
2154
|
|
|
1766
2155
|
## `lps snippet push [PATH]`
|
|
1767
2156
|
|
|
@@ -1792,7 +2181,43 @@ EXAMPLES
|
|
|
1792
2181
|
$ lps snippet push --path ./snippets
|
|
1793
2182
|
```
|
|
1794
2183
|
|
|
1795
|
-
_See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2184
|
+
_See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/snippet/push.ts)_
|
|
2185
|
+
|
|
2186
|
+
## `lps snippet rollback [PATH]`
|
|
2187
|
+
|
|
2188
|
+
Restore snippets to a snapshot taken automatically before an earlier `lps snippet push`
|
|
2189
|
+
|
|
2190
|
+
```
|
|
2191
|
+
USAGE
|
|
2192
|
+
$ lps snippet rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
|
|
2193
|
+
|
|
2194
|
+
ARGUMENTS
|
|
2195
|
+
[PATH] Path to snippets directory (overrides project config)
|
|
2196
|
+
|
|
2197
|
+
FLAGS
|
|
2198
|
+
-d, --dry-run Show what would change without making changes
|
|
2199
|
+
-y, --yes Answer yes to confirmation prompts
|
|
2200
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
2201
|
+
--list List available snapshots instead of rolling back
|
|
2202
|
+
--to=<value> Roll back to this snapshot id instead of the most recent one
|
|
2203
|
+
|
|
2204
|
+
GLOBAL FLAGS
|
|
2205
|
+
--json Format output as json.
|
|
2206
|
+
|
|
2207
|
+
DESCRIPTION
|
|
2208
|
+
Restore snippets to a snapshot taken automatically before an earlier `lps snippet push`
|
|
2209
|
+
|
|
2210
|
+
EXAMPLES
|
|
2211
|
+
$ lps snippet rollback
|
|
2212
|
+
|
|
2213
|
+
$ lps snippet rollback --list
|
|
2214
|
+
|
|
2215
|
+
$ lps snippet rollback --to 1732000000000
|
|
2216
|
+
|
|
2217
|
+
$ lps snippet rollback --dry-run
|
|
2218
|
+
```
|
|
2219
|
+
|
|
2220
|
+
_See code: [src/commands/snippet/rollback.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/snippet/rollback.ts)_
|
|
1796
2221
|
|
|
1797
2222
|
## `lps status`
|
|
1798
2223
|
|
|
@@ -1817,7 +2242,7 @@ EXAMPLES
|
|
|
1817
2242
|
$ lps status --env staging
|
|
1818
2243
|
```
|
|
1819
2244
|
|
|
1820
|
-
_See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2245
|
+
_See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/status.ts)_
|
|
1821
2246
|
|
|
1822
2247
|
## `lps telemetry disable`
|
|
1823
2248
|
|
|
@@ -1834,7 +2259,7 @@ EXAMPLES
|
|
|
1834
2259
|
$ lps telemetry disable
|
|
1835
2260
|
```
|
|
1836
2261
|
|
|
1837
|
-
_See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2262
|
+
_See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/telemetry/disable.ts)_
|
|
1838
2263
|
|
|
1839
2264
|
## `lps telemetry enable`
|
|
1840
2265
|
|
|
@@ -1851,7 +2276,123 @@ EXAMPLES
|
|
|
1851
2276
|
$ lps telemetry enable
|
|
1852
2277
|
```
|
|
1853
2278
|
|
|
1854
|
-
_See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2279
|
+
_See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/telemetry/enable.ts)_
|
|
2280
|
+
|
|
2281
|
+
## `lps theme-styles diff [PATH]`
|
|
2282
|
+
|
|
2283
|
+
Show what differs in the active block theme's Global Styles (Site Editor > Styles) between your local file and a WordPress environment, or between two environments
|
|
2284
|
+
|
|
2285
|
+
```
|
|
2286
|
+
USAGE
|
|
2287
|
+
$ lps theme-styles diff [PATH] [--json] [--env <value>] [--against <value>]
|
|
2288
|
+
|
|
2289
|
+
ARGUMENTS
|
|
2290
|
+
[PATH] Path to theme styles directory (overrides project config)
|
|
2291
|
+
|
|
2292
|
+
FLAGS
|
|
2293
|
+
--against=<value> Compare the primary environment against this second environment instead of against local files
|
|
2294
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
2295
|
+
|
|
2296
|
+
GLOBAL FLAGS
|
|
2297
|
+
--json Format output as json.
|
|
2298
|
+
|
|
2299
|
+
DESCRIPTION
|
|
2300
|
+
Show what differs in the active block theme's Global Styles (Site Editor > Styles) between your local file and a
|
|
2301
|
+
WordPress environment, or between two environments
|
|
2302
|
+
|
|
2303
|
+
EXAMPLES
|
|
2304
|
+
$ lps theme-styles diff
|
|
2305
|
+
|
|
2306
|
+
$ lps theme-styles diff --env staging
|
|
2307
|
+
|
|
2308
|
+
$ lps theme-styles diff --env staging --against production
|
|
2309
|
+
```
|
|
2310
|
+
|
|
2311
|
+
_See code: [src/commands/theme-styles/diff.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/theme-styles/diff.ts)_
|
|
2312
|
+
|
|
2313
|
+
## `lps theme-styles pull [PATH]`
|
|
2314
|
+
|
|
2315
|
+
Pull the active block theme's Global Styles customizations (Site Editor > Styles) from WordPress into a local file
|
|
2316
|
+
|
|
2317
|
+
```
|
|
2318
|
+
USAGE
|
|
2319
|
+
$ lps theme-styles pull [PATH] [--env <value>] [-d]
|
|
2320
|
+
|
|
2321
|
+
ARGUMENTS
|
|
2322
|
+
[PATH] Path to theme styles directory (overrides project config)
|
|
2323
|
+
|
|
2324
|
+
FLAGS
|
|
2325
|
+
-d, --dry-run Show what would change without making changes
|
|
2326
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
2327
|
+
|
|
2328
|
+
DESCRIPTION
|
|
2329
|
+
Pull the active block theme's Global Styles customizations (Site Editor > Styles) from WordPress into a local file
|
|
2330
|
+
|
|
2331
|
+
EXAMPLES
|
|
2332
|
+
$ lps theme-styles pull
|
|
2333
|
+
```
|
|
2334
|
+
|
|
2335
|
+
_See code: [src/commands/theme-styles/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/theme-styles/pull.ts)_
|
|
2336
|
+
|
|
2337
|
+
## `lps theme-styles push [PATH]`
|
|
2338
|
+
|
|
2339
|
+
Push the local Global Styles file to the active block theme's Site Editor > Styles on WordPress
|
|
2340
|
+
|
|
2341
|
+
```
|
|
2342
|
+
USAGE
|
|
2343
|
+
$ lps theme-styles push [PATH] [--env <value>] [-d]
|
|
2344
|
+
|
|
2345
|
+
ARGUMENTS
|
|
2346
|
+
[PATH] Path to theme styles directory (overrides project config)
|
|
2347
|
+
|
|
2348
|
+
FLAGS
|
|
2349
|
+
-d, --dry-run Show what would change without making changes
|
|
2350
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
2351
|
+
|
|
2352
|
+
DESCRIPTION
|
|
2353
|
+
Push the local Global Styles file to the active block theme's Site Editor > Styles on WordPress
|
|
2354
|
+
|
|
2355
|
+
EXAMPLES
|
|
2356
|
+
$ lps theme-styles push
|
|
2357
|
+
```
|
|
2358
|
+
|
|
2359
|
+
_See code: [src/commands/theme-styles/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/theme-styles/push.ts)_
|
|
2360
|
+
|
|
2361
|
+
## `lps theme-styles rollback [PATH]`
|
|
2362
|
+
|
|
2363
|
+
Restore the active theme’s Global Styles to a snapshot taken automatically before an earlier `lps theme-styles push`
|
|
2364
|
+
|
|
2365
|
+
```
|
|
2366
|
+
USAGE
|
|
2367
|
+
$ lps theme-styles rollback [PATH] [--json] [--env <value>] [-d] [-y] [--list] [--to <value>]
|
|
2368
|
+
|
|
2369
|
+
ARGUMENTS
|
|
2370
|
+
[PATH] Path to theme styles directory (overrides project config)
|
|
2371
|
+
|
|
2372
|
+
FLAGS
|
|
2373
|
+
-d, --dry-run Show what would change without making changes
|
|
2374
|
+
-y, --yes Answer yes to confirmation prompts
|
|
2375
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
2376
|
+
--list List available snapshots instead of rolling back
|
|
2377
|
+
--to=<value> Roll back to this snapshot id instead of the most recent one
|
|
2378
|
+
|
|
2379
|
+
GLOBAL FLAGS
|
|
2380
|
+
--json Format output as json.
|
|
2381
|
+
|
|
2382
|
+
DESCRIPTION
|
|
2383
|
+
Restore the active theme’s Global Styles to a snapshot taken automatically before an earlier `lps theme-styles push`
|
|
2384
|
+
|
|
2385
|
+
EXAMPLES
|
|
2386
|
+
$ lps theme-styles rollback
|
|
2387
|
+
|
|
2388
|
+
$ lps theme-styles rollback --list
|
|
2389
|
+
|
|
2390
|
+
$ lps theme-styles rollback --to 1732000000000
|
|
2391
|
+
|
|
2392
|
+
$ lps theme-styles rollback --dry-run
|
|
2393
|
+
```
|
|
2394
|
+
|
|
2395
|
+
_See code: [src/commands/theme-styles/rollback.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/theme-styles/rollback.ts)_
|
|
1855
2396
|
|
|
1856
2397
|
## `lps theme add SLUG`
|
|
1857
2398
|
|
|
@@ -1878,7 +2419,7 @@ EXAMPLES
|
|
|
1878
2419
|
$ lps theme add generatepress --version 3.4.0
|
|
1879
2420
|
```
|
|
1880
2421
|
|
|
1881
|
-
_See code: [src/commands/theme/add.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2422
|
+
_See code: [src/commands/theme/add.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/theme/add.ts)_
|
|
1882
2423
|
|
|
1883
2424
|
## `lps theme pull`
|
|
1884
2425
|
|
|
@@ -1902,7 +2443,7 @@ EXAMPLES
|
|
|
1902
2443
|
$ lps theme pull
|
|
1903
2444
|
```
|
|
1904
2445
|
|
|
1905
|
-
_See code: [src/commands/theme/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2446
|
+
_See code: [src/commands/theme/pull.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/theme/pull.ts)_
|
|
1906
2447
|
|
|
1907
2448
|
## `lps theme push`
|
|
1908
2449
|
|
|
@@ -1930,7 +2471,7 @@ EXAMPLES
|
|
|
1930
2471
|
$ lps theme push --force
|
|
1931
2472
|
```
|
|
1932
2473
|
|
|
1933
|
-
_See code: [src/commands/theme/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2474
|
+
_See code: [src/commands/theme/push.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/theme/push.ts)_
|
|
1934
2475
|
|
|
1935
2476
|
## `lps theme status`
|
|
1936
2477
|
|
|
@@ -1953,7 +2494,7 @@ EXAMPLES
|
|
|
1953
2494
|
$ lps theme status
|
|
1954
2495
|
```
|
|
1955
2496
|
|
|
1956
|
-
_See code: [src/commands/theme/status.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2497
|
+
_See code: [src/commands/theme/status.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/theme/status.ts)_
|
|
1957
2498
|
|
|
1958
2499
|
## `lps validate`
|
|
1959
2500
|
|
|
@@ -1973,5 +2514,5 @@ EXAMPLES
|
|
|
1973
2514
|
$ lps validate
|
|
1974
2515
|
```
|
|
1975
2516
|
|
|
1976
|
-
_See code: [src/commands/validate.ts](https://github.com/loopress/loopress/blob/v0.
|
|
2517
|
+
_See code: [src/commands/validate.ts](https://github.com/loopress/loopress/blob/v0.25.0/src/commands/validate.ts)_
|
|
1977
2518
|
<!-- commandsstop -->
|