@loopress/cli 0.18.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.
- package/README.md +138 -74
- package/dist/commands/acf/pull.d.ts +1 -1
- package/dist/commands/acf/pull.js +12 -25
- package/dist/commands/acf/push.d.ts +1 -1
- package/dist/commands/acf/push.js +18 -47
- package/dist/commands/api/pull.d.ts +1 -1
- package/dist/commands/api/pull.js +11 -26
- package/dist/commands/api/push.d.ts +1 -1
- package/dist/commands/api/push.js +21 -27
- package/dist/commands/composer/init.js +11 -1
- package/dist/commands/composer/push.d.ts +1 -0
- package/dist/commands/composer/push.js +17 -4
- package/dist/commands/doctor.d.ts +8 -0
- package/dist/commands/doctor.js +79 -0
- package/dist/commands/form/pull.d.ts +1 -2
- package/dist/commands/form/pull.js +13 -32
- package/dist/commands/form/push.d.ts +1 -1
- package/dist/commands/form/push.js +6 -14
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.js +64 -33
- package/dist/commands/plugin/push.d.ts +1 -1
- package/dist/commands/plugin/push.js +2 -14
- package/dist/commands/project/config.js +4 -0
- package/dist/commands/project/push.d.ts +5 -0
- package/dist/commands/project/push.js +21 -11
- package/dist/commands/seo/pull.d.ts +1 -3
- package/dist/commands/seo/pull.js +15 -43
- package/dist/commands/seo/push.d.ts +1 -1
- package/dist/commands/seo/push.js +4 -17
- package/dist/commands/snippet/publish.js +2 -2
- package/dist/commands/snippet/pull.d.ts +1 -4
- package/dist/commands/snippet/pull.js +12 -60
- package/dist/commands/snippet/push.d.ts +1 -1
- package/dist/commands/snippet/push.js +4 -13
- package/dist/commands/status.d.ts +4 -0
- package/dist/commands/status.js +25 -4
- package/dist/config/project-config.manager.js +2 -2
- package/dist/lib/api-client.d.ts +2 -1
- package/dist/lib/api-client.js +10 -3
- package/dist/lib/base.d.ts +9 -0
- package/dist/lib/base.js +61 -2
- package/dist/lib/find-orphaned-files.d.ts +7 -0
- package/dist/lib/find-orphaned-files.js +29 -0
- package/dist/lib/interactive.d.ts +1 -0
- package/dist/lib/interactive.js +7 -0
- package/dist/lib/load-files.d.ts +5 -0
- package/dist/lib/load-files.js +31 -0
- package/dist/lib/push-command.d.ts +7 -0
- package/dist/lib/push-command.js +40 -2
- package/dist/lib/wp-client.d.ts +9 -4
- package/dist/lib/wp-client.js +26 -12
- package/dist/utils/composer.d.ts +3 -0
- package/dist/utils/seo-format.d.ts +1 -0
- package/dist/utils/seo-format.js +5 -0
- package/dist/utils/snippet-format.d.ts +2 -0
- package/dist/utils/snippet-format.js +27 -1
- package/dist/utils/to-slug.d.ts +1 -0
- package/dist/utils/to-slug.js +7 -0
- package/oclif.manifest.json +469 -61
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ $ npm install -g @loopress/cli
|
|
|
21
21
|
$ lps COMMAND
|
|
22
22
|
running command...
|
|
23
23
|
$ lps (--version)
|
|
24
|
-
@loopress/cli/0.
|
|
24
|
+
@loopress/cli/0.19.0 linux-x64 node-v24.18.0
|
|
25
25
|
$ lps --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ lps COMMAND
|
|
@@ -56,6 +56,7 @@ report.
|
|
|
56
56
|
* [`lps composer init`](#lps-composer-init)
|
|
57
57
|
* [`lps composer pull`](#lps-composer-pull)
|
|
58
58
|
* [`lps composer push`](#lps-composer-push)
|
|
59
|
+
* [`lps doctor`](#lps-doctor)
|
|
59
60
|
* [`lps form list`](#lps-form-list)
|
|
60
61
|
* [`lps form pull [PATH]`](#lps-form-pull-path)
|
|
61
62
|
* [`lps form push [PATH]`](#lps-form-push-path)
|
|
@@ -89,10 +90,11 @@ List ACF field groups, post types, taxonomies, and options pages from WordPress
|
|
|
89
90
|
|
|
90
91
|
```
|
|
91
92
|
USAGE
|
|
92
|
-
$ 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...]
|
|
93
94
|
|
|
94
95
|
FLAGS
|
|
95
96
|
-j, --json Output in JSON format
|
|
97
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
96
98
|
--type=<option>... Limit to specific ACF object types
|
|
97
99
|
<options: field-groups|post-types|taxonomies|options-pages>
|
|
98
100
|
|
|
@@ -105,7 +107,7 @@ EXAMPLES
|
|
|
105
107
|
$ lps acf list --type field-groups
|
|
106
108
|
```
|
|
107
109
|
|
|
108
|
-
_See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
110
|
+
_See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/acf/list.ts)_
|
|
109
111
|
|
|
110
112
|
## `lps acf pull [PATH]`
|
|
111
113
|
|
|
@@ -113,13 +115,15 @@ Pull ACF field groups, post types, taxonomies, and options pages from WordPress
|
|
|
113
115
|
|
|
114
116
|
```
|
|
115
117
|
USAGE
|
|
116
|
-
$ 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...]
|
|
117
119
|
|
|
118
120
|
ARGUMENTS
|
|
119
121
|
[PATH] Path to ACF directory (overrides project config)
|
|
120
122
|
|
|
121
123
|
FLAGS
|
|
122
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)
|
|
123
127
|
--type=<option>... Limit to specific ACF object types
|
|
124
128
|
<options: field-groups|post-types|taxonomies|options-pages>
|
|
125
129
|
|
|
@@ -132,7 +136,7 @@ EXAMPLES
|
|
|
132
136
|
$ lps acf pull --type field-groups
|
|
133
137
|
```
|
|
134
138
|
|
|
135
|
-
_See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
139
|
+
_See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/acf/pull.ts)_
|
|
136
140
|
|
|
137
141
|
## `lps acf push [PATH]`
|
|
138
142
|
|
|
@@ -140,13 +144,15 @@ Push ACF field groups, post types, taxonomies, and options pages to WordPress
|
|
|
140
144
|
|
|
141
145
|
```
|
|
142
146
|
USAGE
|
|
143
|
-
$ 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...]
|
|
144
148
|
|
|
145
149
|
ARGUMENTS
|
|
146
150
|
[PATH] Path to ACF directory (overrides project config)
|
|
147
151
|
|
|
148
152
|
FLAGS
|
|
149
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)
|
|
150
156
|
--type=<option>... Limit to specific ACF object types
|
|
151
157
|
<options: field-groups|post-types|taxonomies|options-pages>
|
|
152
158
|
|
|
@@ -159,7 +165,7 @@ EXAMPLES
|
|
|
159
165
|
$ lps acf push --type field-groups
|
|
160
166
|
```
|
|
161
167
|
|
|
162
|
-
_See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
168
|
+
_See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/acf/push.ts)_
|
|
163
169
|
|
|
164
170
|
## `lps api list`
|
|
165
171
|
|
|
@@ -167,10 +173,11 @@ List custom API route files from WordPress
|
|
|
167
173
|
|
|
168
174
|
```
|
|
169
175
|
USAGE
|
|
170
|
-
$ lps api list [-j]
|
|
176
|
+
$ lps api list [--env <value>] [-j]
|
|
171
177
|
|
|
172
178
|
FLAGS
|
|
173
|
-
-j, --json
|
|
179
|
+
-j, --json Output in JSON format
|
|
180
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
174
181
|
|
|
175
182
|
DESCRIPTION
|
|
176
183
|
List custom API route files from WordPress
|
|
@@ -179,7 +186,7 @@ EXAMPLES
|
|
|
179
186
|
$ lps api list
|
|
180
187
|
```
|
|
181
188
|
|
|
182
|
-
_See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
189
|
+
_See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/api/list.ts)_
|
|
183
190
|
|
|
184
191
|
## `lps api pull [PATH]`
|
|
185
192
|
|
|
@@ -187,13 +194,15 @@ Pull custom API route files from WordPress
|
|
|
187
194
|
|
|
188
195
|
```
|
|
189
196
|
USAGE
|
|
190
|
-
$ lps api pull [PATH] [-d]
|
|
197
|
+
$ lps api pull [PATH] [--env <value>] [-d] [-y]
|
|
191
198
|
|
|
192
199
|
ARGUMENTS
|
|
193
200
|
[PATH] Path to api directory (overrides project config)
|
|
194
201
|
|
|
195
202
|
FLAGS
|
|
196
|
-
-d, --dry-run
|
|
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)
|
|
197
206
|
|
|
198
207
|
DESCRIPTION
|
|
199
208
|
Pull custom API route files from WordPress
|
|
@@ -204,7 +213,7 @@ EXAMPLES
|
|
|
204
213
|
$ lps api pull --path ./api
|
|
205
214
|
```
|
|
206
215
|
|
|
207
|
-
_See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
216
|
+
_See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/api/pull.ts)_
|
|
208
217
|
|
|
209
218
|
## `lps api push [PATH]`
|
|
210
219
|
|
|
@@ -212,13 +221,15 @@ Push custom API route files to WordPress
|
|
|
212
221
|
|
|
213
222
|
```
|
|
214
223
|
USAGE
|
|
215
|
-
$ lps api push [PATH] [-d]
|
|
224
|
+
$ lps api push [PATH] [--env <value>] [-d] [-y]
|
|
216
225
|
|
|
217
226
|
ARGUMENTS
|
|
218
227
|
[PATH] Path to api directory (overrides project config)
|
|
219
228
|
|
|
220
229
|
FLAGS
|
|
221
|
-
-d, --dry-run
|
|
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)
|
|
222
233
|
|
|
223
234
|
DESCRIPTION
|
|
224
235
|
Push custom API route files to WordPress
|
|
@@ -229,7 +240,7 @@ EXAMPLES
|
|
|
229
240
|
$ lps api push --path ./api
|
|
230
241
|
```
|
|
231
242
|
|
|
232
|
-
_See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
243
|
+
_See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/api/push.ts)_
|
|
233
244
|
|
|
234
245
|
## `lps composer init`
|
|
235
246
|
|
|
@@ -237,10 +248,11 @@ Create a composer.json wired to WPackagist for installing WordPress.org plugins
|
|
|
237
248
|
|
|
238
249
|
```
|
|
239
250
|
USAGE
|
|
240
|
-
$ lps composer init [-d]
|
|
251
|
+
$ lps composer init [--env <value>] [-d]
|
|
241
252
|
|
|
242
253
|
FLAGS
|
|
243
|
-
-d, --dry-run
|
|
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)
|
|
244
256
|
|
|
245
257
|
DESCRIPTION
|
|
246
258
|
Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes
|
|
@@ -251,7 +263,7 @@ EXAMPLES
|
|
|
251
263
|
$ lps composer init --dry-run
|
|
252
264
|
```
|
|
253
265
|
|
|
254
|
-
_See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.
|
|
266
|
+
_See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/composer/init.ts)_
|
|
255
267
|
|
|
256
268
|
## `lps composer pull`
|
|
257
269
|
|
|
@@ -259,10 +271,11 @@ Pull composer.json and composer.lock from WordPress
|
|
|
259
271
|
|
|
260
272
|
```
|
|
261
273
|
USAGE
|
|
262
|
-
$ lps composer pull [-d]
|
|
274
|
+
$ lps composer pull [--env <value>] [-d]
|
|
263
275
|
|
|
264
276
|
FLAGS
|
|
265
|
-
-d, --dry-run
|
|
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)
|
|
266
279
|
|
|
267
280
|
DESCRIPTION
|
|
268
281
|
Pull composer.json and composer.lock from WordPress
|
|
@@ -273,7 +286,7 @@ EXAMPLES
|
|
|
273
286
|
$ lps composer pull --dry-run
|
|
274
287
|
```
|
|
275
288
|
|
|
276
|
-
_See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
289
|
+
_See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/composer/pull.ts)_
|
|
277
290
|
|
|
278
291
|
## `lps composer push`
|
|
279
292
|
|
|
@@ -281,10 +294,12 @@ Push composer.json and composer.lock to WordPress and run composer install
|
|
|
281
294
|
|
|
282
295
|
```
|
|
283
296
|
USAGE
|
|
284
|
-
$ lps composer push [-d]
|
|
297
|
+
$ lps composer push [--env <value>] [-d] [-y]
|
|
285
298
|
|
|
286
299
|
FLAGS
|
|
287
|
-
-d, --dry-run
|
|
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)
|
|
288
303
|
|
|
289
304
|
DESCRIPTION
|
|
290
305
|
Push composer.json and composer.lock to WordPress and run composer install
|
|
@@ -295,7 +310,29 @@ EXAMPLES
|
|
|
295
310
|
$ lps composer push --dry-run
|
|
296
311
|
```
|
|
297
312
|
|
|
298
|
-
_See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
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)_
|
|
299
336
|
|
|
300
337
|
## `lps form list`
|
|
301
338
|
|
|
@@ -303,10 +340,11 @@ List forms from WordPress
|
|
|
303
340
|
|
|
304
341
|
```
|
|
305
342
|
USAGE
|
|
306
|
-
$ lps form list [-j]
|
|
343
|
+
$ lps form list [--env <value>] [-j]
|
|
307
344
|
|
|
308
345
|
FLAGS
|
|
309
|
-
-j, --json
|
|
346
|
+
-j, --json Output in JSON format
|
|
347
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
310
348
|
|
|
311
349
|
DESCRIPTION
|
|
312
350
|
List forms from WordPress
|
|
@@ -315,7 +353,7 @@ EXAMPLES
|
|
|
315
353
|
$ lps form list
|
|
316
354
|
```
|
|
317
355
|
|
|
318
|
-
_See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
356
|
+
_See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/form/list.ts)_
|
|
319
357
|
|
|
320
358
|
## `lps form pull [PATH]`
|
|
321
359
|
|
|
@@ -323,13 +361,15 @@ Pull forms from WordPress
|
|
|
323
361
|
|
|
324
362
|
```
|
|
325
363
|
USAGE
|
|
326
|
-
$ lps form pull [PATH] [-d]
|
|
364
|
+
$ lps form pull [PATH] [--env <value>] [-d] [-y]
|
|
327
365
|
|
|
328
366
|
ARGUMENTS
|
|
329
367
|
[PATH] Path to forms directory (overrides project config)
|
|
330
368
|
|
|
331
369
|
FLAGS
|
|
332
|
-
-d, --dry-run
|
|
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)
|
|
333
373
|
|
|
334
374
|
DESCRIPTION
|
|
335
375
|
Pull forms from WordPress
|
|
@@ -338,7 +378,7 @@ EXAMPLES
|
|
|
338
378
|
$ lps form pull
|
|
339
379
|
```
|
|
340
380
|
|
|
341
|
-
_See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
381
|
+
_See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/form/pull.ts)_
|
|
342
382
|
|
|
343
383
|
## `lps form push [PATH]`
|
|
344
384
|
|
|
@@ -346,13 +386,15 @@ Push forms to WordPress. Local files created or updated remotely are renamed on
|
|
|
346
386
|
|
|
347
387
|
```
|
|
348
388
|
USAGE
|
|
349
|
-
$ lps form push [PATH] [-d]
|
|
389
|
+
$ lps form push [PATH] [--env <value>] [-d] [-y]
|
|
350
390
|
|
|
351
391
|
ARGUMENTS
|
|
352
392
|
[PATH] Path to forms directory (overrides project config)
|
|
353
393
|
|
|
354
394
|
FLAGS
|
|
355
|
-
-d, --dry-run
|
|
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)
|
|
356
398
|
|
|
357
399
|
DESCRIPTION
|
|
358
400
|
Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json`
|
|
@@ -362,7 +404,7 @@ EXAMPLES
|
|
|
362
404
|
$ lps form push
|
|
363
405
|
```
|
|
364
406
|
|
|
365
|
-
_See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
407
|
+
_See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/form/push.ts)_
|
|
366
408
|
|
|
367
409
|
## `lps help [COMMAND]`
|
|
368
410
|
|
|
@@ -399,7 +441,7 @@ EXAMPLES
|
|
|
399
441
|
$ lps init
|
|
400
442
|
```
|
|
401
443
|
|
|
402
|
-
_See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.
|
|
444
|
+
_See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/init.ts)_
|
|
403
445
|
|
|
404
446
|
## `lps login`
|
|
405
447
|
|
|
@@ -416,7 +458,7 @@ EXAMPLES
|
|
|
416
458
|
$ lps login
|
|
417
459
|
```
|
|
418
460
|
|
|
419
|
-
_See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.
|
|
461
|
+
_See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/login.ts)_
|
|
420
462
|
|
|
421
463
|
## `lps logout`
|
|
422
464
|
|
|
@@ -433,7 +475,7 @@ EXAMPLES
|
|
|
433
475
|
$ lps logout
|
|
434
476
|
```
|
|
435
477
|
|
|
436
|
-
_See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.
|
|
478
|
+
_See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/logout.ts)_
|
|
437
479
|
|
|
438
480
|
## `lps plugin add SLUG`
|
|
439
481
|
|
|
@@ -441,13 +483,14 @@ Add a WordPress.org plugin to loopress.json
|
|
|
441
483
|
|
|
442
484
|
```
|
|
443
485
|
USAGE
|
|
444
|
-
$ lps plugin add SLUG [-d]
|
|
486
|
+
$ lps plugin add SLUG [--env <value>] [-d]
|
|
445
487
|
|
|
446
488
|
ARGUMENTS
|
|
447
489
|
SLUG Plugin slug on WordPress.org
|
|
448
490
|
|
|
449
491
|
FLAGS
|
|
450
|
-
-d, --dry-run
|
|
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)
|
|
451
494
|
|
|
452
495
|
DESCRIPTION
|
|
453
496
|
Add a WordPress.org plugin to loopress.json
|
|
@@ -458,7 +501,7 @@ EXAMPLES
|
|
|
458
501
|
$ lps plugin add contact-form-7 --dry-run
|
|
459
502
|
```
|
|
460
503
|
|
|
461
|
-
_See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.
|
|
504
|
+
_See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/plugin/add.ts)_
|
|
462
505
|
|
|
463
506
|
## `lps plugin pull`
|
|
464
507
|
|
|
@@ -466,10 +509,11 @@ Pull installed plugins from WordPress into loopress.json
|
|
|
466
509
|
|
|
467
510
|
```
|
|
468
511
|
USAGE
|
|
469
|
-
$ lps plugin pull [-d]
|
|
512
|
+
$ lps plugin pull [--env <value>] [-d]
|
|
470
513
|
|
|
471
514
|
FLAGS
|
|
472
|
-
-d, --dry-run
|
|
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)
|
|
473
517
|
|
|
474
518
|
DESCRIPTION
|
|
475
519
|
Pull installed plugins from WordPress into loopress.json
|
|
@@ -480,7 +524,7 @@ EXAMPLES
|
|
|
480
524
|
$ lps plugin pull --dry-run
|
|
481
525
|
```
|
|
482
526
|
|
|
483
|
-
_See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
527
|
+
_See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/plugin/pull.ts)_
|
|
484
528
|
|
|
485
529
|
## `lps plugin push`
|
|
486
530
|
|
|
@@ -488,10 +532,12 @@ Push plugins to WordPress to match loopress.json
|
|
|
488
532
|
|
|
489
533
|
```
|
|
490
534
|
USAGE
|
|
491
|
-
$ lps plugin push [-d]
|
|
535
|
+
$ lps plugin push [--env <value>] [-d] [-y]
|
|
492
536
|
|
|
493
537
|
FLAGS
|
|
494
|
-
-d, --dry-run
|
|
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)
|
|
495
541
|
|
|
496
542
|
DESCRIPTION
|
|
497
543
|
Push plugins to WordPress to match loopress.json
|
|
@@ -502,7 +548,7 @@ EXAMPLES
|
|
|
502
548
|
$ lps plugin push --dry-run
|
|
503
549
|
```
|
|
504
550
|
|
|
505
|
-
_See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
551
|
+
_See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/plugin/push.ts)_
|
|
506
552
|
|
|
507
553
|
## `lps project config`
|
|
508
554
|
|
|
@@ -520,7 +566,7 @@ EXAMPLES
|
|
|
520
566
|
$ lps project config
|
|
521
567
|
```
|
|
522
568
|
|
|
523
|
-
_See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.
|
|
569
|
+
_See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/config.ts)_
|
|
524
570
|
|
|
525
571
|
## `lps project list`
|
|
526
572
|
|
|
@@ -537,7 +583,7 @@ EXAMPLES
|
|
|
537
583
|
$ lps project list
|
|
538
584
|
```
|
|
539
585
|
|
|
540
|
-
_See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
586
|
+
_See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/list.ts)_
|
|
541
587
|
|
|
542
588
|
## `lps project pull`
|
|
543
589
|
|
|
@@ -554,7 +600,7 @@ EXAMPLES
|
|
|
554
600
|
$ lps project pull
|
|
555
601
|
```
|
|
556
602
|
|
|
557
|
-
_See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
603
|
+
_See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/pull.ts)_
|
|
558
604
|
|
|
559
605
|
## `lps project push`
|
|
560
606
|
|
|
@@ -562,7 +608,10 @@ Push locally configured projects, environments and credentials to your Loopress
|
|
|
562
608
|
|
|
563
609
|
```
|
|
564
610
|
USAGE
|
|
565
|
-
$ lps project push
|
|
611
|
+
$ lps project push [-y]
|
|
612
|
+
|
|
613
|
+
FLAGS
|
|
614
|
+
-y, --yes Answer yes to confirmation prompts
|
|
566
615
|
|
|
567
616
|
DESCRIPTION
|
|
568
617
|
Push locally configured projects, environments and credentials to your Loopress account
|
|
@@ -571,7 +620,7 @@ EXAMPLES
|
|
|
571
620
|
$ lps project push
|
|
572
621
|
```
|
|
573
622
|
|
|
574
|
-
_See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
623
|
+
_See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/push.ts)_
|
|
575
624
|
|
|
576
625
|
## `lps project remove`
|
|
577
626
|
|
|
@@ -588,7 +637,7 @@ EXAMPLES
|
|
|
588
637
|
$ lps project remove
|
|
589
638
|
```
|
|
590
639
|
|
|
591
|
-
_See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.
|
|
640
|
+
_See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/remove.ts)_
|
|
592
641
|
|
|
593
642
|
## `lps project switch`
|
|
594
643
|
|
|
@@ -605,7 +654,7 @@ EXAMPLES
|
|
|
605
654
|
$ lps project switch
|
|
606
655
|
```
|
|
607
656
|
|
|
608
|
-
_See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.
|
|
657
|
+
_See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/project/switch.ts)_
|
|
609
658
|
|
|
610
659
|
## `lps seo list`
|
|
611
660
|
|
|
@@ -613,10 +662,11 @@ List posts with SEO meta, and redirects if supported by the active SEO plugin, o
|
|
|
613
662
|
|
|
614
663
|
```
|
|
615
664
|
USAGE
|
|
616
|
-
$ lps seo list [-j] [--post-type <value>...]
|
|
665
|
+
$ lps seo list [--env <value>] [-j] [--post-type <value>...]
|
|
617
666
|
|
|
618
667
|
FLAGS
|
|
619
668
|
-j, --json Output in JSON format
|
|
669
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
620
670
|
--post-type=<value>... Limit to specific post types
|
|
621
671
|
|
|
622
672
|
DESCRIPTION
|
|
@@ -628,7 +678,7 @@ EXAMPLES
|
|
|
628
678
|
$ lps seo list --post-type post
|
|
629
679
|
```
|
|
630
680
|
|
|
631
|
-
_See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
681
|
+
_See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/seo/list.ts)_
|
|
632
682
|
|
|
633
683
|
## `lps seo pull [PATH]`
|
|
634
684
|
|
|
@@ -636,13 +686,15 @@ Pull SEO settings, post meta, and (if supported) redirects from WordPress
|
|
|
636
686
|
|
|
637
687
|
```
|
|
638
688
|
USAGE
|
|
639
|
-
$ lps seo pull [PATH] [-d] [--post-type <value>...]
|
|
689
|
+
$ lps seo pull [PATH] [--env <value>] [-d] [-y] [--post-type <value>...]
|
|
640
690
|
|
|
641
691
|
ARGUMENTS
|
|
642
692
|
[PATH] Path to SEO directory (overrides project config)
|
|
643
693
|
|
|
644
694
|
FLAGS
|
|
645
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)
|
|
646
698
|
--post-type=<value>... Limit post meta to specific post types
|
|
647
699
|
|
|
648
700
|
DESCRIPTION
|
|
@@ -654,7 +706,7 @@ EXAMPLES
|
|
|
654
706
|
$ lps seo pull --post-type post --post-type page
|
|
655
707
|
```
|
|
656
708
|
|
|
657
|
-
_See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
709
|
+
_See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/seo/pull.ts)_
|
|
658
710
|
|
|
659
711
|
## `lps seo push [PATH]`
|
|
660
712
|
|
|
@@ -662,13 +714,15 @@ Push SEO settings, post meta, and redirects to WordPress. Local redirect files c
|
|
|
662
714
|
|
|
663
715
|
```
|
|
664
716
|
USAGE
|
|
665
|
-
$ lps seo push [PATH] [-d]
|
|
717
|
+
$ lps seo push [PATH] [--env <value>] [-d] [-y]
|
|
666
718
|
|
|
667
719
|
ARGUMENTS
|
|
668
720
|
[PATH] Path to SEO directory (overrides project config)
|
|
669
721
|
|
|
670
722
|
FLAGS
|
|
671
|
-
-d, --dry-run
|
|
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)
|
|
672
726
|
|
|
673
727
|
DESCRIPTION
|
|
674
728
|
Push SEO settings, post meta, and redirects to WordPress. Local redirect files created remotely are renamed on disk to
|
|
@@ -678,7 +732,7 @@ EXAMPLES
|
|
|
678
732
|
$ lps seo push
|
|
679
733
|
```
|
|
680
734
|
|
|
681
|
-
_See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
735
|
+
_See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/seo/push.ts)_
|
|
682
736
|
|
|
683
737
|
## `lps snippet list`
|
|
684
738
|
|
|
@@ -686,10 +740,11 @@ List snippets from WordPress
|
|
|
686
740
|
|
|
687
741
|
```
|
|
688
742
|
USAGE
|
|
689
|
-
$ lps snippet list [-j]
|
|
743
|
+
$ lps snippet list [--env <value>] [-j]
|
|
690
744
|
|
|
691
745
|
FLAGS
|
|
692
|
-
-j, --json
|
|
746
|
+
-j, --json Output in JSON format
|
|
747
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
693
748
|
|
|
694
749
|
DESCRIPTION
|
|
695
750
|
List snippets from WordPress
|
|
@@ -698,7 +753,7 @@ EXAMPLES
|
|
|
698
753
|
$ lps snippet list
|
|
699
754
|
```
|
|
700
755
|
|
|
701
|
-
_See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
756
|
+
_See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/snippet/list.ts)_
|
|
702
757
|
|
|
703
758
|
## `lps snippet publish [PATH]`
|
|
704
759
|
|
|
@@ -721,7 +776,7 @@ EXAMPLES
|
|
|
721
776
|
$ lps snippet publish --path ./snippets
|
|
722
777
|
```
|
|
723
778
|
|
|
724
|
-
_See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.
|
|
779
|
+
_See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/snippet/publish.ts)_
|
|
725
780
|
|
|
726
781
|
## `lps snippet pull [PATH]`
|
|
727
782
|
|
|
@@ -729,13 +784,15 @@ Pull snippets from WordPress
|
|
|
729
784
|
|
|
730
785
|
```
|
|
731
786
|
USAGE
|
|
732
|
-
$ lps snippet pull [PATH] [-d]
|
|
787
|
+
$ lps snippet pull [PATH] [--env <value>] [-d] [-y]
|
|
733
788
|
|
|
734
789
|
ARGUMENTS
|
|
735
790
|
[PATH] Path to snippets directory (overrides project config)
|
|
736
791
|
|
|
737
792
|
FLAGS
|
|
738
|
-
-d, --dry-run
|
|
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)
|
|
739
796
|
|
|
740
797
|
DESCRIPTION
|
|
741
798
|
Pull snippets from WordPress
|
|
@@ -746,7 +803,7 @@ EXAMPLES
|
|
|
746
803
|
$ lps snippet pull --path ./snippets
|
|
747
804
|
```
|
|
748
805
|
|
|
749
|
-
_See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
806
|
+
_See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/snippet/pull.ts)_
|
|
750
807
|
|
|
751
808
|
## `lps snippet push [PATH]`
|
|
752
809
|
|
|
@@ -754,13 +811,15 @@ Push snippets to WordPress. Local snippet files created or updated remotely are
|
|
|
754
811
|
|
|
755
812
|
```
|
|
756
813
|
USAGE
|
|
757
|
-
$ lps snippet push [PATH] [-d]
|
|
814
|
+
$ lps snippet push [PATH] [--env <value>] [-d] [-y]
|
|
758
815
|
|
|
759
816
|
ARGUMENTS
|
|
760
817
|
[PATH] Path to snippets directory (overrides project config)
|
|
761
818
|
|
|
762
819
|
FLAGS
|
|
763
|
-
-d, --dry-run
|
|
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)
|
|
764
823
|
|
|
765
824
|
DESCRIPTION
|
|
766
825
|
Push snippets to WordPress. Local snippet files created or updated remotely are renamed on disk to the `<id>-<slug>`
|
|
@@ -772,7 +831,7 @@ EXAMPLES
|
|
|
772
831
|
$ lps snippet push --path ./snippets
|
|
773
832
|
```
|
|
774
833
|
|
|
775
|
-
_See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
834
|
+
_See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/snippet/push.ts)_
|
|
776
835
|
|
|
777
836
|
## `lps status`
|
|
778
837
|
|
|
@@ -780,16 +839,21 @@ Show which WordPress project and environment commands will target
|
|
|
780
839
|
|
|
781
840
|
```
|
|
782
841
|
USAGE
|
|
783
|
-
$ 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
|
|
784
846
|
|
|
785
847
|
DESCRIPTION
|
|
786
848
|
Show which WordPress project and environment commands will target
|
|
787
849
|
|
|
788
850
|
EXAMPLES
|
|
789
851
|
$ lps status
|
|
852
|
+
|
|
853
|
+
$ lps status --env staging
|
|
790
854
|
```
|
|
791
855
|
|
|
792
|
-
_See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.
|
|
856
|
+
_See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/status.ts)_
|
|
793
857
|
|
|
794
858
|
## `lps telemetry disable`
|
|
795
859
|
|
|
@@ -806,7 +870,7 @@ EXAMPLES
|
|
|
806
870
|
$ lps telemetry disable
|
|
807
871
|
```
|
|
808
872
|
|
|
809
|
-
_See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.
|
|
873
|
+
_See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/telemetry/disable.ts)_
|
|
810
874
|
|
|
811
875
|
## `lps telemetry enable`
|
|
812
876
|
|
|
@@ -823,5 +887,5 @@ EXAMPLES
|
|
|
823
887
|
$ lps telemetry enable
|
|
824
888
|
```
|
|
825
889
|
|
|
826
|
-
_See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.
|
|
890
|
+
_See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.19.0/src/commands/telemetry/enable.ts)_
|
|
827
891
|
<!-- commandsstop -->
|