@loopress/cli 0.3.0 → 0.5.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 +88 -334
- package/dist/commands/init.d.ts +6 -0
- package/dist/commands/init.js +73 -0
- package/dist/commands/{styles → plugin}/pull.d.ts +1 -1
- package/dist/commands/plugin/pull.js +48 -0
- package/dist/commands/{styles → plugin}/push.d.ts +4 -4
- package/dist/commands/plugin/push.js +113 -0
- package/dist/commands/plugin/require.d.ts +17 -0
- package/dist/commands/plugin/require.js +74 -0
- package/dist/commands/project/config.js +2 -2
- package/dist/commands/{snippets → snippet}/list.d.ts +1 -1
- package/dist/commands/{snippets → snippet}/list.js +3 -3
- package/dist/commands/{snippets → snippet}/pull.d.ts +4 -1
- package/dist/commands/{snippets → snippet}/pull.js +26 -37
- package/dist/commands/{snippets → snippet}/push.d.ts +4 -5
- package/dist/commands/{snippets → snippet}/push.js +50 -39
- package/dist/config/auth.manager.js +2 -2
- package/dist/config/project-config.manager.js +2 -2
- package/dist/lib/base.d.ts +1 -1
- package/dist/lib/base.js +18 -6
- package/dist/lib/push-command.d.ts +7 -0
- package/dist/lib/push-command.js +32 -0
- package/dist/types/plugin.d.ts +15 -0
- package/dist/types/plugin.js +1 -0
- package/dist/utils/loopress-config.d.ts +5 -2
- package/dist/utils/loopress-config.js +8 -3
- package/dist/utils/plugins.d.ts +27 -0
- package/dist/utils/plugins.js +34 -0
- package/dist/utils/snippet-plugin.js +1 -1
- package/oclif.manifest.json +217 -131
- package/package.json +14 -19
- package/dist/commands/styles/pull.js +0 -52
- package/dist/commands/styles/push.js +0 -78
package/README.md
CHANGED
|
@@ -1,58 +1,52 @@
|
|
|
1
|
-
Loopress
|
|
2
|
-
=================
|
|
1
|
+
# Loopress
|
|
3
2
|
|
|
4
3
|
A new CLI generated with oclif
|
|
5
4
|
|
|
6
|
-
|
|
7
5
|
[](https://oclif.io)
|
|
8
6
|
[](https://npmjs.org/package/mynewcli)
|
|
9
7
|
[](https://npmjs.org/package/mynewcli)
|
|
10
8
|
|
|
11
|
-
|
|
12
9
|
<!-- toc -->
|
|
10
|
+
* [Loopress](#loopress)
|
|
13
11
|
* [Usage](#usage)
|
|
14
12
|
* [Commands](#commands)
|
|
15
13
|
<!-- tocstop -->
|
|
14
|
+
|
|
16
15
|
# Usage
|
|
16
|
+
|
|
17
17
|
<!-- usage -->
|
|
18
18
|
```sh-session
|
|
19
19
|
$ npm install -g @loopress/cli
|
|
20
20
|
$ lps COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ lps (--version)
|
|
23
|
-
@loopress/cli/0.
|
|
23
|
+
@loopress/cli/0.5.0 linux-x64 node-v24.17.0
|
|
24
24
|
$ lps --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ lps COMMAND
|
|
27
27
|
...
|
|
28
28
|
```
|
|
29
29
|
<!-- usagestop -->
|
|
30
|
+
|
|
30
31
|
# Commands
|
|
32
|
+
|
|
31
33
|
<!-- commands -->
|
|
32
34
|
* [`lps help [COMMAND]`](#lps-help-command)
|
|
35
|
+
* [`lps init`](#lps-init)
|
|
33
36
|
* [`lps login`](#lps-login)
|
|
34
37
|
* [`lps logout`](#lps-logout)
|
|
35
|
-
* [`lps
|
|
36
|
-
* [`lps
|
|
37
|
-
* [`lps
|
|
38
|
-
* [`lps plugins install PLUGIN`](#lps-plugins-install-plugin)
|
|
39
|
-
* [`lps plugins link PATH`](#lps-plugins-link-path)
|
|
40
|
-
* [`lps plugins remove [PLUGIN]`](#lps-plugins-remove-plugin)
|
|
41
|
-
* [`lps plugins reset`](#lps-plugins-reset)
|
|
42
|
-
* [`lps plugins uninstall [PLUGIN]`](#lps-plugins-uninstall-plugin)
|
|
43
|
-
* [`lps plugins unlink [PLUGIN]`](#lps-plugins-unlink-plugin)
|
|
44
|
-
* [`lps plugins update`](#lps-plugins-update)
|
|
38
|
+
* [`lps plugin pull`](#lps-plugin-pull)
|
|
39
|
+
* [`lps plugin push`](#lps-plugin-push)
|
|
40
|
+
* [`lps plugin require SLUG [VERSION]`](#lps-plugin-require-slug-version)
|
|
45
41
|
* [`lps project config`](#lps-project-config)
|
|
46
42
|
* [`lps project list`](#lps-project-list)
|
|
47
43
|
* [`lps project remove`](#lps-project-remove)
|
|
48
44
|
* [`lps project remove-env`](#lps-project-remove-env)
|
|
49
45
|
* [`lps project switch`](#lps-project-switch)
|
|
50
46
|
* [`lps project switch-env`](#lps-project-switch-env)
|
|
51
|
-
* [`lps
|
|
52
|
-
* [`lps
|
|
53
|
-
* [`lps
|
|
54
|
-
* [`lps styles pull`](#lps-styles-pull)
|
|
55
|
-
* [`lps styles push`](#lps-styles-push)
|
|
47
|
+
* [`lps snippet list`](#lps-snippet-list)
|
|
48
|
+
* [`lps snippet pull [PATH]`](#lps-snippet-pull-path)
|
|
49
|
+
* [`lps snippet push [PATH]`](#lps-snippet-push-path)
|
|
56
50
|
|
|
57
51
|
## `lps help [COMMAND]`
|
|
58
52
|
|
|
@@ -72,331 +66,145 @@ DESCRIPTION
|
|
|
72
66
|
Display help for lps.
|
|
73
67
|
```
|
|
74
68
|
|
|
75
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.
|
|
69
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.52/src/commands/help.ts)_
|
|
76
70
|
|
|
77
|
-
## `lps
|
|
71
|
+
## `lps init`
|
|
78
72
|
|
|
79
|
-
|
|
73
|
+
Initialize a loopress.json config file in the current directory
|
|
80
74
|
|
|
81
75
|
```
|
|
82
76
|
USAGE
|
|
83
|
-
$ lps
|
|
77
|
+
$ lps init
|
|
84
78
|
|
|
85
79
|
DESCRIPTION
|
|
86
|
-
|
|
80
|
+
Initialize a loopress.json config file in the current directory
|
|
87
81
|
|
|
88
82
|
EXAMPLES
|
|
89
|
-
$ lps
|
|
83
|
+
$ lps init
|
|
90
84
|
```
|
|
91
85
|
|
|
92
|
-
_See code: [src/commands/
|
|
86
|
+
_See code: [src/commands/init.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/init.ts)_
|
|
93
87
|
|
|
94
|
-
## `lps
|
|
88
|
+
## `lps login`
|
|
95
89
|
|
|
96
|
-
Log
|
|
90
|
+
Log in to Loopress via the console
|
|
97
91
|
|
|
98
92
|
```
|
|
99
93
|
USAGE
|
|
100
|
-
$ lps
|
|
94
|
+
$ lps login
|
|
101
95
|
|
|
102
96
|
DESCRIPTION
|
|
103
|
-
Log
|
|
97
|
+
Log in to Loopress via the console
|
|
104
98
|
|
|
105
99
|
EXAMPLES
|
|
106
|
-
$ lps
|
|
100
|
+
$ lps login
|
|
107
101
|
```
|
|
108
102
|
|
|
109
|
-
_See code: [src/commands/
|
|
103
|
+
_See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/login.ts)_
|
|
110
104
|
|
|
111
|
-
## `lps
|
|
105
|
+
## `lps logout`
|
|
112
106
|
|
|
113
|
-
|
|
107
|
+
Log out from Loopress console
|
|
114
108
|
|
|
115
109
|
```
|
|
116
110
|
USAGE
|
|
117
|
-
$ lps
|
|
118
|
-
|
|
119
|
-
FLAGS
|
|
120
|
-
--core Show core plugins.
|
|
121
|
-
|
|
122
|
-
GLOBAL FLAGS
|
|
123
|
-
--json Format output as json.
|
|
111
|
+
$ lps logout
|
|
124
112
|
|
|
125
113
|
DESCRIPTION
|
|
126
|
-
|
|
114
|
+
Log out from Loopress console
|
|
127
115
|
|
|
128
116
|
EXAMPLES
|
|
129
|
-
$ lps
|
|
117
|
+
$ lps logout
|
|
130
118
|
```
|
|
131
119
|
|
|
132
|
-
_See code: [
|
|
120
|
+
_See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/logout.ts)_
|
|
133
121
|
|
|
134
|
-
## `lps
|
|
122
|
+
## `lps plugin pull`
|
|
135
123
|
|
|
136
|
-
|
|
124
|
+
Pull installed plugins from WordPress into loopress.json
|
|
137
125
|
|
|
138
126
|
```
|
|
139
127
|
USAGE
|
|
140
|
-
$ lps
|
|
141
|
-
|
|
142
|
-
ARGUMENTS
|
|
143
|
-
PLUGIN... Plugin to install.
|
|
128
|
+
$ lps plugin pull [--password <value>] [--url <value>] [--user <value>] [-d]
|
|
144
129
|
|
|
145
130
|
FLAGS
|
|
146
|
-
-
|
|
147
|
-
-h, --help Show CLI help.
|
|
148
|
-
-s, --silent Silences npm output.
|
|
149
|
-
-v, --verbose Show verbose npm output.
|
|
131
|
+
-d, --dry-run Show what would be written without making changes
|
|
150
132
|
|
|
151
133
|
GLOBAL FLAGS
|
|
152
|
-
--
|
|
134
|
+
--password=<value> WordPress application password (fallback; prefer `lps project config`)
|
|
135
|
+
--url=<value> WordPress URL (fallback; prefer `lps project config`)
|
|
136
|
+
--user=<value> WordPress username (fallback; prefer `lps project config`)
|
|
153
137
|
|
|
154
138
|
DESCRIPTION
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Uses npm to install plugins.
|
|
158
|
-
|
|
159
|
-
Installation of a user-installed plugin will override a core plugin.
|
|
160
|
-
|
|
161
|
-
Use the LPS_NPM_LOG_LEVEL environment variable to set the npm loglevel.
|
|
162
|
-
Use the LPS_NPM_REGISTRY environment variable to set the npm registry.
|
|
163
|
-
|
|
164
|
-
ALIASES
|
|
165
|
-
$ lps plugins add
|
|
139
|
+
Pull installed plugins from WordPress into loopress.json
|
|
166
140
|
|
|
167
141
|
EXAMPLES
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
$ lps plugins add myplugin
|
|
171
|
-
|
|
172
|
-
Install a plugin from a github url.
|
|
173
|
-
|
|
174
|
-
$ lps plugins add https://github.com/someuser/someplugin
|
|
175
|
-
|
|
176
|
-
Install a plugin from a github slug.
|
|
177
|
-
|
|
178
|
-
$ lps plugins add someuser/someplugin
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
## `lps plugins:inspect PLUGIN...`
|
|
182
|
-
|
|
183
|
-
Displays installation properties of a plugin.
|
|
142
|
+
$ lps plugins pull
|
|
184
143
|
|
|
144
|
+
$ lps plugins pull --dry-run
|
|
185
145
|
```
|
|
186
|
-
USAGE
|
|
187
|
-
$ lps plugins inspect PLUGIN...
|
|
188
146
|
|
|
189
|
-
|
|
190
|
-
PLUGIN... [default: .] Plugin to inspect.
|
|
191
|
-
|
|
192
|
-
FLAGS
|
|
193
|
-
-h, --help Show CLI help.
|
|
194
|
-
-v, --verbose
|
|
147
|
+
_See code: [src/commands/plugin/pull.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/plugin/pull.ts)_
|
|
195
148
|
|
|
196
|
-
|
|
197
|
-
--json Format output as json.
|
|
149
|
+
## `lps plugin push`
|
|
198
150
|
|
|
199
|
-
|
|
200
|
-
Displays installation properties of a plugin.
|
|
201
|
-
|
|
202
|
-
EXAMPLES
|
|
203
|
-
$ lps plugins inspect myplugin
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/inspect.ts)_
|
|
207
|
-
|
|
208
|
-
## `lps plugins install PLUGIN`
|
|
209
|
-
|
|
210
|
-
Installs a plugin into lps.
|
|
151
|
+
Sync plugins on WordPress to match loopress.json
|
|
211
152
|
|
|
212
153
|
```
|
|
213
154
|
USAGE
|
|
214
|
-
$ lps
|
|
215
|
-
|
|
216
|
-
ARGUMENTS
|
|
217
|
-
PLUGIN... Plugin to install.
|
|
155
|
+
$ lps plugin push [--password <value>] [--url <value>] [--user <value>] [-d]
|
|
218
156
|
|
|
219
157
|
FLAGS
|
|
220
|
-
-
|
|
221
|
-
-h, --help Show CLI help.
|
|
222
|
-
-s, --silent Silences npm output.
|
|
223
|
-
-v, --verbose Show verbose npm output.
|
|
158
|
+
-d, --dry-run Show what would change without making changes
|
|
224
159
|
|
|
225
160
|
GLOBAL FLAGS
|
|
226
|
-
--
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
Installs a plugin into lps.
|
|
230
|
-
|
|
231
|
-
Uses npm to install plugins.
|
|
232
|
-
|
|
233
|
-
Installation of a user-installed plugin will override a core plugin.
|
|
234
|
-
|
|
235
|
-
Use the LPS_NPM_LOG_LEVEL environment variable to set the npm loglevel.
|
|
236
|
-
Use the LPS_NPM_REGISTRY environment variable to set the npm registry.
|
|
237
|
-
|
|
238
|
-
ALIASES
|
|
239
|
-
$ lps plugins add
|
|
240
|
-
|
|
241
|
-
EXAMPLES
|
|
242
|
-
Install a plugin from npm registry.
|
|
243
|
-
|
|
244
|
-
$ lps plugins install myplugin
|
|
245
|
-
|
|
246
|
-
Install a plugin from a github url.
|
|
247
|
-
|
|
248
|
-
$ lps plugins install https://github.com/someuser/someplugin
|
|
249
|
-
|
|
250
|
-
Install a plugin from a github slug.
|
|
251
|
-
|
|
252
|
-
$ lps plugins install someuser/someplugin
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/install.ts)_
|
|
256
|
-
|
|
257
|
-
## `lps plugins link PATH`
|
|
258
|
-
|
|
259
|
-
Links a plugin into the CLI for development.
|
|
260
|
-
|
|
261
|
-
```
|
|
262
|
-
USAGE
|
|
263
|
-
$ lps plugins link PATH [-h] [--install] [-v]
|
|
264
|
-
|
|
265
|
-
ARGUMENTS
|
|
266
|
-
PATH [default: .] path to plugin
|
|
267
|
-
|
|
268
|
-
FLAGS
|
|
269
|
-
-h, --help Show CLI help.
|
|
270
|
-
-v, --verbose
|
|
271
|
-
--[no-]install Install dependencies after linking the plugin.
|
|
272
|
-
|
|
273
|
-
DESCRIPTION
|
|
274
|
-
Links a plugin into the CLI for development.
|
|
275
|
-
|
|
276
|
-
Installation of a linked plugin will override a user-installed or core plugin.
|
|
277
|
-
|
|
278
|
-
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
|
|
279
|
-
command will override the user-installed or core plugin implementation. This is useful for development work.
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
EXAMPLES
|
|
283
|
-
$ lps plugins link myplugin
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/link.ts)_
|
|
287
|
-
|
|
288
|
-
## `lps plugins remove [PLUGIN]`
|
|
289
|
-
|
|
290
|
-
Removes a plugin from the CLI.
|
|
291
|
-
|
|
292
|
-
```
|
|
293
|
-
USAGE
|
|
294
|
-
$ lps plugins remove [PLUGIN...] [-h] [-v]
|
|
295
|
-
|
|
296
|
-
ARGUMENTS
|
|
297
|
-
[PLUGIN...] plugin to uninstall
|
|
298
|
-
|
|
299
|
-
FLAGS
|
|
300
|
-
-h, --help Show CLI help.
|
|
301
|
-
-v, --verbose
|
|
161
|
+
--password=<value> WordPress application password (fallback; prefer `lps project config`)
|
|
162
|
+
--url=<value> WordPress URL (fallback; prefer `lps project config`)
|
|
163
|
+
--user=<value> WordPress username (fallback; prefer `lps project config`)
|
|
302
164
|
|
|
303
165
|
DESCRIPTION
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
ALIASES
|
|
307
|
-
$ lps plugins unlink
|
|
308
|
-
$ lps plugins remove
|
|
166
|
+
Sync plugins on WordPress to match loopress.json
|
|
309
167
|
|
|
310
168
|
EXAMPLES
|
|
311
|
-
$ lps plugins
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
## `lps plugins reset`
|
|
315
|
-
|
|
316
|
-
Remove all user-installed and linked plugins.
|
|
169
|
+
$ lps plugins push
|
|
317
170
|
|
|
171
|
+
$ lps plugins push --dry-run
|
|
318
172
|
```
|
|
319
|
-
USAGE
|
|
320
|
-
$ lps plugins reset [--hard] [--reinstall]
|
|
321
173
|
|
|
322
|
-
|
|
323
|
-
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
|
|
324
|
-
--reinstall Reinstall all plugins after uninstalling.
|
|
325
|
-
```
|
|
174
|
+
_See code: [src/commands/plugin/push.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/plugin/push.ts)_
|
|
326
175
|
|
|
327
|
-
|
|
176
|
+
## `lps plugin require SLUG [VERSION]`
|
|
328
177
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
Removes a plugin from the CLI.
|
|
178
|
+
Add a plugin to loopress.json, resolving its latest version from WordPress.org
|
|
332
179
|
|
|
333
180
|
```
|
|
334
181
|
USAGE
|
|
335
|
-
$ lps
|
|
182
|
+
$ lps plugin require SLUG [VERSION] [--password <value>] [--url <value>] [--user <value>] [-d]
|
|
336
183
|
|
|
337
184
|
ARGUMENTS
|
|
338
|
-
|
|
185
|
+
SLUG Plugin slug (WordPress.org)
|
|
186
|
+
[VERSION] Version to pin (default: latest)
|
|
339
187
|
|
|
340
188
|
FLAGS
|
|
341
|
-
-
|
|
342
|
-
-v, --verbose
|
|
343
|
-
|
|
344
|
-
DESCRIPTION
|
|
345
|
-
Removes a plugin from the CLI.
|
|
346
|
-
|
|
347
|
-
ALIASES
|
|
348
|
-
$ lps plugins unlink
|
|
349
|
-
$ lps plugins remove
|
|
350
|
-
|
|
351
|
-
EXAMPLES
|
|
352
|
-
$ lps plugins uninstall myplugin
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/uninstall.ts)_
|
|
356
|
-
|
|
357
|
-
## `lps plugins unlink [PLUGIN]`
|
|
358
|
-
|
|
359
|
-
Removes a plugin from the CLI.
|
|
360
|
-
|
|
361
|
-
```
|
|
362
|
-
USAGE
|
|
363
|
-
$ lps plugins unlink [PLUGIN...] [-h] [-v]
|
|
364
|
-
|
|
365
|
-
ARGUMENTS
|
|
366
|
-
[PLUGIN...] plugin to uninstall
|
|
189
|
+
-d, --dry-run Show what would be written without making changes
|
|
367
190
|
|
|
368
|
-
FLAGS
|
|
369
|
-
|
|
370
|
-
|
|
191
|
+
GLOBAL FLAGS
|
|
192
|
+
--password=<value> WordPress application password (fallback; prefer `lps project config`)
|
|
193
|
+
--url=<value> WordPress URL (fallback; prefer `lps project config`)
|
|
194
|
+
--user=<value> WordPress username (fallback; prefer `lps project config`)
|
|
371
195
|
|
|
372
196
|
DESCRIPTION
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
ALIASES
|
|
376
|
-
$ lps plugins unlink
|
|
377
|
-
$ lps plugins remove
|
|
197
|
+
Add a plugin to loopress.json, resolving its latest version from WordPress.org
|
|
378
198
|
|
|
379
199
|
EXAMPLES
|
|
380
|
-
$ lps plugins
|
|
381
|
-
```
|
|
200
|
+
$ lps plugins require woocommerce
|
|
382
201
|
|
|
383
|
-
|
|
202
|
+
$ lps plugins require woocommerce 8.9.1
|
|
384
203
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
```
|
|
388
|
-
USAGE
|
|
389
|
-
$ lps plugins update [-h] [-v]
|
|
390
|
-
|
|
391
|
-
FLAGS
|
|
392
|
-
-h, --help Show CLI help.
|
|
393
|
-
-v, --verbose
|
|
394
|
-
|
|
395
|
-
DESCRIPTION
|
|
396
|
-
Update installed plugins.
|
|
204
|
+
$ lps plugins require contact-form-7 --dry-run
|
|
397
205
|
```
|
|
398
206
|
|
|
399
|
-
_See code: [
|
|
207
|
+
_See code: [src/commands/plugin/require.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/plugin/require.ts)_
|
|
400
208
|
|
|
401
209
|
## `lps project config`
|
|
402
210
|
|
|
@@ -413,7 +221,7 @@ EXAMPLES
|
|
|
413
221
|
$ lps project config
|
|
414
222
|
```
|
|
415
223
|
|
|
416
|
-
_See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.
|
|
224
|
+
_See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/project/config.ts)_
|
|
417
225
|
|
|
418
226
|
## `lps project list`
|
|
419
227
|
|
|
@@ -430,7 +238,7 @@ EXAMPLES
|
|
|
430
238
|
$ lps project list
|
|
431
239
|
```
|
|
432
240
|
|
|
433
|
-
_See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.
|
|
241
|
+
_See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/project/list.ts)_
|
|
434
242
|
|
|
435
243
|
## `lps project remove`
|
|
436
244
|
|
|
@@ -447,7 +255,7 @@ EXAMPLES
|
|
|
447
255
|
$ lps project remove
|
|
448
256
|
```
|
|
449
257
|
|
|
450
|
-
_See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.
|
|
258
|
+
_See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/project/remove.ts)_
|
|
451
259
|
|
|
452
260
|
## `lps project remove-env`
|
|
453
261
|
|
|
@@ -464,7 +272,7 @@ EXAMPLES
|
|
|
464
272
|
$ lps project remove-env
|
|
465
273
|
```
|
|
466
274
|
|
|
467
|
-
_See code: [src/commands/project/remove-env.ts](https://github.com/loopress/loopress/blob/v0.
|
|
275
|
+
_See code: [src/commands/project/remove-env.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/project/remove-env.ts)_
|
|
468
276
|
|
|
469
277
|
## `lps project switch`
|
|
470
278
|
|
|
@@ -481,7 +289,7 @@ EXAMPLES
|
|
|
481
289
|
$ lps project switch
|
|
482
290
|
```
|
|
483
291
|
|
|
484
|
-
_See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.
|
|
292
|
+
_See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/project/switch.ts)_
|
|
485
293
|
|
|
486
294
|
## `lps project switch-env`
|
|
487
295
|
|
|
@@ -498,19 +306,19 @@ EXAMPLES
|
|
|
498
306
|
$ lps project switch-env
|
|
499
307
|
```
|
|
500
308
|
|
|
501
|
-
_See code: [src/commands/project/switch-env.ts](https://github.com/loopress/loopress/blob/v0.
|
|
309
|
+
_See code: [src/commands/project/switch-env.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/project/switch-env.ts)_
|
|
502
310
|
|
|
503
|
-
## `lps
|
|
311
|
+
## `lps snippet list`
|
|
504
312
|
|
|
505
313
|
List snippets from WordPress
|
|
506
314
|
|
|
507
315
|
```
|
|
508
316
|
USAGE
|
|
509
|
-
$ lps
|
|
317
|
+
$ lps snippet list [--password <value>] [--url <value>] [--user <value>] [-j] [-p code-snippets|wpcode]
|
|
510
318
|
|
|
511
319
|
FLAGS
|
|
512
320
|
-j, --json Output in JSON format
|
|
513
|
-
-p, --plugin=<option>
|
|
321
|
+
-p, --plugin=<option> WordPress snippet plugin to target (overrides loopress.json)
|
|
514
322
|
<options: code-snippets|wpcode>
|
|
515
323
|
|
|
516
324
|
GLOBAL FLAGS
|
|
@@ -529,22 +337,22 @@ EXAMPLES
|
|
|
529
337
|
$ lps snippets list --plugin wpcode
|
|
530
338
|
```
|
|
531
339
|
|
|
532
|
-
_See code: [src/commands/
|
|
340
|
+
_See code: [src/commands/snippet/list.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/snippet/list.ts)_
|
|
533
341
|
|
|
534
|
-
## `lps
|
|
342
|
+
## `lps snippet pull [PATH]`
|
|
535
343
|
|
|
536
344
|
Pull snippets from WordPress
|
|
537
345
|
|
|
538
346
|
```
|
|
539
347
|
USAGE
|
|
540
|
-
$ lps
|
|
348
|
+
$ lps snippet pull [PATH] [--password <value>] [--url <value>] [--user <value>] [-d] [-p code-snippets|wpcode]
|
|
541
349
|
|
|
542
350
|
ARGUMENTS
|
|
543
351
|
[PATH] Path to snippets directory (overrides project config)
|
|
544
352
|
|
|
545
353
|
FLAGS
|
|
546
354
|
-d, --dryRun Dry run - show what would happen without making changes
|
|
547
|
-
-p, --plugin=<option>
|
|
355
|
+
-p, --plugin=<option> WordPress snippet plugin to target (overrides loopress.json)
|
|
548
356
|
<options: code-snippets|wpcode>
|
|
549
357
|
|
|
550
358
|
GLOBAL FLAGS
|
|
@@ -565,22 +373,22 @@ EXAMPLES
|
|
|
565
373
|
$ lps snippets pull --plugin wpcode
|
|
566
374
|
```
|
|
567
375
|
|
|
568
|
-
_See code: [src/commands/
|
|
376
|
+
_See code: [src/commands/snippet/pull.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/snippet/pull.ts)_
|
|
569
377
|
|
|
570
|
-
## `lps
|
|
378
|
+
## `lps snippet push [PATH]`
|
|
571
379
|
|
|
572
380
|
Push snippets to WordPress
|
|
573
381
|
|
|
574
382
|
```
|
|
575
383
|
USAGE
|
|
576
|
-
$ lps
|
|
384
|
+
$ lps snippet push [PATH] [--password <value>] [--url <value>] [--user <value>] [-d] [-p code-snippets|wpcode]
|
|
577
385
|
|
|
578
386
|
ARGUMENTS
|
|
579
387
|
[PATH] Path to snippets directory (overrides project config)
|
|
580
388
|
|
|
581
389
|
FLAGS
|
|
582
390
|
-d, --dryRun Dry run - show what would happen without making changes
|
|
583
|
-
-p, --plugin=<option>
|
|
391
|
+
-p, --plugin=<option> WordPress snippet plugin to target (overrides loopress.json)
|
|
584
392
|
<options: code-snippets|wpcode>
|
|
585
393
|
|
|
586
394
|
GLOBAL FLAGS
|
|
@@ -601,59 +409,5 @@ EXAMPLES
|
|
|
601
409
|
$ lps snippets push --plugin wpcode
|
|
602
410
|
```
|
|
603
411
|
|
|
604
|
-
_See code: [src/commands/
|
|
605
|
-
|
|
606
|
-
## `lps styles pull`
|
|
607
|
-
|
|
608
|
-
Pull Global Styles from WordPress
|
|
609
|
-
|
|
610
|
-
```
|
|
611
|
-
USAGE
|
|
612
|
-
$ lps styles pull [--password <value>] [--url <value>] [--user <value>] [-d]
|
|
613
|
-
|
|
614
|
-
FLAGS
|
|
615
|
-
-d, --dryRun Dry run - show what would happen without making changes
|
|
616
|
-
|
|
617
|
-
GLOBAL FLAGS
|
|
618
|
-
--password=<value> WordPress application password (fallback; prefer `lps project config`)
|
|
619
|
-
--url=<value> WordPress URL (fallback; prefer `lps project config`)
|
|
620
|
-
--user=<value> WordPress username (fallback; prefer `lps project config`)
|
|
621
|
-
|
|
622
|
-
DESCRIPTION
|
|
623
|
-
Pull Global Styles from WordPress
|
|
624
|
-
|
|
625
|
-
EXAMPLES
|
|
626
|
-
$ lps styles pull
|
|
627
|
-
|
|
628
|
-
$ lps styles pull --url http://example.com
|
|
629
|
-
```
|
|
630
|
-
|
|
631
|
-
_See code: [src/commands/styles/pull.ts](https://github.com/loopress/loopress/blob/v0.3.0/src/commands/styles/pull.ts)_
|
|
632
|
-
|
|
633
|
-
## `lps styles push`
|
|
634
|
-
|
|
635
|
-
Push Global Styles to WordPress
|
|
636
|
-
|
|
637
|
-
```
|
|
638
|
-
USAGE
|
|
639
|
-
$ lps styles push [--password <value>] [--url <value>] [--user <value>] [-d]
|
|
640
|
-
|
|
641
|
-
FLAGS
|
|
642
|
-
-d, --dryRun Dry run - show what would happen without making changes
|
|
643
|
-
|
|
644
|
-
GLOBAL FLAGS
|
|
645
|
-
--password=<value> WordPress application password (fallback; prefer `lps project config`)
|
|
646
|
-
--url=<value> WordPress URL (fallback; prefer `lps project config`)
|
|
647
|
-
--user=<value> WordPress username (fallback; prefer `lps project config`)
|
|
648
|
-
|
|
649
|
-
DESCRIPTION
|
|
650
|
-
Push Global Styles to WordPress
|
|
651
|
-
|
|
652
|
-
EXAMPLES
|
|
653
|
-
$ lps styles push
|
|
654
|
-
|
|
655
|
-
$ lps styles push --url http://example.com
|
|
656
|
-
```
|
|
657
|
-
|
|
658
|
-
_See code: [src/commands/styles/push.ts](https://github.com/loopress/loopress/blob/v0.3.0/src/commands/styles/push.ts)_
|
|
412
|
+
_See code: [src/commands/snippet/push.ts](https://github.com/loopress/loopress/blob/v0.5.0/src/commands/snippet/push.ts)_
|
|
659
413
|
<!-- commandsstop -->
|