@loopress/cli 0.18.0 → 0.20.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 +260 -75
- 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/publish.d.ts +9 -0
- package/dist/commands/api/publish.js +60 -0
- package/dist/commands/api/pull.d.ts +1 -1
- package/dist/commands/api/pull.js +11 -26
- package/dist/commands/api/push.d.ts +2 -1
- package/dist/commands/api/push.js +40 -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 +65 -33
- package/dist/commands/page/list.d.ts +9 -0
- package/dist/commands/page/list.js +26 -0
- package/dist/commands/page/pull.d.ts +13 -0
- package/dist/commands/page/pull.js +65 -0
- package/dist/commands/page/push.d.ts +16 -0
- package/dist/commands/page/push.js +145 -0
- package/dist/commands/plugin/push.d.ts +1 -1
- package/dist/commands/plugin/push.js +2 -14
- package/dist/commands/project/config.d.ts +1 -0
- package/dist/commands/project/config.js +32 -0
- package/dist/commands/project/push.d.ts +5 -0
- package/dist/commands/project/push.js +21 -11
- package/dist/commands/project/rotate.d.ts +7 -0
- package/dist/commands/project/rotate.js +20 -0
- 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 +12 -0
- package/dist/lib/base.js +100 -9
- package/dist/lib/bootstrap-full-install.d.ts +10 -0
- package/dist/lib/bootstrap-full-install.js +66 -0
- package/dist/lib/browser-launch.d.ts +8 -0
- package/dist/lib/browser-launch.js +20 -0
- package/dist/lib/find-orphaned-files.d.ts +7 -0
- package/dist/lib/find-orphaned-files.js +29 -0
- package/dist/lib/github-release.d.ts +11 -0
- package/dist/lib/github-release.js +37 -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/plugin-detection.d.ts +8 -0
- package/dist/lib/plugin-detection.js +11 -0
- package/dist/lib/push-command.d.ts +7 -0
- package/dist/lib/push-command.js +40 -2
- package/dist/lib/rotate-app-password.d.ts +6 -0
- package/dist/lib/rotate-app-password.js +33 -0
- package/dist/lib/temp-admin.d.ts +19 -0
- package/dist/lib/temp-admin.js +46 -0
- package/dist/lib/wp-client.d.ts +10 -4
- package/dist/lib/wp-client.js +29 -12
- package/dist/types/project-config.generated.d.ts +4 -0
- package/dist/utils/composer.d.ts +3 -0
- package/dist/utils/page-format.d.ts +7 -0
- package/dist/utils/page-format.js +78 -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 +688 -29
- package/package.json +16 -9
- package/schemas/project-config.schema.json +5 -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.20.0 linux-x64 node-v24.18.0
|
|
25
25
|
$ lps --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ lps COMMAND
|
|
@@ -51,11 +51,13 @@ report.
|
|
|
51
51
|
* [`lps acf pull [PATH]`](#lps-acf-pull-path)
|
|
52
52
|
* [`lps acf push [PATH]`](#lps-acf-push-path)
|
|
53
53
|
* [`lps api list`](#lps-api-list)
|
|
54
|
+
* [`lps api publish [PATH]`](#lps-api-publish-path)
|
|
54
55
|
* [`lps api pull [PATH]`](#lps-api-pull-path)
|
|
55
56
|
* [`lps api push [PATH]`](#lps-api-push-path)
|
|
56
57
|
* [`lps composer init`](#lps-composer-init)
|
|
57
58
|
* [`lps composer pull`](#lps-composer-pull)
|
|
58
59
|
* [`lps composer push`](#lps-composer-push)
|
|
60
|
+
* [`lps doctor`](#lps-doctor)
|
|
59
61
|
* [`lps form list`](#lps-form-list)
|
|
60
62
|
* [`lps form pull [PATH]`](#lps-form-pull-path)
|
|
61
63
|
* [`lps form push [PATH]`](#lps-form-push-path)
|
|
@@ -63,6 +65,9 @@ report.
|
|
|
63
65
|
* [`lps init`](#lps-init)
|
|
64
66
|
* [`lps login`](#lps-login)
|
|
65
67
|
* [`lps logout`](#lps-logout)
|
|
68
|
+
* [`lps page list`](#lps-page-list)
|
|
69
|
+
* [`lps page pull [PATH]`](#lps-page-pull-path)
|
|
70
|
+
* [`lps page push [PATH]`](#lps-page-push-path)
|
|
66
71
|
* [`lps plugin add SLUG`](#lps-plugin-add-slug)
|
|
67
72
|
* [`lps plugin pull`](#lps-plugin-pull)
|
|
68
73
|
* [`lps plugin push`](#lps-plugin-push)
|
|
@@ -71,6 +76,7 @@ report.
|
|
|
71
76
|
* [`lps project pull`](#lps-project-pull)
|
|
72
77
|
* [`lps project push`](#lps-project-push)
|
|
73
78
|
* [`lps project remove`](#lps-project-remove)
|
|
79
|
+
* [`lps project rotate`](#lps-project-rotate)
|
|
74
80
|
* [`lps project switch`](#lps-project-switch)
|
|
75
81
|
* [`lps seo list`](#lps-seo-list)
|
|
76
82
|
* [`lps seo pull [PATH]`](#lps-seo-pull-path)
|
|
@@ -89,10 +95,11 @@ List ACF field groups, post types, taxonomies, and options pages from WordPress
|
|
|
89
95
|
|
|
90
96
|
```
|
|
91
97
|
USAGE
|
|
92
|
-
$ lps acf list [-j] [--type field-groups|post-types|taxonomies|options-pages...]
|
|
98
|
+
$ lps acf list [--env <value>] [-j] [--type field-groups|post-types|taxonomies|options-pages...]
|
|
93
99
|
|
|
94
100
|
FLAGS
|
|
95
101
|
-j, --json Output in JSON format
|
|
102
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
96
103
|
--type=<option>... Limit to specific ACF object types
|
|
97
104
|
<options: field-groups|post-types|taxonomies|options-pages>
|
|
98
105
|
|
|
@@ -105,7 +112,7 @@ EXAMPLES
|
|
|
105
112
|
$ lps acf list --type field-groups
|
|
106
113
|
```
|
|
107
114
|
|
|
108
|
-
_See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
115
|
+
_See code: [src/commands/acf/list.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/acf/list.ts)_
|
|
109
116
|
|
|
110
117
|
## `lps acf pull [PATH]`
|
|
111
118
|
|
|
@@ -113,13 +120,15 @@ Pull ACF field groups, post types, taxonomies, and options pages from WordPress
|
|
|
113
120
|
|
|
114
121
|
```
|
|
115
122
|
USAGE
|
|
116
|
-
$ lps acf pull [PATH] [-d] [--type field-groups|post-types|taxonomies|options-pages...]
|
|
123
|
+
$ lps acf pull [PATH] [--env <value>] [-d] [-y] [--type field-groups|post-types|taxonomies|options-pages...]
|
|
117
124
|
|
|
118
125
|
ARGUMENTS
|
|
119
126
|
[PATH] Path to ACF directory (overrides project config)
|
|
120
127
|
|
|
121
128
|
FLAGS
|
|
122
129
|
-d, --dry-run Show what would change without making changes
|
|
130
|
+
-y, --yes Answer yes to confirmation prompts
|
|
131
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
123
132
|
--type=<option>... Limit to specific ACF object types
|
|
124
133
|
<options: field-groups|post-types|taxonomies|options-pages>
|
|
125
134
|
|
|
@@ -132,7 +141,7 @@ EXAMPLES
|
|
|
132
141
|
$ lps acf pull --type field-groups
|
|
133
142
|
```
|
|
134
143
|
|
|
135
|
-
_See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
144
|
+
_See code: [src/commands/acf/pull.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/acf/pull.ts)_
|
|
136
145
|
|
|
137
146
|
## `lps acf push [PATH]`
|
|
138
147
|
|
|
@@ -140,13 +149,15 @@ Push ACF field groups, post types, taxonomies, and options pages to WordPress
|
|
|
140
149
|
|
|
141
150
|
```
|
|
142
151
|
USAGE
|
|
143
|
-
$ lps acf push [PATH] [-d] [--type field-groups|post-types|taxonomies|options-pages...]
|
|
152
|
+
$ lps acf push [PATH] [--env <value>] [-d] [-y] [--type field-groups|post-types|taxonomies|options-pages...]
|
|
144
153
|
|
|
145
154
|
ARGUMENTS
|
|
146
155
|
[PATH] Path to ACF directory (overrides project config)
|
|
147
156
|
|
|
148
157
|
FLAGS
|
|
149
158
|
-d, --dry-run Show what would change without making changes
|
|
159
|
+
-y, --yes Answer yes to confirmation prompts
|
|
160
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
150
161
|
--type=<option>... Limit to specific ACF object types
|
|
151
162
|
<options: field-groups|post-types|taxonomies|options-pages>
|
|
152
163
|
|
|
@@ -159,7 +170,7 @@ EXAMPLES
|
|
|
159
170
|
$ lps acf push --type field-groups
|
|
160
171
|
```
|
|
161
172
|
|
|
162
|
-
_See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
173
|
+
_See code: [src/commands/acf/push.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/acf/push.ts)_
|
|
163
174
|
|
|
164
175
|
## `lps api list`
|
|
165
176
|
|
|
@@ -167,10 +178,11 @@ List custom API route files from WordPress
|
|
|
167
178
|
|
|
168
179
|
```
|
|
169
180
|
USAGE
|
|
170
|
-
$ lps api list [-j]
|
|
181
|
+
$ lps api list [--env <value>] [-j]
|
|
171
182
|
|
|
172
183
|
FLAGS
|
|
173
|
-
-j, --json
|
|
184
|
+
-j, --json Output in JSON format
|
|
185
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
174
186
|
|
|
175
187
|
DESCRIPTION
|
|
176
188
|
List custom API route files from WordPress
|
|
@@ -179,7 +191,30 @@ EXAMPLES
|
|
|
179
191
|
$ lps api list
|
|
180
192
|
```
|
|
181
193
|
|
|
182
|
-
_See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
194
|
+
_See code: [src/commands/api/list.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/api/list.ts)_
|
|
195
|
+
|
|
196
|
+
## `lps api publish [PATH]`
|
|
197
|
+
|
|
198
|
+
Publish custom API routes to your Loopress account so they can be deployed to other projects. Does not touch any WordPress site.
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
USAGE
|
|
202
|
+
$ lps api publish [PATH]
|
|
203
|
+
|
|
204
|
+
ARGUMENTS
|
|
205
|
+
[PATH] Path to api directory (overrides project config)
|
|
206
|
+
|
|
207
|
+
DESCRIPTION
|
|
208
|
+
Publish custom API routes to your Loopress account so they can be deployed to other projects. Does not touch any
|
|
209
|
+
WordPress site.
|
|
210
|
+
|
|
211
|
+
EXAMPLES
|
|
212
|
+
$ lps api publish
|
|
213
|
+
|
|
214
|
+
$ lps api publish --path ./api
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
_See code: [src/commands/api/publish.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/api/publish.ts)_
|
|
183
218
|
|
|
184
219
|
## `lps api pull [PATH]`
|
|
185
220
|
|
|
@@ -187,13 +222,15 @@ Pull custom API route files from WordPress
|
|
|
187
222
|
|
|
188
223
|
```
|
|
189
224
|
USAGE
|
|
190
|
-
$ lps api pull [PATH] [-d]
|
|
225
|
+
$ lps api pull [PATH] [--env <value>] [-d] [-y]
|
|
191
226
|
|
|
192
227
|
ARGUMENTS
|
|
193
228
|
[PATH] Path to api directory (overrides project config)
|
|
194
229
|
|
|
195
230
|
FLAGS
|
|
196
|
-
-d, --dry-run
|
|
231
|
+
-d, --dry-run Show what would change without making changes
|
|
232
|
+
-y, --yes Answer yes to confirmation prompts
|
|
233
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
197
234
|
|
|
198
235
|
DESCRIPTION
|
|
199
236
|
Pull custom API route files from WordPress
|
|
@@ -204,7 +241,7 @@ EXAMPLES
|
|
|
204
241
|
$ lps api pull --path ./api
|
|
205
242
|
```
|
|
206
243
|
|
|
207
|
-
_See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
244
|
+
_See code: [src/commands/api/pull.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/api/pull.ts)_
|
|
208
245
|
|
|
209
246
|
## `lps api push [PATH]`
|
|
210
247
|
|
|
@@ -212,13 +249,15 @@ Push custom API route files to WordPress
|
|
|
212
249
|
|
|
213
250
|
```
|
|
214
251
|
USAGE
|
|
215
|
-
$ lps api push [PATH] [-d]
|
|
252
|
+
$ lps api push [PATH] [--env <value>] [-d] [-y]
|
|
216
253
|
|
|
217
254
|
ARGUMENTS
|
|
218
255
|
[PATH] Path to api directory (overrides project config)
|
|
219
256
|
|
|
220
257
|
FLAGS
|
|
221
|
-
-d, --dry-run
|
|
258
|
+
-d, --dry-run Show what would change without making changes
|
|
259
|
+
-y, --yes Answer yes to confirmation prompts
|
|
260
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
222
261
|
|
|
223
262
|
DESCRIPTION
|
|
224
263
|
Push custom API route files to WordPress
|
|
@@ -229,7 +268,7 @@ EXAMPLES
|
|
|
229
268
|
$ lps api push --path ./api
|
|
230
269
|
```
|
|
231
270
|
|
|
232
|
-
_See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
271
|
+
_See code: [src/commands/api/push.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/api/push.ts)_
|
|
233
272
|
|
|
234
273
|
## `lps composer init`
|
|
235
274
|
|
|
@@ -237,10 +276,11 @@ Create a composer.json wired to WPackagist for installing WordPress.org plugins
|
|
|
237
276
|
|
|
238
277
|
```
|
|
239
278
|
USAGE
|
|
240
|
-
$ lps composer init [-d]
|
|
279
|
+
$ lps composer init [--env <value>] [-d]
|
|
241
280
|
|
|
242
281
|
FLAGS
|
|
243
|
-
-d, --dry-run
|
|
282
|
+
-d, --dry-run Show what would change without making changes
|
|
283
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
244
284
|
|
|
245
285
|
DESCRIPTION
|
|
246
286
|
Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes
|
|
@@ -251,7 +291,7 @@ EXAMPLES
|
|
|
251
291
|
$ lps composer init --dry-run
|
|
252
292
|
```
|
|
253
293
|
|
|
254
|
-
_See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.
|
|
294
|
+
_See code: [src/commands/composer/init.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/composer/init.ts)_
|
|
255
295
|
|
|
256
296
|
## `lps composer pull`
|
|
257
297
|
|
|
@@ -259,10 +299,11 @@ Pull composer.json and composer.lock from WordPress
|
|
|
259
299
|
|
|
260
300
|
```
|
|
261
301
|
USAGE
|
|
262
|
-
$ lps composer pull [-d]
|
|
302
|
+
$ lps composer pull [--env <value>] [-d]
|
|
263
303
|
|
|
264
304
|
FLAGS
|
|
265
|
-
-d, --dry-run
|
|
305
|
+
-d, --dry-run Show what would change without making changes
|
|
306
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
266
307
|
|
|
267
308
|
DESCRIPTION
|
|
268
309
|
Pull composer.json and composer.lock from WordPress
|
|
@@ -273,7 +314,7 @@ EXAMPLES
|
|
|
273
314
|
$ lps composer pull --dry-run
|
|
274
315
|
```
|
|
275
316
|
|
|
276
|
-
_See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
317
|
+
_See code: [src/commands/composer/pull.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/composer/pull.ts)_
|
|
277
318
|
|
|
278
319
|
## `lps composer push`
|
|
279
320
|
|
|
@@ -281,10 +322,12 @@ Push composer.json and composer.lock to WordPress and run composer install
|
|
|
281
322
|
|
|
282
323
|
```
|
|
283
324
|
USAGE
|
|
284
|
-
$ lps composer push [-d]
|
|
325
|
+
$ lps composer push [--env <value>] [-d] [-y]
|
|
285
326
|
|
|
286
327
|
FLAGS
|
|
287
|
-
-d, --dry-run
|
|
328
|
+
-d, --dry-run Show what would change without making changes
|
|
329
|
+
-y, --yes Answer yes to confirmation prompts
|
|
330
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
288
331
|
|
|
289
332
|
DESCRIPTION
|
|
290
333
|
Push composer.json and composer.lock to WordPress and run composer install
|
|
@@ -295,7 +338,29 @@ EXAMPLES
|
|
|
295
338
|
$ lps composer push --dry-run
|
|
296
339
|
```
|
|
297
340
|
|
|
298
|
-
_See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
341
|
+
_See code: [src/commands/composer/push.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/composer/push.ts)_
|
|
342
|
+
|
|
343
|
+
## `lps doctor`
|
|
344
|
+
|
|
345
|
+
Diagnose connectivity, plugin and credential problems for the targeted environment
|
|
346
|
+
|
|
347
|
+
```
|
|
348
|
+
USAGE
|
|
349
|
+
$ lps doctor [--env <value>]
|
|
350
|
+
|
|
351
|
+
FLAGS
|
|
352
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
353
|
+
|
|
354
|
+
DESCRIPTION
|
|
355
|
+
Diagnose connectivity, plugin and credential problems for the targeted environment
|
|
356
|
+
|
|
357
|
+
EXAMPLES
|
|
358
|
+
$ lps doctor
|
|
359
|
+
|
|
360
|
+
$ lps doctor --env production
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
_See code: [src/commands/doctor.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/doctor.ts)_
|
|
299
364
|
|
|
300
365
|
## `lps form list`
|
|
301
366
|
|
|
@@ -303,10 +368,11 @@ List forms from WordPress
|
|
|
303
368
|
|
|
304
369
|
```
|
|
305
370
|
USAGE
|
|
306
|
-
$ lps form list [-j]
|
|
371
|
+
$ lps form list [--env <value>] [-j]
|
|
307
372
|
|
|
308
373
|
FLAGS
|
|
309
|
-
-j, --json
|
|
374
|
+
-j, --json Output in JSON format
|
|
375
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
310
376
|
|
|
311
377
|
DESCRIPTION
|
|
312
378
|
List forms from WordPress
|
|
@@ -315,7 +381,7 @@ EXAMPLES
|
|
|
315
381
|
$ lps form list
|
|
316
382
|
```
|
|
317
383
|
|
|
318
|
-
_See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
384
|
+
_See code: [src/commands/form/list.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/form/list.ts)_
|
|
319
385
|
|
|
320
386
|
## `lps form pull [PATH]`
|
|
321
387
|
|
|
@@ -323,13 +389,15 @@ Pull forms from WordPress
|
|
|
323
389
|
|
|
324
390
|
```
|
|
325
391
|
USAGE
|
|
326
|
-
$ lps form pull [PATH] [-d]
|
|
392
|
+
$ lps form pull [PATH] [--env <value>] [-d] [-y]
|
|
327
393
|
|
|
328
394
|
ARGUMENTS
|
|
329
395
|
[PATH] Path to forms directory (overrides project config)
|
|
330
396
|
|
|
331
397
|
FLAGS
|
|
332
|
-
-d, --dry-run
|
|
398
|
+
-d, --dry-run Show what would change without making changes
|
|
399
|
+
-y, --yes Answer yes to confirmation prompts
|
|
400
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
333
401
|
|
|
334
402
|
DESCRIPTION
|
|
335
403
|
Pull forms from WordPress
|
|
@@ -338,7 +406,7 @@ EXAMPLES
|
|
|
338
406
|
$ lps form pull
|
|
339
407
|
```
|
|
340
408
|
|
|
341
|
-
_See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
409
|
+
_See code: [src/commands/form/pull.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/form/pull.ts)_
|
|
342
410
|
|
|
343
411
|
## `lps form push [PATH]`
|
|
344
412
|
|
|
@@ -346,13 +414,15 @@ Push forms to WordPress. Local files created or updated remotely are renamed on
|
|
|
346
414
|
|
|
347
415
|
```
|
|
348
416
|
USAGE
|
|
349
|
-
$ lps form push [PATH] [-d]
|
|
417
|
+
$ lps form push [PATH] [--env <value>] [-d] [-y]
|
|
350
418
|
|
|
351
419
|
ARGUMENTS
|
|
352
420
|
[PATH] Path to forms directory (overrides project config)
|
|
353
421
|
|
|
354
422
|
FLAGS
|
|
355
|
-
-d, --dry-run
|
|
423
|
+
-d, --dry-run Show what would change without making changes
|
|
424
|
+
-y, --yes Answer yes to confirmation prompts
|
|
425
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
356
426
|
|
|
357
427
|
DESCRIPTION
|
|
358
428
|
Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json`
|
|
@@ -362,7 +432,7 @@ EXAMPLES
|
|
|
362
432
|
$ lps form push
|
|
363
433
|
```
|
|
364
434
|
|
|
365
|
-
_See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
435
|
+
_See code: [src/commands/form/push.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/form/push.ts)_
|
|
366
436
|
|
|
367
437
|
## `lps help [COMMAND]`
|
|
368
438
|
|
|
@@ -382,7 +452,7 @@ DESCRIPTION
|
|
|
382
452
|
Display help for lps.
|
|
383
453
|
```
|
|
384
454
|
|
|
385
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.
|
|
455
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.55/src/commands/help.ts)_
|
|
386
456
|
|
|
387
457
|
## `lps init`
|
|
388
458
|
|
|
@@ -399,7 +469,7 @@ EXAMPLES
|
|
|
399
469
|
$ lps init
|
|
400
470
|
```
|
|
401
471
|
|
|
402
|
-
_See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.
|
|
472
|
+
_See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/init.ts)_
|
|
403
473
|
|
|
404
474
|
## `lps login`
|
|
405
475
|
|
|
@@ -416,7 +486,7 @@ EXAMPLES
|
|
|
416
486
|
$ lps login
|
|
417
487
|
```
|
|
418
488
|
|
|
419
|
-
_See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.
|
|
489
|
+
_See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/login.ts)_
|
|
420
490
|
|
|
421
491
|
## `lps logout`
|
|
422
492
|
|
|
@@ -433,7 +503,78 @@ EXAMPLES
|
|
|
433
503
|
$ lps logout
|
|
434
504
|
```
|
|
435
505
|
|
|
436
|
-
_See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.
|
|
506
|
+
_See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/logout.ts)_
|
|
507
|
+
|
|
508
|
+
## `lps page list`
|
|
509
|
+
|
|
510
|
+
List pages from WordPress
|
|
511
|
+
|
|
512
|
+
```
|
|
513
|
+
USAGE
|
|
514
|
+
$ lps page list [--env <value>] [-j]
|
|
515
|
+
|
|
516
|
+
FLAGS
|
|
517
|
+
-j, --json Output in JSON format
|
|
518
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
519
|
+
|
|
520
|
+
DESCRIPTION
|
|
521
|
+
List pages from WordPress
|
|
522
|
+
|
|
523
|
+
EXAMPLES
|
|
524
|
+
$ lps page list
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
_See code: [src/commands/page/list.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/page/list.ts)_
|
|
528
|
+
|
|
529
|
+
## `lps page pull [PATH]`
|
|
530
|
+
|
|
531
|
+
Pull pages from WordPress
|
|
532
|
+
|
|
533
|
+
```
|
|
534
|
+
USAGE
|
|
535
|
+
$ lps page pull [PATH] [--env <value>] [-d] [-y]
|
|
536
|
+
|
|
537
|
+
ARGUMENTS
|
|
538
|
+
[PATH] Path to pages directory (overrides project config)
|
|
539
|
+
|
|
540
|
+
FLAGS
|
|
541
|
+
-d, --dry-run Show what would change without making changes
|
|
542
|
+
-y, --yes Answer yes to confirmation prompts
|
|
543
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
544
|
+
|
|
545
|
+
DESCRIPTION
|
|
546
|
+
Pull pages from WordPress
|
|
547
|
+
|
|
548
|
+
EXAMPLES
|
|
549
|
+
$ lps page pull
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
_See code: [src/commands/page/pull.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/page/pull.ts)_
|
|
553
|
+
|
|
554
|
+
## `lps page push [PATH]`
|
|
555
|
+
|
|
556
|
+
Push pages to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>` convention.
|
|
557
|
+
|
|
558
|
+
```
|
|
559
|
+
USAGE
|
|
560
|
+
$ lps page push [PATH] [--env <value>] [-d] [-y]
|
|
561
|
+
|
|
562
|
+
ARGUMENTS
|
|
563
|
+
[PATH] Path to pages directory (overrides project config)
|
|
564
|
+
|
|
565
|
+
FLAGS
|
|
566
|
+
-d, --dry-run Show what would change without making changes
|
|
567
|
+
-y, --yes Answer yes to confirmation prompts
|
|
568
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
569
|
+
|
|
570
|
+
DESCRIPTION
|
|
571
|
+
Push pages to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>` convention.
|
|
572
|
+
|
|
573
|
+
EXAMPLES
|
|
574
|
+
$ lps page push
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
_See code: [src/commands/page/push.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/page/push.ts)_
|
|
437
578
|
|
|
438
579
|
## `lps plugin add SLUG`
|
|
439
580
|
|
|
@@ -441,13 +582,14 @@ Add a WordPress.org plugin to loopress.json
|
|
|
441
582
|
|
|
442
583
|
```
|
|
443
584
|
USAGE
|
|
444
|
-
$ lps plugin add SLUG [-d]
|
|
585
|
+
$ lps plugin add SLUG [--env <value>] [-d]
|
|
445
586
|
|
|
446
587
|
ARGUMENTS
|
|
447
588
|
SLUG Plugin slug on WordPress.org
|
|
448
589
|
|
|
449
590
|
FLAGS
|
|
450
|
-
-d, --dry-run
|
|
591
|
+
-d, --dry-run Show what would change without making changes
|
|
592
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
451
593
|
|
|
452
594
|
DESCRIPTION
|
|
453
595
|
Add a WordPress.org plugin to loopress.json
|
|
@@ -458,7 +600,7 @@ EXAMPLES
|
|
|
458
600
|
$ lps plugin add contact-form-7 --dry-run
|
|
459
601
|
```
|
|
460
602
|
|
|
461
|
-
_See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.
|
|
603
|
+
_See code: [src/commands/plugin/add.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/plugin/add.ts)_
|
|
462
604
|
|
|
463
605
|
## `lps plugin pull`
|
|
464
606
|
|
|
@@ -466,10 +608,11 @@ Pull installed plugins from WordPress into loopress.json
|
|
|
466
608
|
|
|
467
609
|
```
|
|
468
610
|
USAGE
|
|
469
|
-
$ lps plugin pull [-d]
|
|
611
|
+
$ lps plugin pull [--env <value>] [-d]
|
|
470
612
|
|
|
471
613
|
FLAGS
|
|
472
|
-
-d, --dry-run
|
|
614
|
+
-d, --dry-run Show what would change without making changes
|
|
615
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
473
616
|
|
|
474
617
|
DESCRIPTION
|
|
475
618
|
Pull installed plugins from WordPress into loopress.json
|
|
@@ -480,7 +623,7 @@ EXAMPLES
|
|
|
480
623
|
$ lps plugin pull --dry-run
|
|
481
624
|
```
|
|
482
625
|
|
|
483
|
-
_See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
626
|
+
_See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/plugin/pull.ts)_
|
|
484
627
|
|
|
485
628
|
## `lps plugin push`
|
|
486
629
|
|
|
@@ -488,10 +631,12 @@ Push plugins to WordPress to match loopress.json
|
|
|
488
631
|
|
|
489
632
|
```
|
|
490
633
|
USAGE
|
|
491
|
-
$ lps plugin push [-d]
|
|
634
|
+
$ lps plugin push [--env <value>] [-d] [-y]
|
|
492
635
|
|
|
493
636
|
FLAGS
|
|
494
|
-
-d, --dry-run
|
|
637
|
+
-d, --dry-run Show what would change without making changes
|
|
638
|
+
-y, --yes Answer yes to confirmation prompts
|
|
639
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
495
640
|
|
|
496
641
|
DESCRIPTION
|
|
497
642
|
Push plugins to WordPress to match loopress.json
|
|
@@ -502,7 +647,7 @@ EXAMPLES
|
|
|
502
647
|
$ lps plugin push --dry-run
|
|
503
648
|
```
|
|
504
649
|
|
|
505
|
-
_See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
650
|
+
_See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/plugin/push.ts)_
|
|
506
651
|
|
|
507
652
|
## `lps project config`
|
|
508
653
|
|
|
@@ -520,7 +665,7 @@ EXAMPLES
|
|
|
520
665
|
$ lps project config
|
|
521
666
|
```
|
|
522
667
|
|
|
523
|
-
_See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.
|
|
668
|
+
_See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/project/config.ts)_
|
|
524
669
|
|
|
525
670
|
## `lps project list`
|
|
526
671
|
|
|
@@ -537,7 +682,7 @@ EXAMPLES
|
|
|
537
682
|
$ lps project list
|
|
538
683
|
```
|
|
539
684
|
|
|
540
|
-
_See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
685
|
+
_See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/project/list.ts)_
|
|
541
686
|
|
|
542
687
|
## `lps project pull`
|
|
543
688
|
|
|
@@ -554,7 +699,7 @@ EXAMPLES
|
|
|
554
699
|
$ lps project pull
|
|
555
700
|
```
|
|
556
701
|
|
|
557
|
-
_See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
702
|
+
_See code: [src/commands/project/pull.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/project/pull.ts)_
|
|
558
703
|
|
|
559
704
|
## `lps project push`
|
|
560
705
|
|
|
@@ -562,7 +707,10 @@ Push locally configured projects, environments and credentials to your Loopress
|
|
|
562
707
|
|
|
563
708
|
```
|
|
564
709
|
USAGE
|
|
565
|
-
$ lps project push
|
|
710
|
+
$ lps project push [-y]
|
|
711
|
+
|
|
712
|
+
FLAGS
|
|
713
|
+
-y, --yes Answer yes to confirmation prompts
|
|
566
714
|
|
|
567
715
|
DESCRIPTION
|
|
568
716
|
Push locally configured projects, environments and credentials to your Loopress account
|
|
@@ -571,7 +719,7 @@ EXAMPLES
|
|
|
571
719
|
$ lps project push
|
|
572
720
|
```
|
|
573
721
|
|
|
574
|
-
_See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
722
|
+
_See code: [src/commands/project/push.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/project/push.ts)_
|
|
575
723
|
|
|
576
724
|
## `lps project remove`
|
|
577
725
|
|
|
@@ -588,7 +736,29 @@ EXAMPLES
|
|
|
588
736
|
$ lps project remove
|
|
589
737
|
```
|
|
590
738
|
|
|
591
|
-
_See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.
|
|
739
|
+
_See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/project/remove.ts)_
|
|
740
|
+
|
|
741
|
+
## `lps project rotate`
|
|
742
|
+
|
|
743
|
+
Rotate the WordPress application password for the current (or --env) environment
|
|
744
|
+
|
|
745
|
+
```
|
|
746
|
+
USAGE
|
|
747
|
+
$ lps project rotate [--env <value>]
|
|
748
|
+
|
|
749
|
+
FLAGS
|
|
750
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
751
|
+
|
|
752
|
+
DESCRIPTION
|
|
753
|
+
Rotate the WordPress application password for the current (or --env) environment
|
|
754
|
+
|
|
755
|
+
EXAMPLES
|
|
756
|
+
$ lps project rotate
|
|
757
|
+
|
|
758
|
+
$ lps project rotate --env staging
|
|
759
|
+
```
|
|
760
|
+
|
|
761
|
+
_See code: [src/commands/project/rotate.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/project/rotate.ts)_
|
|
592
762
|
|
|
593
763
|
## `lps project switch`
|
|
594
764
|
|
|
@@ -605,7 +775,7 @@ EXAMPLES
|
|
|
605
775
|
$ lps project switch
|
|
606
776
|
```
|
|
607
777
|
|
|
608
|
-
_See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.
|
|
778
|
+
_See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/project/switch.ts)_
|
|
609
779
|
|
|
610
780
|
## `lps seo list`
|
|
611
781
|
|
|
@@ -613,10 +783,11 @@ List posts with SEO meta, and redirects if supported by the active SEO plugin, o
|
|
|
613
783
|
|
|
614
784
|
```
|
|
615
785
|
USAGE
|
|
616
|
-
$ lps seo list [-j] [--post-type <value>...]
|
|
786
|
+
$ lps seo list [--env <value>] [-j] [--post-type <value>...]
|
|
617
787
|
|
|
618
788
|
FLAGS
|
|
619
789
|
-j, --json Output in JSON format
|
|
790
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
620
791
|
--post-type=<value>... Limit to specific post types
|
|
621
792
|
|
|
622
793
|
DESCRIPTION
|
|
@@ -628,7 +799,7 @@ EXAMPLES
|
|
|
628
799
|
$ lps seo list --post-type post
|
|
629
800
|
```
|
|
630
801
|
|
|
631
|
-
_See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
802
|
+
_See code: [src/commands/seo/list.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/seo/list.ts)_
|
|
632
803
|
|
|
633
804
|
## `lps seo pull [PATH]`
|
|
634
805
|
|
|
@@ -636,13 +807,15 @@ Pull SEO settings, post meta, and (if supported) redirects from WordPress
|
|
|
636
807
|
|
|
637
808
|
```
|
|
638
809
|
USAGE
|
|
639
|
-
$ lps seo pull [PATH] [-d] [--post-type <value>...]
|
|
810
|
+
$ lps seo pull [PATH] [--env <value>] [-d] [-y] [--post-type <value>...]
|
|
640
811
|
|
|
641
812
|
ARGUMENTS
|
|
642
813
|
[PATH] Path to SEO directory (overrides project config)
|
|
643
814
|
|
|
644
815
|
FLAGS
|
|
645
816
|
-d, --dry-run Show what would change without making changes
|
|
817
|
+
-y, --yes Answer yes to confirmation prompts
|
|
818
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
646
819
|
--post-type=<value>... Limit post meta to specific post types
|
|
647
820
|
|
|
648
821
|
DESCRIPTION
|
|
@@ -654,7 +827,7 @@ EXAMPLES
|
|
|
654
827
|
$ lps seo pull --post-type post --post-type page
|
|
655
828
|
```
|
|
656
829
|
|
|
657
|
-
_See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
830
|
+
_See code: [src/commands/seo/pull.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/seo/pull.ts)_
|
|
658
831
|
|
|
659
832
|
## `lps seo push [PATH]`
|
|
660
833
|
|
|
@@ -662,13 +835,15 @@ Push SEO settings, post meta, and redirects to WordPress. Local redirect files c
|
|
|
662
835
|
|
|
663
836
|
```
|
|
664
837
|
USAGE
|
|
665
|
-
$ lps seo push [PATH] [-d]
|
|
838
|
+
$ lps seo push [PATH] [--env <value>] [-d] [-y]
|
|
666
839
|
|
|
667
840
|
ARGUMENTS
|
|
668
841
|
[PATH] Path to SEO directory (overrides project config)
|
|
669
842
|
|
|
670
843
|
FLAGS
|
|
671
|
-
-d, --dry-run
|
|
844
|
+
-d, --dry-run Show what would change without making changes
|
|
845
|
+
-y, --yes Answer yes to confirmation prompts
|
|
846
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
672
847
|
|
|
673
848
|
DESCRIPTION
|
|
674
849
|
Push SEO settings, post meta, and redirects to WordPress. Local redirect files created remotely are renamed on disk to
|
|
@@ -678,7 +853,7 @@ EXAMPLES
|
|
|
678
853
|
$ lps seo push
|
|
679
854
|
```
|
|
680
855
|
|
|
681
|
-
_See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
856
|
+
_See code: [src/commands/seo/push.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/seo/push.ts)_
|
|
682
857
|
|
|
683
858
|
## `lps snippet list`
|
|
684
859
|
|
|
@@ -686,10 +861,11 @@ List snippets from WordPress
|
|
|
686
861
|
|
|
687
862
|
```
|
|
688
863
|
USAGE
|
|
689
|
-
$ lps snippet list [-j]
|
|
864
|
+
$ lps snippet list [--env <value>] [-j]
|
|
690
865
|
|
|
691
866
|
FLAGS
|
|
692
|
-
-j, --json
|
|
867
|
+
-j, --json Output in JSON format
|
|
868
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
693
869
|
|
|
694
870
|
DESCRIPTION
|
|
695
871
|
List snippets from WordPress
|
|
@@ -698,7 +874,7 @@ EXAMPLES
|
|
|
698
874
|
$ lps snippet list
|
|
699
875
|
```
|
|
700
876
|
|
|
701
|
-
_See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
877
|
+
_See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/snippet/list.ts)_
|
|
702
878
|
|
|
703
879
|
## `lps snippet publish [PATH]`
|
|
704
880
|
|
|
@@ -721,7 +897,7 @@ EXAMPLES
|
|
|
721
897
|
$ lps snippet publish --path ./snippets
|
|
722
898
|
```
|
|
723
899
|
|
|
724
|
-
_See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.
|
|
900
|
+
_See code: [src/commands/snippet/publish.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/snippet/publish.ts)_
|
|
725
901
|
|
|
726
902
|
## `lps snippet pull [PATH]`
|
|
727
903
|
|
|
@@ -729,13 +905,15 @@ Pull snippets from WordPress
|
|
|
729
905
|
|
|
730
906
|
```
|
|
731
907
|
USAGE
|
|
732
|
-
$ lps snippet pull [PATH] [-d]
|
|
908
|
+
$ lps snippet pull [PATH] [--env <value>] [-d] [-y]
|
|
733
909
|
|
|
734
910
|
ARGUMENTS
|
|
735
911
|
[PATH] Path to snippets directory (overrides project config)
|
|
736
912
|
|
|
737
913
|
FLAGS
|
|
738
|
-
-d, --dry-run
|
|
914
|
+
-d, --dry-run Show what would change without making changes
|
|
915
|
+
-y, --yes Answer yes to confirmation prompts
|
|
916
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
739
917
|
|
|
740
918
|
DESCRIPTION
|
|
741
919
|
Pull snippets from WordPress
|
|
@@ -746,7 +924,7 @@ EXAMPLES
|
|
|
746
924
|
$ lps snippet pull --path ./snippets
|
|
747
925
|
```
|
|
748
926
|
|
|
749
|
-
_See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.
|
|
927
|
+
_See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/snippet/pull.ts)_
|
|
750
928
|
|
|
751
929
|
## `lps snippet push [PATH]`
|
|
752
930
|
|
|
@@ -754,13 +932,15 @@ Push snippets to WordPress. Local snippet files created or updated remotely are
|
|
|
754
932
|
|
|
755
933
|
```
|
|
756
934
|
USAGE
|
|
757
|
-
$ lps snippet push [PATH] [-d]
|
|
935
|
+
$ lps snippet push [PATH] [--env <value>] [-d] [-y]
|
|
758
936
|
|
|
759
937
|
ARGUMENTS
|
|
760
938
|
[PATH] Path to snippets directory (overrides project config)
|
|
761
939
|
|
|
762
940
|
FLAGS
|
|
763
|
-
-d, --dry-run
|
|
941
|
+
-d, --dry-run Show what would change without making changes
|
|
942
|
+
-y, --yes Answer yes to confirmation prompts
|
|
943
|
+
--env=<value> Target environment by name, overriding the globally active one (lps project switch)
|
|
764
944
|
|
|
765
945
|
DESCRIPTION
|
|
766
946
|
Push snippets to WordPress. Local snippet files created or updated remotely are renamed on disk to the `<id>-<slug>`
|
|
@@ -772,7 +952,7 @@ EXAMPLES
|
|
|
772
952
|
$ lps snippet push --path ./snippets
|
|
773
953
|
```
|
|
774
954
|
|
|
775
|
-
_See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.
|
|
955
|
+
_See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/snippet/push.ts)_
|
|
776
956
|
|
|
777
957
|
## `lps status`
|
|
778
958
|
|
|
@@ -780,16 +960,21 @@ Show which WordPress project and environment commands will target
|
|
|
780
960
|
|
|
781
961
|
```
|
|
782
962
|
USAGE
|
|
783
|
-
$ lps status
|
|
963
|
+
$ lps status [--env <value>]
|
|
964
|
+
|
|
965
|
+
FLAGS
|
|
966
|
+
--env=<value> Show what would be targeted with this environment, as other commands do with --env
|
|
784
967
|
|
|
785
968
|
DESCRIPTION
|
|
786
969
|
Show which WordPress project and environment commands will target
|
|
787
970
|
|
|
788
971
|
EXAMPLES
|
|
789
972
|
$ lps status
|
|
973
|
+
|
|
974
|
+
$ lps status --env staging
|
|
790
975
|
```
|
|
791
976
|
|
|
792
|
-
_See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.
|
|
977
|
+
_See code: [src/commands/status.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/status.ts)_
|
|
793
978
|
|
|
794
979
|
## `lps telemetry disable`
|
|
795
980
|
|
|
@@ -806,7 +991,7 @@ EXAMPLES
|
|
|
806
991
|
$ lps telemetry disable
|
|
807
992
|
```
|
|
808
993
|
|
|
809
|
-
_See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.
|
|
994
|
+
_See code: [src/commands/telemetry/disable.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/telemetry/disable.ts)_
|
|
810
995
|
|
|
811
996
|
## `lps telemetry enable`
|
|
812
997
|
|
|
@@ -823,5 +1008,5 @@ EXAMPLES
|
|
|
823
1008
|
$ lps telemetry enable
|
|
824
1009
|
```
|
|
825
1010
|
|
|
826
|
-
_See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.
|
|
1011
|
+
_See code: [src/commands/telemetry/enable.ts](https://github.com/loopress/loopress/blob/v0.20.0/src/commands/telemetry/enable.ts)_
|
|
827
1012
|
<!-- commandsstop -->
|