@loopress/cli 0.17.0 → 0.19.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 (68) hide show
  1. package/README.md +266 -59
  2. package/dist/commands/acf/pull.d.ts +1 -1
  3. package/dist/commands/acf/pull.js +12 -25
  4. package/dist/commands/acf/push.d.ts +1 -1
  5. package/dist/commands/acf/push.js +18 -47
  6. package/dist/commands/api/list.d.ts +9 -0
  7. package/dist/commands/api/list.js +26 -0
  8. package/dist/commands/api/pull.d.ts +13 -0
  9. package/dist/commands/api/pull.js +49 -0
  10. package/dist/commands/api/push.d.ts +15 -0
  11. package/dist/commands/api/push.js +70 -0
  12. package/dist/commands/composer/init.js +11 -1
  13. package/dist/commands/composer/push.d.ts +1 -0
  14. package/dist/commands/composer/push.js +17 -4
  15. package/dist/commands/doctor.d.ts +8 -0
  16. package/dist/commands/doctor.js +79 -0
  17. package/dist/commands/form/list.d.ts +9 -0
  18. package/dist/commands/form/list.js +26 -0
  19. package/dist/commands/form/pull.d.ts +13 -0
  20. package/dist/commands/form/pull.js +60 -0
  21. package/dist/commands/form/push.d.ts +16 -0
  22. package/dist/commands/form/push.js +122 -0
  23. package/dist/commands/init.d.ts +2 -0
  24. package/dist/commands/init.js +64 -33
  25. package/dist/commands/plugin/push.d.ts +1 -1
  26. package/dist/commands/plugin/push.js +2 -14
  27. package/dist/commands/project/config.js +4 -0
  28. package/dist/commands/project/push.d.ts +5 -0
  29. package/dist/commands/project/push.js +21 -11
  30. package/dist/commands/seo/pull.d.ts +1 -3
  31. package/dist/commands/seo/pull.js +15 -43
  32. package/dist/commands/seo/push.d.ts +1 -1
  33. package/dist/commands/seo/push.js +4 -17
  34. package/dist/commands/snippet/publish.js +2 -2
  35. package/dist/commands/snippet/pull.d.ts +1 -4
  36. package/dist/commands/snippet/pull.js +12 -60
  37. package/dist/commands/snippet/push.d.ts +1 -1
  38. package/dist/commands/snippet/push.js +4 -13
  39. package/dist/commands/status.d.ts +4 -0
  40. package/dist/commands/status.js +25 -4
  41. package/dist/config/project-config.manager.js +2 -2
  42. package/dist/lib/api-client.d.ts +2 -1
  43. package/dist/lib/api-client.js +10 -3
  44. package/dist/lib/base.d.ts +11 -0
  45. package/dist/lib/base.js +71 -2
  46. package/dist/lib/find-orphaned-files.d.ts +7 -0
  47. package/dist/lib/find-orphaned-files.js +29 -0
  48. package/dist/lib/interactive.d.ts +1 -0
  49. package/dist/lib/interactive.js +7 -0
  50. package/dist/lib/load-files.d.ts +5 -0
  51. package/dist/lib/load-files.js +31 -0
  52. package/dist/lib/push-command.d.ts +7 -0
  53. package/dist/lib/push-command.js +40 -2
  54. package/dist/lib/wp-client.d.ts +9 -4
  55. package/dist/lib/wp-client.js +26 -12
  56. package/dist/types/project-config.generated.d.ts +8 -0
  57. package/dist/utils/composer.d.ts +3 -0
  58. package/dist/utils/form-format.d.ts +3 -0
  59. package/dist/utils/form-format.js +17 -0
  60. package/dist/utils/seo-format.d.ts +1 -0
  61. package/dist/utils/seo-format.js +5 -0
  62. package/dist/utils/snippet-format.d.ts +2 -0
  63. package/dist/utils/snippet-format.js +27 -1
  64. package/dist/utils/to-slug.d.ts +1 -0
  65. package/dist/utils/to-slug.js +7 -0
  66. package/oclif.manifest.json +748 -96
  67. package/package.json +26 -17
  68. package/schemas/project-config.schema.json +10 -0
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Loopress
2
2
 
3
- A new CLI generated with oclif
3
+ CLI to interact with the Loopress ecosystem
4
4
 
