@springmicro/cli 0.5.1 → 0.5.2

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 CHANGED
@@ -1,36 +1,53 @@
1
- # @springmicro/cli
2
-
3
- Command line utilities for SpringMicroHost.
4
-
5
- [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
6
- [![Version](https://img.shields.io/npm/v/@springmicro/cli.svg)](https://npmjs.org/package/@springmicro/cli)
7
- [![Downloads/week](https://img.shields.io/npm/dw/@springmicro/cli.svg)](https://npmjs.org/package/@springmicro/cli)
8
-
1
+ # @springmicro/cli
2
+
3
+ Command line utilities for SpringMicroHost.
4
+
5
+ [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
6
+ [![Version](https://img.shields.io/npm/v/@springmicro/cli.svg)](https://npmjs.org/package/@springmicro/cli)
7
+ [![Downloads/week](https://img.shields.io/npm/dw/@springmicro/cli.svg)](https://npmjs.org/package/@springmicro/cli)
8
+
9
9
  <!-- toc -->
10
10
  * [@springmicro/cli](#springmicrocli)
11
11
  * [Usage](#usage)
12
12
  * [Commands](#commands)
13
13
  * [Development](#development)
14
- <!-- tocstop -->
15
-
16
- # Usage
17
-
14
+ <!-- tocstop -->
15
+ * [@springmicro/cli](#springmicrocli)
16
+ * [Usage](#usage)
17
+ * [Commands](#commands)
18
+ * [Development](#development)
19
+ <!-- tocstop -->
20
+
21
+ # Usage
22
+
18
23
  <!-- usage -->
19
24
  ```sh-session
20
25
  $ npm install -g @springmicro/cli
21
26
  $ springmicro COMMAND
22
27
  running command...
23
28
  $ springmicro (--version)
24
- @springmicro/cli/0.5.1 linux-x64 node-v22.14.0
29
+ @springmicro/cli/0.5.2 win32-x64 node-v18.20.4
25
30
  $ springmicro --help [COMMAND]
26
31
  USAGE
27
32
  $ springmicro COMMAND
28
33
  ...
29
34
  ```
30
- <!-- usagestop -->
31
-
32
- # Commands
33
-
35
+ <!-- usagestop -->
36
+ ```sh-session
37
+ $ npm install -g @springmicro/cli
38
+ $ springmicro COMMAND
39
+ running command...
40
+ $ springmicro (--version)
41
+ @springmicro/cli/0.5.0 linux-x64 node-v22.11.0
42
+ $ springmicro --help [COMMAND]
43
+ USAGE
44
+ $ springmicro COMMAND
45
+ ...
46
+ ```
47
+ <!-- usagestop -->
48
+
49
+ # Commands
50
+
34
51
  <!-- commands -->
35
52
  * [`springmicro add auth`](#springmicro-add-auth)
36
53
  * [`springmicro add form`](#springmicro-add-form)
@@ -63,7 +80,7 @@ EXAMPLES
63
80
  $ springmicro add auth
64
81
  ```
65
82
 
66
- _See code: [src/commands/add/auth.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.1/src/commands/add/auth.ts)_
83
+ _See code: [src/commands/add/auth.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.2/src/commands/add/auth.ts)_
67
84
 
68
85
  ## `springmicro add form`
69
86
 
@@ -83,7 +100,7 @@ EXAMPLES
83
100
  $ springmicro add form
84
101
  ```
85
102
 
86
- _See code: [src/commands/add/form.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.1/src/commands/add/form.ts)_
103
+ _See code: [src/commands/add/form.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.2/src/commands/add/form.ts)_
87
104
 
88
105
  ## `springmicro help [COMMAND]`
89
106
 
@@ -126,7 +143,7 @@ EXAMPLES
126
143
  $ springmicro init astro -n example
127
144
  ```
128
145
 
129
- _See code: [src/commands/init/index.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.1/src/commands/init/index.ts)_
146
+ _See code: [src/commands/init/index.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.2/src/commands/init/index.ts)_
130
147
 
131
148
  ## `springmicro init astro`
132
149
 
@@ -146,7 +163,7 @@ EXAMPLES
146
163
  $ springmicro init astro -n <project-name>
147
164
  ```
148
165
 
149
- _See code: [src/commands/init/astro.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.1/src/commands/init/astro.ts)_
166
+ _See code: [src/commands/init/astro.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.2/src/commands/init/astro.ts)_
150
167
 
151
168
  ## `springmicro plugins`
152
169
 
@@ -437,15 +454,421 @@ DESCRIPTION
437
454
  ```
438
455
 
439
456
  _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/update.ts)_
440
- <!-- commandsstop -->
441
-
442
- # Development
443
-
444
- See [https://oclif.io/docs/templates](https://oclif.io/docs/templates) for details about running the CLI in development.
445
-
446
- The generated CLI project contains 4 bin scripts that you can use for either production or development.
447
-
448
- - `bin/run.js` - Run the CLI in production (macOS and Linux)
449
- - `bin/dev.js` - Run the CLI in development (macOS and Linux)
450
- - `bin/run.cmd` - Run the CLI in production (Windows)
457
+ <!-- commandsstop -->
458
+ * [`springmicro add auth`](#springmicro-add-auth)
459
+ * [`springmicro add form`](#springmicro-add-form)
460
+ * [`springmicro help [COMMAND]`](#springmicro-help-command)
461
+ * [`springmicro init PROJECTTYPE`](#springmicro-init-projecttype)
462
+ * [`springmicro init astro`](#springmicro-init-astro)
463
+ * [`springmicro plugins`](#springmicro-plugins)
464
+ * [`springmicro plugins add PLUGIN`](#springmicro-plugins-add-plugin)
465
+ * [`springmicro plugins:inspect PLUGIN...`](#springmicro-pluginsinspect-plugin)
466
+ * [`springmicro plugins install PLUGIN`](#springmicro-plugins-install-plugin)
467
+ * [`springmicro plugins link PATH`](#springmicro-plugins-link-path)
468
+ * [`springmicro plugins remove [PLUGIN]`](#springmicro-plugins-remove-plugin)
469
+ * [`springmicro plugins reset`](#springmicro-plugins-reset)
470
+ * [`springmicro plugins uninstall [PLUGIN]`](#springmicro-plugins-uninstall-plugin)
471
+ * [`springmicro plugins unlink [PLUGIN]`](#springmicro-plugins-unlink-plugin)
472
+ * [`springmicro plugins update`](#springmicro-plugins-update)
473
+
474
+ ## `springmicro add auth`
475
+
476
+ describe the command here
477
+
478
+ ```
479
+ USAGE
480
+ $ springmicro add auth
481
+
482
+ DESCRIPTION
483
+ describe the command here
484
+
485
+ EXAMPLES
486
+ $ springmicro add auth
487
+ ```
488
+
489
+ _See code: [src/commands/add/auth.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.0/src/commands/add/auth.ts)_
490
+
491
+ ## `springmicro add form`
492
+
493
+ add a form to your project
494
+
495
+ ```
496
+ USAGE
497
+ $ springmicro add form [-t <value>]
498
+
499
+ FLAGS
500
+ -t, --template=<value> form template (contact|quote)
501
+
502
+ DESCRIPTION
503
+ add a form to your project
504
+
505
+ EXAMPLES
506
+ $ springmicro add form
507
+ ```
508
+
509
+ _See code: [src/commands/add/form.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.0/src/commands/add/form.ts)_
510
+
511
+ ## `springmicro help [COMMAND]`
512
+
513
+ Display help for springmicro.
514
+
515
+ ```
516
+ USAGE
517
+ $ springmicro help [COMMAND...] [-n]
518
+
519
+ ARGUMENTS
520
+ COMMAND... Command to show help for.
521
+
522
+ FLAGS
523
+ -n, --nested-commands Include all nested commands in the output.
524
+
525
+ DESCRIPTION
526
+ Display help for springmicro.
527
+ ```
528
+
529
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.18/src/commands/help.ts)_
530
+
531
+ ## `springmicro init PROJECTTYPE`
532
+
533
+ Initialize a JavaScript framework project according to SpringMicroHost's specifications.
534
+
535
+ ```
536
+ USAGE
537
+ $ springmicro init PROJECTTYPE -n <value>
538
+
539
+ ARGUMENTS
540
+ PROJECTTYPE Project type (astro)
541
+
542
+ FLAGS
543
+ -n, --name=<value> (required) Project name
544
+
545
+ DESCRIPTION
546
+ Initialize a JavaScript framework project according to SpringMicroHost's specifications.
547
+
548
+ EXAMPLES
549
+ $ springmicro init astro -n example
550
+ ```
551
+
552
+ _See code: [src/commands/init/index.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.0/src/commands/init/index.ts)_
553
+
554
+ ## `springmicro init astro`
555
+
556
+ Initialize a Astro project according to SpringMicroHost's specifications.
557
+
558
+ ```
559
+ USAGE
560
+ $ springmicro init astro -n <value>
561
+
562
+ FLAGS
563
+ -n, --name=<value> (required) Project name
564
+
565
+ DESCRIPTION
566
+ Initialize a Astro project according to SpringMicroHost's specifications.
567
+
568
+ EXAMPLES
569
+ $ springmicro init astro -n <project-name>
570
+ ```
571
+
572
+ _See code: [src/commands/init/astro.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.5.0/src/commands/init/astro.ts)_
573
+
574
+ ## `springmicro plugins`
575
+
576
+ List installed plugins.
577
+
578
+ ```
579
+ USAGE
580
+ $ springmicro plugins [--json] [--core]
581
+
582
+ FLAGS
583
+ --core Show core plugins.
584
+
585
+ GLOBAL FLAGS
586
+ --json Format output as json.
587
+
588
+ DESCRIPTION
589
+ List installed plugins.
590
+
591
+ EXAMPLES
592
+ $ springmicro plugins
593
+ ```
594
+
595
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/index.ts)_
596
+
597
+ ## `springmicro plugins add PLUGIN`
598
+
599
+ Installs a plugin into springmicro.
600
+
601
+ ```
602
+ USAGE
603
+ $ springmicro plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
604
+
605
+ ARGUMENTS
606
+ PLUGIN... Plugin to install.
607
+
608
+ FLAGS
609
+ -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
610
+ -h, --help Show CLI help.
611
+ -s, --silent Silences npm output.
612
+ -v, --verbose Show verbose npm output.
613
+
614
+ GLOBAL FLAGS
615
+ --json Format output as json.
616
+
617
+ DESCRIPTION
618
+ Installs a plugin into springmicro.
619
+
620
+ Uses npm to install plugins.
621
+
622
+ Installation of a user-installed plugin will override a core plugin.
623
+
624
+ Use the SPRINGMICRO_NPM_LOG_LEVEL environment variable to set the npm loglevel.
625
+ Use the SPRINGMICRO_NPM_REGISTRY environment variable to set the npm registry.
626
+
627
+ ALIASES
628
+ $ springmicro plugins add
629
+
630
+ EXAMPLES
631
+ Install a plugin from npm registry.
632
+
633
+ $ springmicro plugins add myplugin
634
+
635
+ Install a plugin from a github url.
636
+
637
+ $ springmicro plugins add https://github.com/someuser/someplugin
638
+
639
+ Install a plugin from a github slug.
640
+
641
+ $ springmicro plugins add someuser/someplugin
642
+ ```
643
+
644
+ ## `springmicro plugins:inspect PLUGIN...`
645
+
646
+ Displays installation properties of a plugin.
647
+
648
+ ```
649
+ USAGE
650
+ $ springmicro plugins inspect PLUGIN...
651
+
652
+ ARGUMENTS
653
+ PLUGIN... [default: .] Plugin to inspect.
654
+
655
+ FLAGS
656
+ -h, --help Show CLI help.
657
+ -v, --verbose
658
+
659
+ GLOBAL FLAGS
660
+ --json Format output as json.
661
+
662
+ DESCRIPTION
663
+ Displays installation properties of a plugin.
664
+
665
+ EXAMPLES
666
+ $ springmicro plugins inspect myplugin
667
+ ```
668
+
669
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/inspect.ts)_
670
+
671
+ ## `springmicro plugins install PLUGIN`
672
+
673
+ Installs a plugin into springmicro.
674
+
675
+ ```
676
+ USAGE
677
+ $ springmicro plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
678
+
679
+ ARGUMENTS
680
+ PLUGIN... Plugin to install.
681
+
682
+ FLAGS
683
+ -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
684
+ -h, --help Show CLI help.
685
+ -s, --silent Silences npm output.
686
+ -v, --verbose Show verbose npm output.
687
+
688
+ GLOBAL FLAGS
689
+ --json Format output as json.
690
+
691
+ DESCRIPTION
692
+ Installs a plugin into springmicro.
693
+
694
+ Uses npm to install plugins.
695
+
696
+ Installation of a user-installed plugin will override a core plugin.
697
+
698
+ Use the SPRINGMICRO_NPM_LOG_LEVEL environment variable to set the npm loglevel.
699
+ Use the SPRINGMICRO_NPM_REGISTRY environment variable to set the npm registry.
700
+
701
+ ALIASES
702
+ $ springmicro plugins add
703
+
704
+ EXAMPLES
705
+ Install a plugin from npm registry.
706
+
707
+ $ springmicro plugins install myplugin
708
+
709
+ Install a plugin from a github url.
710
+
711
+ $ springmicro plugins install https://github.com/someuser/someplugin
712
+
713
+ Install a plugin from a github slug.
714
+
715
+ $ springmicro plugins install someuser/someplugin
716
+ ```
717
+
718
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/install.ts)_
719
+
720
+ ## `springmicro plugins link PATH`
721
+
722
+ Links a plugin into the CLI for development.
723
+
724
+ ```
725
+ USAGE
726
+ $ springmicro plugins link PATH [-h] [--install] [-v]
727
+
728
+ ARGUMENTS
729
+ PATH [default: .] path to plugin
730
+
731
+ FLAGS
732
+ -h, --help Show CLI help.
733
+ -v, --verbose
734
+ --[no-]install Install dependencies after linking the plugin.
735
+
736
+ DESCRIPTION
737
+ Links a plugin into the CLI for development.
738
+
739
+ Installation of a linked plugin will override a user-installed or core plugin.
740
+
741
+ e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
742
+ command will override the user-installed or core plugin implementation. This is useful for development work.
743
+
744
+
745
+ EXAMPLES
746
+ $ springmicro plugins link myplugin
747
+ ```
748
+
749
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/link.ts)_
750
+
751
+ ## `springmicro plugins remove [PLUGIN]`
752
+
753
+ Removes a plugin from the CLI.
754
+
755
+ ```
756
+ USAGE
757
+ $ springmicro plugins remove [PLUGIN...] [-h] [-v]
758
+
759
+ ARGUMENTS
760
+ PLUGIN... plugin to uninstall
761
+
762
+ FLAGS
763
+ -h, --help Show CLI help.
764
+ -v, --verbose
765
+
766
+ DESCRIPTION
767
+ Removes a plugin from the CLI.
768
+
769
+ ALIASES
770
+ $ springmicro plugins unlink
771
+ $ springmicro plugins remove
772
+
773
+ EXAMPLES
774
+ $ springmicro plugins remove myplugin
775
+ ```
776
+
777
+ ## `springmicro plugins reset`
778
+
779
+ Remove all user-installed and linked plugins.
780
+
781
+ ```
782
+ USAGE
783
+ $ springmicro plugins reset [--hard] [--reinstall]
784
+
785
+ FLAGS
786
+ --hard Delete node_modules and package manager related files in addition to uninstalling plugins.
787
+ --reinstall Reinstall all plugins after uninstalling.
788
+ ```
789
+
790
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/reset.ts)_
791
+
792
+ ## `springmicro plugins uninstall [PLUGIN]`
793
+
794
+ Removes a plugin from the CLI.
795
+
796
+ ```
797
+ USAGE
798
+ $ springmicro plugins uninstall [PLUGIN...] [-h] [-v]
799
+
800
+ ARGUMENTS
801
+ PLUGIN... plugin to uninstall
802
+
803
+ FLAGS
804
+ -h, --help Show CLI help.
805
+ -v, --verbose
806
+
807
+ DESCRIPTION
808
+ Removes a plugin from the CLI.
809
+
810
+ ALIASES
811
+ $ springmicro plugins unlink
812
+ $ springmicro plugins remove
813
+
814
+ EXAMPLES
815
+ $ springmicro plugins uninstall myplugin
816
+ ```
817
+
818
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/uninstall.ts)_
819
+
820
+ ## `springmicro plugins unlink [PLUGIN]`
821
+
822
+ Removes a plugin from the CLI.
823
+
824
+ ```
825
+ USAGE
826
+ $ springmicro plugins unlink [PLUGIN...] [-h] [-v]
827
+
828
+ ARGUMENTS
829
+ PLUGIN... plugin to uninstall
830
+
831
+ FLAGS
832
+ -h, --help Show CLI help.
833
+ -v, --verbose
834
+
835
+ DESCRIPTION
836
+ Removes a plugin from the CLI.
837
+
838
+ ALIASES
839
+ $ springmicro plugins unlink
840
+ $ springmicro plugins remove
841
+
842
+ EXAMPLES
843
+ $ springmicro plugins unlink myplugin
844
+ ```
845
+
846
+ ## `springmicro plugins update`
847
+
848
+ Update installed plugins.
849
+
850
+ ```
851
+ USAGE
852
+ $ springmicro plugins update [-h] [-v]
853
+
854
+ FLAGS
855
+ -h, --help Show CLI help.
856
+ -v, --verbose
857
+
858
+ DESCRIPTION
859
+ Update installed plugins.
860
+ ```
861
+
862
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.17/src/commands/plugins/update.ts)_
863
+ <!-- commandsstop -->
864
+
865
+ # Development
866
+
867
+ See [https://oclif.io/docs/templates](https://oclif.io/docs/templates) for details about running the CLI in development.
868
+
869
+ The generated CLI project contains 4 bin scripts that you can use for either production or development.
870
+
871
+ - `bin/run.js` - Run the CLI in production (macOS and Linux)
872
+ - `bin/dev.js` - Run the CLI in development (macOS and Linux)
873
+ - `bin/run.cmd` - Run the CLI in production (Windows)
451
874
  - `bin/dev.cmd` - Run the CLI in development (Windows)
package/bin/dev.cmd CHANGED
@@ -1,3 +1,3 @@
1
- @echo off
2
-
3
- node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
1
+ @echo off
2
+
3
+ node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
package/bin/dev.js CHANGED
@@ -1,6 +1,6 @@
1
- #!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning
2
-
3
- // eslint-disable-next-line n/shebang
4
- import {execute} from '@oclif/core'
5
-
6
- await execute({development: true, dir: import.meta.url})
1
+ #!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning
2
+
3
+ // eslint-disable-next-line n/shebang
4
+ import {execute} from '@oclif/core'
5
+
6
+ await execute({development: true, dir: import.meta.url})
package/bin/run.cmd CHANGED
@@ -1,3 +1,3 @@
1
- @echo off
2
-
3
- node "%~dp0\run" %*
1
+ @echo off
2
+
3
+ node "%~dp0\run" %*
package/bin/run.js CHANGED
@@ -1,5 +1,5 @@
1
- #!/usr/bin/env node
2
-
3
- import {execute} from '@oclif/core'
4
-
5
- await execute({dir: import.meta.url})
1
+ #!/usr/bin/env node
2
+
3
+ import {execute} from '@oclif/core'
4
+
5
+ await execute({dir: import.meta.url})
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes