@loopress/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/LICENSE +373 -0
  2. package/README.md +676 -0
  3. package/bin/dev.cmd +3 -0
  4. package/bin/dev.js +5 -0
  5. package/bin/run.cmd +3 -0
  6. package/bin/run.js +5 -0
  7. package/dist/commands/base.d.ts +14 -0
  8. package/dist/commands/base.js +49 -0
  9. package/dist/commands/login.d.ts +8 -0
  10. package/dist/commands/login.js +106 -0
  11. package/dist/commands/logout.d.ts +6 -0
  12. package/dist/commands/logout.js +15 -0
  13. package/dist/commands/project/config.d.ts +6 -0
  14. package/dist/commands/project/config.js +92 -0
  15. package/dist/commands/project/list.d.ts +6 -0
  16. package/dist/commands/project/list.js +31 -0
  17. package/dist/commands/project/remove-env.d.ts +6 -0
  18. package/dist/commands/project/remove-env.js +33 -0
  19. package/dist/commands/project/remove.d.ts +6 -0
  20. package/dist/commands/project/remove.js +34 -0
  21. package/dist/commands/project/switch-env.d.ts +6 -0
  22. package/dist/commands/project/switch-env.js +33 -0
  23. package/dist/commands/project/switch.d.ts +6 -0
  24. package/dist/commands/project/switch.js +34 -0
  25. package/dist/commands/snippets/list.d.ts +13 -0
  26. package/dist/commands/snippets/list.js +59 -0
  27. package/dist/commands/snippets/pull.d.ts +16 -0
  28. package/dist/commands/snippets/pull.js +58 -0
  29. package/dist/commands/snippets/push.d.ts +18 -0
  30. package/dist/commands/snippets/push.js +97 -0
  31. package/dist/commands/styles/pull.d.ts +12 -0
  32. package/dist/commands/styles/pull.js +52 -0
  33. package/dist/commands/styles/push.d.ts +13 -0
  34. package/dist/commands/styles/push.js +78 -0
  35. package/dist/config/auth.manager.d.ts +16 -0
  36. package/dist/config/auth.manager.js +45 -0
  37. package/dist/config/project-config.manager.d.ts +28 -0
  38. package/dist/config/project-config.manager.js +130 -0
  39. package/dist/config/types.d.ts +16 -0
  40. package/dist/config/types.js +1 -0
  41. package/dist/index.d.ts +1 -0
  42. package/dist/index.js +1 -0
  43. package/dist/types/menu.d.ts +7 -0
  44. package/dist/types/menu.js +1 -0
  45. package/dist/types/snippet.d.ts +6 -0
  46. package/dist/types/snippet.js +1 -0
  47. package/dist/utils/loopress-config.d.ts +6 -0
  48. package/dist/utils/loopress-config.js +14 -0
  49. package/dist/utils/snippet-plugin.d.ts +15 -0
  50. package/dist/utils/snippet-plugin.js +58 -0
  51. package/oclif.manifest.json +578 -0
  52. package/package.json +85 -0
package/README.md ADDED
@@ -0,0 +1,676 @@
1
+ Loopress
2
+ =================
3
+
4
+ A new CLI generated with oclif
5
+
6
+
7
+ [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
8
+ [![Version](https://img.shields.io/npm/v/mynewcli.svg)](https://npmjs.org/package/mynewcli)
9
+ [![Downloads/week](https://img.shields.io/npm/dw/mynewcli.svg)](https://npmjs.org/package/mynewcli)
10
+
11
+
12
+ <!-- toc -->
13
+ * [Usage](#usage)
14
+ * [Commands](#commands)
15
+ <!-- tocstop -->
16
+ # Usage
17
+ <!-- usage -->
18
+ ```sh-session
19
+ $ npm install -g @loopress/cli
20
+ $ @loopress/cli COMMAND
21
+ running command...
22
+ $ @loopress/cli (--version)
23
+ @loopress/cli/0.1.0 linux-x64 node-v24.16.0
24
+ $ @loopress/cli --help [COMMAND]
25
+ USAGE
26
+ $ @loopress/cli COMMAND
27
+ ...
28
+ ```
29
+ <!-- usagestop -->
30
+ # Commands
31
+ <!-- commands -->
32
+ * [`@loopress/cli base`](#loopresscli-base)
33
+ * [`@loopress/cli help [COMMAND]`](#loopresscli-help-command)
34
+ * [`@loopress/cli login`](#loopresscli-login)
35
+ * [`@loopress/cli logout`](#loopresscli-logout)
36
+ * [`@loopress/cli plugins`](#loopresscli-plugins)
37
+ * [`@loopress/cli plugins add PLUGIN`](#loopresscli-plugins-add-plugin)
38
+ * [`@loopress/cli plugins:inspect PLUGIN...`](#loopresscli-pluginsinspect-plugin)
39
+ * [`@loopress/cli plugins install PLUGIN`](#loopresscli-plugins-install-plugin)
40
+ * [`@loopress/cli plugins link PATH`](#loopresscli-plugins-link-path)
41
+ * [`@loopress/cli plugins remove [PLUGIN]`](#loopresscli-plugins-remove-plugin)
42
+ * [`@loopress/cli plugins reset`](#loopresscli-plugins-reset)
43
+ * [`@loopress/cli plugins uninstall [PLUGIN]`](#loopresscli-plugins-uninstall-plugin)
44
+ * [`@loopress/cli plugins unlink [PLUGIN]`](#loopresscli-plugins-unlink-plugin)
45
+ * [`@loopress/cli plugins update`](#loopresscli-plugins-update)
46
+ * [`@loopress/cli project config`](#loopresscli-project-config)
47
+ * [`@loopress/cli project list`](#loopresscli-project-list)
48
+ * [`@loopress/cli project remove`](#loopresscli-project-remove)
49
+ * [`@loopress/cli project remove-env`](#loopresscli-project-remove-env)
50
+ * [`@loopress/cli project switch`](#loopresscli-project-switch)
51
+ * [`@loopress/cli project switch-env`](#loopresscli-project-switch-env)
52
+ * [`@loopress/cli snippets list`](#loopresscli-snippets-list)
53
+ * [`@loopress/cli snippets pull [PATH]`](#loopresscli-snippets-pull-path)
54
+ * [`@loopress/cli snippets push [PATH]`](#loopresscli-snippets-push-path)
55
+ * [`@loopress/cli styles pull`](#loopresscli-styles-pull)
56
+ * [`@loopress/cli styles push`](#loopresscli-styles-push)
57
+
58
+ ## `@loopress/cli base`
59
+
60
+ ```
61
+ USAGE
62
+ $ @loopress/cli base [--password <value>] [--url <value>] [--user <value>]
63
+
64
+ GLOBAL FLAGS
65
+ --password=<value> WordPress application password (fallback; prefer `lps project config`)
66
+ --url=<value> WordPress URL (fallback; prefer `lps project config`)
67
+ --user=<value> WordPress username (fallback; prefer `lps project config`)
68
+ ```
69
+
70
+ _See code: [src/commands/base.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/base.ts)_
71
+
72
+ ## `@loopress/cli help [COMMAND]`
73
+
74
+ Display help for @loopress/cli.
75
+
76
+ ```
77
+ USAGE
78
+ $ @loopress/cli help [COMMAND...] [-n]
79
+
80
+ ARGUMENTS
81
+ [COMMAND...] Command to show help for.
82
+
83
+ FLAGS
84
+ -n, --nested-commands Include all nested commands in the output.
85
+
86
+ DESCRIPTION
87
+ Display help for @loopress/cli.
88
+ ```
89
+
90
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.50/src/commands/help.ts)_
91
+
92
+ ## `@loopress/cli login`
93
+
94
+ Log in to Loopress via the console
95
+
96
+ ```
97
+ USAGE
98
+ $ @loopress/cli login
99
+
100
+ DESCRIPTION
101
+ Log in to Loopress via the console
102
+
103
+ EXAMPLES
104
+ $ lps login
105
+ ```
106
+
107
+ _See code: [src/commands/login.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/login.ts)_
108
+
109
+ ## `@loopress/cli logout`
110
+
111
+ Log out from Loopress console
112
+
113
+ ```
114
+ USAGE
115
+ $ @loopress/cli logout
116
+
117
+ DESCRIPTION
118
+ Log out from Loopress console
119
+
120
+ EXAMPLES
121
+ $ lps logout
122
+ ```
123
+
124
+ _See code: [src/commands/logout.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/logout.ts)_
125
+
126
+ ## `@loopress/cli plugins`
127
+
128
+ List installed plugins.
129
+
130
+ ```
131
+ USAGE
132
+ $ @loopress/cli plugins [--json] [--core]
133
+
134
+ FLAGS
135
+ --core Show core plugins.
136
+
137
+ GLOBAL FLAGS
138
+ --json Format output as json.
139
+
140
+ DESCRIPTION
141
+ List installed plugins.
142
+
143
+ EXAMPLES
144
+ $ @loopress/cli plugins
145
+ ```
146
+
147
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/index.ts)_
148
+
149
+ ## `@loopress/cli plugins add PLUGIN`
150
+
151
+ Installs a plugin into @loopress/cli.
152
+
153
+ ```
154
+ USAGE
155
+ $ @loopress/cli plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
156
+
157
+ ARGUMENTS
158
+ PLUGIN... Plugin to install.
159
+
160
+ FLAGS
161
+ -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
162
+ -h, --help Show CLI help.
163
+ -s, --silent Silences npm output.
164
+ -v, --verbose Show verbose npm output.
165
+
166
+ GLOBAL FLAGS
167
+ --json Format output as json.
168
+
169
+ DESCRIPTION
170
+ Installs a plugin into @loopress/cli.
171
+
172
+ Uses npm to install plugins.
173
+
174
+ Installation of a user-installed plugin will override a core plugin.
175
+
176
+ Use the LOOPRESS_CLI_NPM_LOG_LEVEL environment variable to set the npm loglevel.
177
+ Use the LOOPRESS_CLI_NPM_REGISTRY environment variable to set the npm registry.
178
+
179
+ ALIASES
180
+ $ @loopress/cli plugins add
181
+
182
+ EXAMPLES
183
+ Install a plugin from npm registry.
184
+
185
+ $ @loopress/cli plugins add myplugin
186
+
187
+ Install a plugin from a github url.
188
+
189
+ $ @loopress/cli plugins add https://github.com/someuser/someplugin
190
+
191
+ Install a plugin from a github slug.
192
+
193
+ $ @loopress/cli plugins add someuser/someplugin
194
+ ```
195
+
196
+ ## `@loopress/cli plugins:inspect PLUGIN...`
197
+
198
+ Displays installation properties of a plugin.
199
+
200
+ ```
201
+ USAGE
202
+ $ @loopress/cli plugins inspect PLUGIN...
203
+
204
+ ARGUMENTS
205
+ PLUGIN... [default: .] Plugin to inspect.
206
+
207
+ FLAGS
208
+ -h, --help Show CLI help.
209
+ -v, --verbose
210
+
211
+ GLOBAL FLAGS
212
+ --json Format output as json.
213
+
214
+ DESCRIPTION
215
+ Displays installation properties of a plugin.
216
+
217
+ EXAMPLES
218
+ $ @loopress/cli plugins inspect myplugin
219
+ ```
220
+
221
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/inspect.ts)_
222
+
223
+ ## `@loopress/cli plugins install PLUGIN`
224
+
225
+ Installs a plugin into @loopress/cli.
226
+
227
+ ```
228
+ USAGE
229
+ $ @loopress/cli plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
230
+
231
+ ARGUMENTS
232
+ PLUGIN... Plugin to install.
233
+
234
+ FLAGS
235
+ -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
236
+ -h, --help Show CLI help.
237
+ -s, --silent Silences npm output.
238
+ -v, --verbose Show verbose npm output.
239
+
240
+ GLOBAL FLAGS
241
+ --json Format output as json.
242
+
243
+ DESCRIPTION
244
+ Installs a plugin into @loopress/cli.
245
+
246
+ Uses npm to install plugins.
247
+
248
+ Installation of a user-installed plugin will override a core plugin.
249
+
250
+ Use the LOOPRESS_CLI_NPM_LOG_LEVEL environment variable to set the npm loglevel.
251
+ Use the LOOPRESS_CLI_NPM_REGISTRY environment variable to set the npm registry.
252
+
253
+ ALIASES
254
+ $ @loopress/cli plugins add
255
+
256
+ EXAMPLES
257
+ Install a plugin from npm registry.
258
+
259
+ $ @loopress/cli plugins install myplugin
260
+
261
+ Install a plugin from a github url.
262
+
263
+ $ @loopress/cli plugins install https://github.com/someuser/someplugin
264
+
265
+ Install a plugin from a github slug.
266
+
267
+ $ @loopress/cli plugins install someuser/someplugin
268
+ ```
269
+
270
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/install.ts)_
271
+
272
+ ## `@loopress/cli plugins link PATH`
273
+
274
+ Links a plugin into the CLI for development.
275
+
276
+ ```
277
+ USAGE
278
+ $ @loopress/cli plugins link PATH [-h] [--install] [-v]
279
+
280
+ ARGUMENTS
281
+ PATH [default: .] path to plugin
282
+
283
+ FLAGS
284
+ -h, --help Show CLI help.
285
+ -v, --verbose
286
+ --[no-]install Install dependencies after linking the plugin.
287
+
288
+ DESCRIPTION
289
+ Links a plugin into the CLI for development.
290
+
291
+ Installation of a linked plugin will override a user-installed or core plugin.
292
+
293
+ e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
294
+ command will override the user-installed or core plugin implementation. This is useful for development work.
295
+
296
+
297
+ EXAMPLES
298
+ $ @loopress/cli plugins link myplugin
299
+ ```
300
+
301
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/link.ts)_
302
+
303
+ ## `@loopress/cli plugins remove [PLUGIN]`
304
+
305
+ Removes a plugin from the CLI.
306
+
307
+ ```
308
+ USAGE
309
+ $ @loopress/cli plugins remove [PLUGIN...] [-h] [-v]
310
+
311
+ ARGUMENTS
312
+ [PLUGIN...] plugin to uninstall
313
+
314
+ FLAGS
315
+ -h, --help Show CLI help.
316
+ -v, --verbose
317
+
318
+ DESCRIPTION
319
+ Removes a plugin from the CLI.
320
+
321
+ ALIASES
322
+ $ @loopress/cli plugins unlink
323
+ $ @loopress/cli plugins remove
324
+
325
+ EXAMPLES
326
+ $ @loopress/cli plugins remove myplugin
327
+ ```
328
+
329
+ ## `@loopress/cli plugins reset`
330
+
331
+ Remove all user-installed and linked plugins.
332
+
333
+ ```
334
+ USAGE
335
+ $ @loopress/cli plugins reset [--hard] [--reinstall]
336
+
337
+ FLAGS
338
+ --hard Delete node_modules and package manager related files in addition to uninstalling plugins.
339
+ --reinstall Reinstall all plugins after uninstalling.
340
+ ```
341
+
342
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/reset.ts)_
343
+
344
+ ## `@loopress/cli plugins uninstall [PLUGIN]`
345
+
346
+ Removes a plugin from the CLI.
347
+
348
+ ```
349
+ USAGE
350
+ $ @loopress/cli plugins uninstall [PLUGIN...] [-h] [-v]
351
+
352
+ ARGUMENTS
353
+ [PLUGIN...] plugin to uninstall
354
+
355
+ FLAGS
356
+ -h, --help Show CLI help.
357
+ -v, --verbose
358
+
359
+ DESCRIPTION
360
+ Removes a plugin from the CLI.
361
+
362
+ ALIASES
363
+ $ @loopress/cli plugins unlink
364
+ $ @loopress/cli plugins remove
365
+
366
+ EXAMPLES
367
+ $ @loopress/cli plugins uninstall myplugin
368
+ ```
369
+
370
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/uninstall.ts)_
371
+
372
+ ## `@loopress/cli plugins unlink [PLUGIN]`
373
+
374
+ Removes a plugin from the CLI.
375
+
376
+ ```
377
+ USAGE
378
+ $ @loopress/cli plugins unlink [PLUGIN...] [-h] [-v]
379
+
380
+ ARGUMENTS
381
+ [PLUGIN...] plugin to uninstall
382
+
383
+ FLAGS
384
+ -h, --help Show CLI help.
385
+ -v, --verbose
386
+
387
+ DESCRIPTION
388
+ Removes a plugin from the CLI.
389
+
390
+ ALIASES
391
+ $ @loopress/cli plugins unlink
392
+ $ @loopress/cli plugins remove
393
+
394
+ EXAMPLES
395
+ $ @loopress/cli plugins unlink myplugin
396
+ ```
397
+
398
+ ## `@loopress/cli plugins update`
399
+
400
+ Update installed plugins.
401
+
402
+ ```
403
+ USAGE
404
+ $ @loopress/cli plugins update [-h] [-v]
405
+
406
+ FLAGS
407
+ -h, --help Show CLI help.
408
+ -v, --verbose
409
+
410
+ DESCRIPTION
411
+ Update installed plugins.
412
+ ```
413
+
414
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.74/src/commands/plugins/update.ts)_
415
+
416
+ ## `@loopress/cli project config`
417
+
418
+ Add or update a WordPress project environment
419
+
420
+ ```
421
+ USAGE
422
+ $ @loopress/cli project config
423
+
424
+ DESCRIPTION
425
+ Add or update a WordPress project environment
426
+
427
+ EXAMPLES
428
+ $ lps project config
429
+ ```
430
+
431
+ _See code: [src/commands/project/config.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/project/config.ts)_
432
+
433
+ ## `@loopress/cli project list`
434
+
435
+ List configured WordPress projects
436
+
437
+ ```
438
+ USAGE
439
+ $ @loopress/cli project list
440
+
441
+ DESCRIPTION
442
+ List configured WordPress projects
443
+
444
+ EXAMPLES
445
+ $ lps project list
446
+ ```
447
+
448
+ _See code: [src/commands/project/list.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/project/list.ts)_
449
+
450
+ ## `@loopress/cli project remove`
451
+
452
+ Remove one or more WordPress project configurations
453
+
454
+ ```
455
+ USAGE
456
+ $ @loopress/cli project remove
457
+
458
+ DESCRIPTION
459
+ Remove one or more WordPress project configurations
460
+
461
+ EXAMPLES
462
+ $ lps project remove
463
+ ```
464
+
465
+ _See code: [src/commands/project/remove.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/project/remove.ts)_
466
+
467
+ ## `@loopress/cli project remove-env`
468
+
469
+ Remove one or more environments from the current project
470
+
471
+ ```
472
+ USAGE
473
+ $ @loopress/cli project remove-env
474
+
475
+ DESCRIPTION
476
+ Remove one or more environments from the current project
477
+
478
+ EXAMPLES
479
+ $ lps project remove-env
480
+ ```
481
+
482
+ _See code: [src/commands/project/remove-env.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/project/remove-env.ts)_
483
+
484
+ ## `@loopress/cli project switch`
485
+
486
+ Switch the active project
487
+
488
+ ```
489
+ USAGE
490
+ $ @loopress/cli project switch
491
+
492
+ DESCRIPTION
493
+ Switch the active project
494
+
495
+ EXAMPLES
496
+ $ lps project switch
497
+ ```
498
+
499
+ _See code: [src/commands/project/switch.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/project/switch.ts)_
500
+
501
+ ## `@loopress/cli project switch-env`
502
+
503
+ Switch the active environment within the current project
504
+
505
+ ```
506
+ USAGE
507
+ $ @loopress/cli project switch-env
508
+
509
+ DESCRIPTION
510
+ Switch the active environment within the current project
511
+
512
+ EXAMPLES
513
+ $ lps project switch-env
514
+ ```
515
+
516
+ _See code: [src/commands/project/switch-env.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/project/switch-env.ts)_
517
+
518
+ ## `@loopress/cli snippets list`
519
+
520
+ List snippets from WordPress
521
+
522
+ ```
523
+ USAGE
524
+ $ @loopress/cli snippets list [--password <value>] [--url <value>] [--user <value>] [-j] [-p code-snippets|wpcode]
525
+
526
+ FLAGS
527
+ -j, --json Output in JSON format
528
+ -p, --plugin=<option> [default: code-snippets] WordPress snippet plugin to target
529
+ <options: code-snippets|wpcode>
530
+
531
+ GLOBAL FLAGS
532
+ --password=<value> WordPress application password (fallback; prefer `lps project config`)
533
+ --url=<value> WordPress URL (fallback; prefer `lps project config`)
534
+ --user=<value> WordPress username (fallback; prefer `lps project config`)
535
+
536
+ DESCRIPTION
537
+ List snippets from WordPress
538
+
539
+ EXAMPLES
540
+ $ lps snippets list
541
+
542
+ $ lps snippets list --url http://example.com
543
+
544
+ $ lps snippets list --plugin wpcode
545
+ ```
546
+
547
+ _See code: [src/commands/snippets/list.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/snippets/list.ts)_
548
+
549
+ ## `@loopress/cli snippets pull [PATH]`
550
+
551
+ Pull snippets from WordPress
552
+
553
+ ```
554
+ USAGE
555
+ $ @loopress/cli snippets pull [PATH] [--password <value>] [--url <value>] [--user <value>] [-d] [-p
556
+ code-snippets|wpcode]
557
+
558
+ ARGUMENTS
559
+ [PATH] Path to snippets directory (overrides project config)
560
+
561
+ FLAGS
562
+ -d, --dryRun Dry run - show what would happen without making changes
563
+ -p, --plugin=<option> [default: code-snippets] WordPress snippet plugin to target
564
+ <options: code-snippets|wpcode>
565
+
566
+ GLOBAL FLAGS
567
+ --password=<value> WordPress application password (fallback; prefer `lps project config`)
568
+ --url=<value> WordPress URL (fallback; prefer `lps project config`)
569
+ --user=<value> WordPress username (fallback; prefer `lps project config`)
570
+
571
+ DESCRIPTION
572
+ Pull snippets from WordPress
573
+
574
+ EXAMPLES
575
+ $ lps snippets pull
576
+
577
+ $ lps snippets pull --url http://example.com
578
+
579
+ $ lps snippets pull --path ./snippets
580
+
581
+ $ lps snippets pull --plugin wpcode
582
+ ```
583
+
584
+ _See code: [src/commands/snippets/pull.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/snippets/pull.ts)_
585
+
586
+ ## `@loopress/cli snippets push [PATH]`
587
+
588
+ Push snippets to WordPress
589
+
590
+ ```
591
+ USAGE
592
+ $ @loopress/cli snippets push [PATH] [--password <value>] [--url <value>] [--user <value>] [-d] [-p
593
+ code-snippets|wpcode]
594
+
595
+ ARGUMENTS
596
+ [PATH] Path to snippets directory (overrides project config)
597
+
598
+ FLAGS
599
+ -d, --dryRun Dry run - show what would happen without making changes
600
+ -p, --plugin=<option> [default: code-snippets] WordPress snippet plugin to target
601
+ <options: code-snippets|wpcode>
602
+
603
+ GLOBAL FLAGS
604
+ --password=<value> WordPress application password (fallback; prefer `lps project config`)
605
+ --url=<value> WordPress URL (fallback; prefer `lps project config`)
606
+ --user=<value> WordPress username (fallback; prefer `lps project config`)
607
+
608
+ DESCRIPTION
609
+ Push snippets to WordPress
610
+
611
+ EXAMPLES
612
+ $ lps snippets push
613
+
614
+ $ lps snippets push --url http://example.com
615
+
616
+ $ lps snippets push --path ./snippets
617
+
618
+ $ lps snippets push --plugin wpcode
619
+ ```
620
+
621
+ _See code: [src/commands/snippets/push.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/snippets/push.ts)_
622
+
623
+ ## `@loopress/cli styles pull`
624
+
625
+ Pull Global Styles from WordPress
626
+
627
+ ```
628
+ USAGE
629
+ $ @loopress/cli styles pull [--password <value>] [--url <value>] [--user <value>] [-d]
630
+
631
+ FLAGS
632
+ -d, --dryRun Dry run - show what would happen without making changes
633
+
634
+ GLOBAL FLAGS
635
+ --password=<value> WordPress application password (fallback; prefer `lps project config`)
636
+ --url=<value> WordPress URL (fallback; prefer `lps project config`)
637
+ --user=<value> WordPress username (fallback; prefer `lps project config`)
638
+
639
+ DESCRIPTION
640
+ Pull Global Styles from WordPress
641
+
642
+ EXAMPLES
643
+ $ lps styles pull
644
+
645
+ $ lps styles pull --url http://example.com
646
+ ```
647
+
648
+ _See code: [src/commands/styles/pull.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/styles/pull.ts)_
649
+
650
+ ## `@loopress/cli styles push`
651
+
652
+ Push Global Styles to WordPress
653
+
654
+ ```
655
+ USAGE
656
+ $ @loopress/cli styles push [--password <value>] [--url <value>] [--user <value>] [-d]
657
+
658
+ FLAGS
659
+ -d, --dryRun Dry run - show what would happen without making changes
660
+
661
+ GLOBAL FLAGS
662
+ --password=<value> WordPress application password (fallback; prefer `lps project config`)
663
+ --url=<value> WordPress URL (fallback; prefer `lps project config`)
664
+ --user=<value> WordPress username (fallback; prefer `lps project config`)
665
+
666
+ DESCRIPTION
667
+ Push Global Styles to WordPress
668
+
669
+ EXAMPLES
670
+ $ lps styles push
671
+
672
+ $ lps styles push --url http://example.com
673
+ ```
674
+
675
+ _See code: [src/commands/styles/push.ts](https://github.com/loopress/loopress/blob/v0.1.0/src/commands/styles/push.ts)_
676
+ <!-- commandsstop -->
package/bin/dev.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
package/bin/dev.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env -S node --loader ts-node/esm --disable-warning=ExperimentalWarning
2
+
3
+ import {execute} from '@oclif/core'
4
+
5
+ await execute({development: true, dir: import.meta.url})
package/bin/run.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\run" %*
package/bin/run.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+
3
+ import {execute} from '@oclif/core'
4
+
5
+ await execute({dir: import.meta.url})
@@ -0,0 +1,14 @@
1
+ import { Command } from '@oclif/core';
2
+ import { EnvironmentConfig } from '../config/types.js';
3
+ export declare abstract class LoopressCommand extends Command {
4
+ static baseFlags: {
5
+ password: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
6
+ url: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
+ user: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ };
9
+ protected siteConfig: EnvironmentConfig;
10
+ buildAuthHeaders(): Promise<Record<string, string>>;
11
+ init(): Promise<void>;
12
+ protected resolveSnippetsPath(override?: string): Promise<string>;
13
+ protected resolveStylesPath(override?: string): Promise<string>;
14
+ }