5
5
  [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
6
- [![Version](https://img.shields.io/npm/v/mynewcli.svg)](https://npmjs.org/package/mynewcli)
7
- [![Downloads/week](https://img.shields.io/npm/dw/mynewcli.svg)](https://npmjs.org/package/mynewcli)
6
+ [![Version](https://img.shields.io/npm/v/@loopress/cli.svg)](https://www.npmjs.com/package/@loopress/cli)
7
+ [![Downloads/week](https://img.shields.io/npm/dw/@loopress/cli.svg)](https://npmjs.org/package/@loopress/cli)
8
8
 
9
9
  <!-- toc -->
10
10
  * [Loopress](#loopress)
@@ -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.17.0 linux-x64 node-v24.18.0
24
+ @loopress/cli/0.19.0 linux-x64 node-v24.18.0
25
25
  $ lps --help [COMMAND]
26
26
  USAGE
27
27
  $ lps COMMAND
@@ -50,9 +50,16 @@ report.
50
50
  * [`lps acf list`](#lps-acf-list)
51
51
  * [`lps acf pull [PATH]`](#lps-acf-pull-path)
52
52
  * [`lps acf push [PATH]`](#lps-acf-push-path)
53
+ * [`lps api list`](#lps-api-list)
54
+ * [`lps api pull [PATH]`](#lps-api-pull-path)
55
+ * [`lps api push [PATH]`](#lps-api-push-path)
53
56
  * [`lps composer init`](#lps-composer-init)
54
57
  * [`lps composer pull`](#lps-composer-pull)
55
58
  * [`lps composer push`](#lps-composer-push)
59
+ * [`lps doctor`](#lps-doctor)
60
+ * [`lps form list`](#lps-form-list)
61
+ * [`lps form pull [PATH]`](#lps-form-pull-path)
62
+ * [`lps form push [PATH]`](#lps-form-push-path)
56
63
  * [`lps help [COMMAND]`](#lps-help-command)
57
64
  * [`lps init`](#lps-init)
58
65
  * [`lps login`](#lps-login)
@@ -83,10 +90,11 @@ List ACF field groups, post types, taxonomies, and options pages from WordPress
83
90
 
84
91
  ```
85
92
  USAGE
86
- $ lps acf list [-j] [--type field-groups|post-types|taxonomies|options-pages...]
93
+ $ lps acf list [--env <value>] [-j] [--type field-groups|post-types|taxonomies|options-pages...]
87
94
 
88
95
  FLAGS
89
96
  -j, --json Output in JSON format
97
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
90
98
  --type=<option>... Limit to specific ACF object types
91
99
  <options: field-groups|post-types|taxonomies|options-pages>
92
100
 
@@ -99,7 +107,7 @@ EXAMPLES
99
107
  $ lps acf list --type field-groups
100
108
  ```
101
109
 
102
- _See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/acf/list.ts)_
110
+ _See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/acf/list.ts)_
103
111
 
104
112
  ## `lps acf pull [PATH]`
105
113
 
@@ -107,13 +115,15 @@ Pull ACF field groups, post types, taxonomies, and options pages from WordPress
107
115
 
108
116
  ```
109
117
  USAGE
110
- $ lps acf pull [PATH] [-d] [--type field-groups|post-types|taxonomies|options-pages...]
118
+ $ lps acf pull [PATH] [--env <value>] [-d] [-y] [--type field-groups|post-types|taxonomies|options-pages...]
111
119
 
112
120
  ARGUMENTS
113
121
  [PATH] Path to ACF directory (overrides project config)
114
122
 
115
123
  FLAGS
116
124
  -d, --dry-run Show what would change without making changes
125
+ -y, --yes Answer yes to confirmation prompts
126
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
117
127
  --type=<option>... Limit to specific ACF object types
118
128
  <options: field-groups|post-types|taxonomies|options-pages>
119
129
 
@@ -126,7 +136,7 @@ EXAMPLES
126
136
  $ lps acf pull --type field-groups
127
137
  ```
128
138
 
129
- _See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/acf/pull.ts)_
139
+ _See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/acf/pull.ts)_
130
140
 
131
141
  ## `lps acf push [PATH]`
132
142
 
@@ -134,13 +144,15 @@ Push ACF field groups, post types, taxonomies, and options pages to WordPress
134
144
 
135
145
  ```
136
146
  USAGE
137
- $ lps acf push [PATH] [-d] [--type field-groups|post-types|taxonomies|options-pages...]
147
+ $ lps acf push [PATH] [--env <value>] [-d] [-y] [--type field-groups|post-types|taxonomies|options-pages...]
138
148
 
139
149
  ARGUMENTS
140
150
  [PATH] Path to ACF directory (overrides project config)
141
151
 
142
152
  FLAGS
143
153
  -d, --dry-run Show what would change without making changes
154
+ -y, --yes Answer yes to confirmation prompts
155
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
144
156
  --type=<option>... Limit to specific ACF object types
145
157
  <options: field-groups|post-types|taxonomies|options-pages>
146
158
 
@@ -153,7 +165,82 @@ EXAMPLES
153
165
  $ lps acf push --type field-groups
154
166
  ```
155
167
 
156
- _See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/acf/push.ts)_
168
+ _See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/acf/push.ts)_
169
+
170
+ ## `lps api list`
171
+
172
+ List custom API route files from WordPress
173
+
174
+ ```
175
+ USAGE
176
+ $ lps api list [--env <value>] [-j]
177
+
178
+ FLAGS
179
+ -j, --json Output in JSON format
180
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
181
+
182
+ DESCRIPTION
183
+ List custom API route files from WordPress
184
+
185
+ EXAMPLES
186
+ $ lps api list
187
+ ```
188
+
189
+ _See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/api/list.ts)_
190
+
191
+ ## `lps api pull [PATH]`
192
+
193
+ Pull custom API route files from WordPress
194
+
195
+ ```
196
+ USAGE
197
+ $ lps api pull [PATH] [--env <value>] [-d] [-y]
198
+
199
+ ARGUMENTS
200
+ [PATH] Path to api directory (overrides project config)
201
+
202
+ FLAGS
203
+ -d, --dry-run Show what would change without making changes
204
+ -y, --yes Answer yes to confirmation prompts
205
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
206
+
207
+ DESCRIPTION
208
+ Pull custom API route files from WordPress
209
+
210
+ EXAMPLES
211
+ $ lps api pull
212
+
213
+ $ lps api pull --path ./api
214
+ ```
215
+
216
+ _See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/api/pull.ts)_
217
+
218
+ ## `lps api push [PATH]`
219
+
220
+ Push custom API route files to WordPress
221
+
222
+ ```
223
+ USAGE
224
+ $ lps api push [PATH] [--env <value>] [-d] [-y]
225
+
226
+ ARGUMENTS
227
+ [PATH] Path to api directory (overrides project config)
228
+
229
+ FLAGS
230
+ -d, --dry-run Show what would change without making changes
231
+ -y, --yes Answer yes to confirmation prompts
232
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
233
+
234
+ DESCRIPTION
235
+ Push custom API route files to WordPress
236
+
237
+ EXAMPLES
238
+ $ lps api push
239
+
240
+ $ lps api push --path ./api
241
+ ```
242
+
243
+ _See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/api/push.ts)_
157
244
 
158
245
  ## `lps composer init`
159
246
 
@@ -161,10 +248,11 @@ Create a composer.json wired to WPackagist for installing WordPress.org plugins
161
248
 
162
249
  ```
163
250
  USAGE
164
- $ lps composer init [-d]
251
+ $ lps composer init [--env <value>] [-d]
165
252
 
166
253
  FLAGS
167
- -d, --dry-run Show what would change without making changes
254
+ -d, --dry-run Show what would change without making changes
255
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
168
256
 
169
257
  DESCRIPTION
170
258
  Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes
@@ -175,7 +263,7 @@ EXAMPLES
175
263
  $ lps composer init --dry-run
176
264
  ```
177
265
 
178
- _See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/composer/init.ts)_
266
+ _See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/composer/init.ts)_
179
267
 
180
268
  ## `lps composer pull`
181
269
 
@@ -183,10 +271,11 @@ Pull composer.json and composer.lock from WordPress
183
271
 
184
272
  ```
185
273
  USAGE
186
- $ lps composer pull [-d]
274
+ $ lps composer pull [--env <value>] [-d]
187
275
 
188
276
  FLAGS
189
- -d, --dry-run Show what would change without making changes
277
+ -d, --dry-run Show what would change without making changes
278
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
190
279
 
191
280
  DESCRIPTION
192
281
  Pull composer.json and composer.lock from WordPress
@@ -197,7 +286,7 @@ EXAMPLES
197
286
  $ lps composer pull --dry-run
198
287
  ```
199
288
 
200
- _See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/composer/pull.ts)_
289
+ _See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/composer/pull.ts)_
201
290
 
202
291
  ## `lps composer push`
203
292
 
@@ -205,10 +294,12 @@ Push composer.json and composer.lock to WordPress and run composer install
205
294
 
206
295
  ```
207
296
  USAGE
208
- $ lps composer push [-d]
297
+ $ lps composer push [--env <value>] [-d] [-y]
209
298
 
210
299
  FLAGS
211
- -d, --dry-run Show what would change without making changes
300
+ -d, --dry-run Show what would change without making changes
301
+ -y, --yes Answer yes to confirmation prompts
302
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
212
303
 
213
304
  DESCRIPTION
214
305
  Push composer.json and composer.lock to WordPress and run composer install
@@ -219,7 +310,101 @@ EXAMPLES
219
310
  $ lps composer push --dry-run
220
311
  ```
221
312
 
222
- _See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/composer/push.ts)_
313
+ _See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/composer/push.ts)_
314
+
315
+ ## `lps doctor`
316
+
317
+ Diagnose connectivity, plugin and credential problems for the targeted environment
318
+
319
+ ```
320
+ USAGE
321
+ $ lps doctor [--env <value>]
322
+
323
+ FLAGS
324
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
325
+
326
+ DESCRIPTION
327
+ Diagnose connectivity, plugin and credential problems for the targeted environment
328
+
329
+ EXAMPLES
330
+ $ lps doctor
331
+
332
+ $ lps doctor --env production
333
+ ```
334
+
335
+ _See code: [src/commands/doctor.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/doctor.ts)_
336
+
337
+ ## `lps form list`
338
+
339
+ List forms from WordPress
340
+
341
+ ```
342
+ USAGE
343
+ $ lps form list [--env <value>] [-j]
344
+
345
+ FLAGS
346
+ -j, --json Output in JSON format
347
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
348
+
349
+ DESCRIPTION
350
+ List forms from WordPress
351
+
352
+ EXAMPLES
353
+ $ lps form list
354
+ ```
355
+
356
+ _See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/form/list.ts)_
357
+
358
+ ## `lps form pull [PATH]`
359
+
360
+ Pull forms from WordPress
361
+
362
+ ```
363
+ USAGE
364
+ $ lps form pull [PATH] [--env <value>] [-d] [-y]
365
+
366
+ ARGUMENTS
367
+ [PATH] Path to forms directory (overrides project config)
368
+
369
+ FLAGS
370
+ -d, --dry-run Show what would change without making changes
371
+ -y, --yes Answer yes to confirmation prompts
372
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
373
+
374
+ DESCRIPTION
375
+ Pull forms from WordPress
376
+
377
+ EXAMPLES
378
+ $ lps form pull
379
+ ```
380
+
381
+ _See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/form/pull.ts)_
382
+
383
+ ## `lps form push [PATH]`
384
+
385
+ Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.
386
+
387
+ ```
388
+ USAGE
389
+ $ lps form push [PATH] [--env <value>] [-d] [-y]
390
+
391
+ ARGUMENTS
392
+ [PATH] Path to forms directory (overrides project config)
393
+
394
+ FLAGS
395
+ -d, --dry-run Show what would change without making changes
396
+ -y, --yes Answer yes to confirmation prompts
397
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
398
+
399
+ DESCRIPTION
400
+ Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json`
401
+ convention.
402
+
403
+ EXAMPLES
404
+ $ lps form push
405
+ ```
406
+
407
+ _See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/form/push.ts)_
223
408
 
224
409
  ## `lps help [COMMAND]`
225
410
 
@@ -256,7 +441,7 @@ EXAMPLES
256
441
  $ lps init
257
442
  ```
258
443
 
259
- _See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/init.ts)_
444
+ _See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/init.ts)_
260
445
 
261
446
  ## `lps login`
262
447
 
@@ -273,7 +458,7 @@ EXAMPLES
273
458
  $ lps login
274
459
  ```
275
460
 
276
- _See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/login.ts)_
461
+ _See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/login.ts)_
277
462
 
278
463
  ## `lps logout`
279
464
 
@@ -290,7 +475,7 @@ EXAMPLES
290
475
  $ lps logout
291
476
  ```
292
477
 
293
- _See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/logout.ts)_
478
+ _See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/logout.ts)_
294
479
 
295
480
  ## `lps plugin add SLUG`
296
481
 
@@ -298,13 +483,14 @@ Add a WordPress.org plugin to loopress.json
298
483
 
299
484
  ```
300
485
  USAGE
301
- $ lps plugin add SLUG [-d]
486
+ $ lps plugin add SLUG [--env <value>] [-d]
302
487
 
303
488
  ARGUMENTS
304
489
  SLUG Plugin slug on WordPress.org
305
490
 
306
491
  FLAGS
307
- -d, --dry-run Show what would change without making changes
492
+ -d, --dry-run Show what would change without making changes
493
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
308
494
 
309
495
  DESCRIPTION
310
496
  Add a WordPress.org plugin to loopress.json
@@ -315,7 +501,7 @@ EXAMPLES
315
501
  $ lps plugin add contact-form-7 --dry-run
316
502
  ```
317
503
 
318
- _See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/plugin/add.ts)_
504
+ _See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/plugin/add.ts)_
319
505
 
320
506
  ## `lps plugin pull`
321
507
 
@@ -323,10 +509,11 @@ Pull installed plugins from WordPress into loopress.json
323
509
 
324
510
  ```
325
511
  USAGE
326
- $ lps plugin pull [-d]
512
+ $ lps plugin pull [--env <value>] [-d]
327
513
 
328
514
  FLAGS
329
- -d, --dry-run Show what would change without making changes
515
+ -d, --dry-run Show what would change without making changes
516
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
330
517
 
331
518
  DESCRIPTION
332
519
  Pull installed plugins from WordPress into loopress.json
@@ -337,7 +524,7 @@ EXAMPLES
337
524
  $ lps plugin pull --dry-run
338
525
  ```
339
526
 
340
- _See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/plugin/pull.ts)_
527
+ _See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/plugin/pull.ts)_
341
528
 
342
529
  ## `lps plugin push`
343
530
 
@@ -345,10 +532,12 @@ Push plugins to WordPress to match loopress.json
345
532
 
346
533
  ```
347
534
  USAGE
348
- $ lps plugin push [-d]
535
+ $ lps plugin push [--env <value>] [-d] [-y]
349
536
 
350
537
  FLAGS
351
- -d, --dry-run Show what would change without making changes
538
+ -d, --dry-run Show what would change without making changes
539
+ -y, --yes Answer yes to confirmation prompts
540
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
352
541
 
353
542
  DESCRIPTION
354
543
  Push plugins to WordPress to match loopress.json
@@ -359,7 +548,7 @@ EXAMPLES
359
548
  $ lps plugin push --dry-run
360
549
  ```
361
550
 
362
- _See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/plugin/push.ts)_
551
+ _See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/plugin/push.ts)_
363
552
 
364
553
  ## `lps project config`
365
554
 
@@ -377,7 +566,7 @@ EXAMPLES
377
566
  $ lps project config
378
567
  ```
379
568
 
380
- _See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/project/config.ts)_
569
+ _See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/config.ts)_
381
570
 
382
571
  ## `lps project list`
383
572
 
@@ -394,7 +583,7 @@ EXAMPLES
394
583
  $ lps project list
395
584
  ```
396
585
 
397
- _See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/project/list.ts)_
586
+ _See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/list.ts)_
398
587
 
399
588
  ## `lps project pull`
400
589
 
@@ -411,7 +600,7 @@ EXAMPLES
411
600
  $ lps project pull
412
601
  ```
413
602
 
414
- _See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/project/pull.ts)_
603
+ _See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/pull.ts)_
415
604
 
416
605
  ## `lps project push`
417
606
 
@@ -419,7 +608,10 @@ Push locally configured projects, environments and credentials to your Loopress
419
608
 
420
609
  ```
421
610
  USAGE
422
- $ lps project push
611
+ $ lps project push [-y]
612
+
613
+ FLAGS
614
+ -y, --yes Answer yes to confirmation prompts
423
615
 
424
616
  DESCRIPTION
425
617
  Push locally configured projects, environments and credentials to your Loopress account
@@ -428,7 +620,7 @@ EXAMPLES
428
620
  $ lps project push
429
621
  ```
430
622
 
431
- _See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/project/push.ts)_
623
+ _See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/push.ts)_
432
624
 
433
625
  ## `lps project remove`
434
626
 
@@ -445,7 +637,7 @@ EXAMPLES
445
637
  $ lps project remove
446
638
  ```
447
639
 
448
- _See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/project/remove.ts)_
640
+ _See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/remove.ts)_
449
641
 
450
642
  ## `lps project switch`
451
643
 
@@ -462,7 +654,7 @@ EXAMPLES
462
654
  $ lps project switch
463
655
  ```
464
656
 
465
- _See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/project/switch.ts)_
657
+ _See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/switch.ts)_
466
658
 
467
659
  ## `lps seo list`
468
660
 
@@ -470,10 +662,11 @@ List posts with SEO meta, and redirects if supported by the active SEO plugin, o
470
662
 
471
663
  ```
472
664
  USAGE
473
- $ lps seo list [-j] [--post-type <value>...]
665
+ $ lps seo list [--env <value>] [-j] [--post-type <value>...]
474
666
 
475
667
  FLAGS
476
668
  -j, --json Output in JSON format
669
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
477
670
  --post-type=<value>... Limit to specific post types
478
671
 
479
672
  DESCRIPTION
@@ -485,7 +678,7 @@ EXAMPLES
485
678
  $ lps seo list --post-type post
486
679
  ```
487
680
 
488
- _See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/seo/list.ts)_
681
+ _See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/seo/list.ts)_
489
682
 
490
683
  ## `lps seo pull [PATH]`
491
684
 
@@ -493,13 +686,15 @@ Pull SEO settings, post meta, and (if supported) redirects from WordPress
493
686
 
494
687
  ```
495
688
  USAGE
496
- $ lps seo pull [PATH] [-d] [--post-type <value>...]
689
+ $ lps seo pull [PATH] [--env <value>] [-d] [-y] [--post-type <value>...]
497
690
 
498
691
  ARGUMENTS
499
692
  [PATH] Path to SEO directory (overrides project config)
500
693
 
501
694
  FLAGS
502
695
  -d, --dry-run Show what would change without making changes
696
+ -y, --yes Answer yes to confirmation prompts
697
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
503
698
  --post-type=<value>... Limit post meta to specific post types
504
699
 
505
700
  DESCRIPTION
@@ -511,7 +706,7 @@ EXAMPLES
511
706
  $ lps seo pull --post-type post --post-type page
512
707
  ```
513
708
 
514
- _See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/seo/pull.ts)_
709
+ _See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/seo/pull.ts)_
515
710
 
516
711
  ## `lps seo push [PATH]`
517
712
 
@@ -519,13 +714,15 @@ Push SEO settings, post meta, and redirects to WordPress. Local redirect files c
519
714
 
520
715
  ```
521
716
  USAGE
522
- $ lps seo push [PATH] [-d]
717
+ $ lps seo push [PATH] [--env <value>] [-d] [-y]
523
718
 
524
719
  ARGUMENTS
525
720
  [PATH] Path to SEO directory (overrides project config)
526
721
 
527
722
  FLAGS
528
- -d, --dry-run Show what would change without making changes
723
+ -d, --dry-run Show what would change without making changes
724
+ -y, --yes Answer yes to confirmation prompts
725
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
529
726
 
530
727
  DESCRIPTION
531
728
  Push SEO settings, post meta, and redirects to WordPress. Local redirect files created remotely are renamed on disk to
@@ -535,7 +732,7 @@ EXAMPLES
535
732
  $ lps seo push
536
733
  ```
537
734
 
538
- _See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/seo/push.ts)_
735
+ _See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/seo/push.ts)_
539
736
 
540
737
  ## `lps snippet list`
541
738
 
@@ -543,10 +740,11 @@ List snippets from WordPress
543
740
 
544
741
  ```
545
742
  USAGE
546
- $ lps snippet list [-j]
743
+ $ lps snippet list [--env <value>] [-j]
547
744
 
548
745
  FLAGS
549
- -j, --json Output in JSON format
746
+ -j, --json Output in JSON format
747
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
550
748
 
551
749
  DESCRIPTION
552
750
  List snippets from WordPress
@@ -555,7 +753,7 @@ EXAMPLES
555
753
  $ lps snippet list
556
754
  ```
557
755
 
558
- _See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/snippet/list.ts)_
756
+ _See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/snippet/list.ts)_
559
757
 
560
758
  ## `lps snippet publish [PATH]`
561
759
 
@@ -578,7 +776,7 @@ EXAMPLES
578
776
  $ lps snippet publish --path ./snippets
579
777
  ```
580
778
 
581
- _See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/snippet/publish.ts)_
779
+ _See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/snippet/publish.ts)_
582
780
 
583
781
  ## `lps snippet pull [PATH]`
584
782
 
@@ -586,13 +784,15 @@ Pull snippets from WordPress
586
784
 
587
785
  ```
588
786
  USAGE
589
- $ lps snippet pull [PATH] [-d]
787
+ $ lps snippet pull [PATH] [--env <value>] [-d] [-y]
590
788
 
591
789
  ARGUMENTS
592
790
  [PATH] Path to snippets directory (overrides project config)
593
791
 
594
792
  FLAGS
595
- -d, --dry-run Show what would change without making changes
793
+ -d, --dry-run Show what would change without making changes
794
+ -y, --yes Answer yes to confirmation prompts
795
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
596
796
 
597
797
  DESCRIPTION
598
798
  Pull snippets from WordPress
@@ -603,7 +803,7 @@ EXAMPLES
603
803
  $ lps snippet pull --path ./snippets
604
804
  ```
605
805
 
606
- _See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/snippet/pull.ts)_
806
+ _See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/snippet/pull.ts)_
607
807
 
608
808
  ## `lps snippet push [PATH]`
609
809
 
@@ -611,13 +811,15 @@ Push snippets to WordPress. Local snippet files created or updated remotely are
611
811
 
612
812
  ```
613
813
  USAGE
614
- $ lps snippet push [PATH] [-d]
814
+ $ lps snippet push [PATH] [--env <value>] [-d] [-y]
615
815
 
616
816
  ARGUMENTS
617
817
  [PATH] Path to snippets directory (overrides project config)
618
818
 
619
819
  FLAGS
620
- -d, --dry-run Show what would change without making changes
820
+ -d, --dry-run Show what would change without making changes
821
+ -y, --yes Answer yes to confirmation prompts
822
+ --env=<value> Target environment by name, overriding the globally active one (lps project switch)
621
823
 
622
824
  DESCRIPTION
623
825
  Push snippets to WordPress. Local snippet files created or updated remotely are renamed on disk to the `<id>-<slug>`
@@ -629,7 +831,7 @@ EXAMPLES
629
831
  $ lps snippet push --path ./snippets
630
832
  ```
631
833
 
632
- _See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/snippet/push.ts)_
834
+ _See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/snippet/push.ts)_
633
835
 
634
836
  ## `lps status`
635
837
 
@@ -637,16 +839,21 @@ Show which WordPress project and environment commands will target
637
839
 
638
840
  ```
639
841
  USAGE
640
- $ lps status
842
+ $ lps status [--env <value>]
843
+
844
+ FLAGS
845
+ --env=<value> Show what would be targeted with this environment, as other commands do with --env
641
846
 
642
847
  DESCRIPTION
643
848
  Show which WordPress project and environment commands will target
644
849
 
645
850
  EXAMPLES
646
851
  $ lps status
852
+
853
+ $ lps status --env staging
647
854
  ```
648
855
 
649
- _See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/status.ts)_
856
+ _See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/status.ts)_
650
857
 
651
858
  ## `lps telemetry disable`
652
859
 
@@ -663,7 +870,7 @@ EXAMPLES
663
870
  $ lps telemetry disable
664
871
  ```
665
872
 
666
- _See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/telemetry/disable.ts)_
873
+ _See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/telemetry/disable.ts)_
667
874
 
668
875
  ## `lps telemetry enable`
669
876
 
@@ -680,5 +887,5 @@ EXAMPLES
680
887
  $ lps telemetry enable
681
888
  ```
682
889
 
683
- _See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.17.0/src/commands/telemetry/enable.ts)_
890
+ _See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/telemetry/enable.ts)_
684
891
  <!-- commandsstop -->