hereya-cli 0.73.4 → 0.75.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 +93 -68
- package/dist/commands/devenv/project/init/index.d.ts +1 -0
- package/dist/commands/devenv/project/init/index.js +12 -2
- package/dist/commands/init/index.d.ts +1 -0
- package/dist/commands/init/index.js +11 -2
- package/dist/commands/update/index.d.ts +9 -0
- package/dist/commands/update/index.js +38 -0
- package/dist/lib/shell.d.ts +3 -0
- package/dist/lib/shell.js +4 -0
- package/oclif.manifest.json +111 -61
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ $ npm install -g hereya-cli
|
|
|
21
21
|
$ hereya COMMAND
|
|
22
22
|
running command...
|
|
23
23
|
$ hereya (--version)
|
|
24
|
-
hereya-cli/0.
|
|
24
|
+
hereya-cli/0.75.0 linux-x64 node-v24.14.0
|
|
25
25
|
$ hereya --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ hereya COMMAND
|
|
@@ -72,6 +72,7 @@ USAGE
|
|
|
72
72
|
* [`hereya undeploy`](#hereya-undeploy)
|
|
73
73
|
* [`hereya uninit PROJECT`](#hereya-uninit-project)
|
|
74
74
|
* [`hereya up`](#hereya-up)
|
|
75
|
+
* [`hereya update [VERSION]`](#hereya-update-version)
|
|
75
76
|
* [`hereya workspace create NAME`](#hereya-workspace-create-name)
|
|
76
77
|
* [`hereya workspace delete NAME`](#hereya-workspace-delete-name)
|
|
77
78
|
* [`hereya workspace env [NAME]`](#hereya-workspace-env-name)
|
|
@@ -117,7 +118,7 @@ EXAMPLES
|
|
|
117
118
|
$ hereya add cloudy/docker_postgres
|
|
118
119
|
```
|
|
119
120
|
|
|
120
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
121
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/add/index.ts)_
|
|
121
122
|
|
|
122
123
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
123
124
|
|
|
@@ -142,7 +143,7 @@ EXAMPLES
|
|
|
142
143
|
$ hereya bootstrap local
|
|
143
144
|
```
|
|
144
145
|
|
|
145
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
146
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/bootstrap/index.ts)_
|
|
146
147
|
|
|
147
148
|
## `hereya config export-backend [FILE]`
|
|
148
149
|
|
|
@@ -164,7 +165,7 @@ EXAMPLES
|
|
|
164
165
|
$ hereya config export-backend ./path/to/export.json
|
|
165
166
|
```
|
|
166
167
|
|
|
167
|
-
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
168
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/config/export-backend/index.ts)_
|
|
168
169
|
|
|
169
170
|
## `hereya config get-backend`
|
|
170
171
|
|
|
@@ -181,7 +182,7 @@ EXAMPLES
|
|
|
181
182
|
$ hereya config get-backend
|
|
182
183
|
```
|
|
183
184
|
|
|
184
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
185
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/config/get-backend/index.ts)_
|
|
185
186
|
|
|
186
187
|
## `hereya config import-backend FILE`
|
|
187
188
|
|
|
@@ -201,7 +202,7 @@ EXAMPLES
|
|
|
201
202
|
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
202
203
|
```
|
|
203
204
|
|
|
204
|
-
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
205
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/config/import-backend/index.ts)_
|
|
205
206
|
|
|
206
207
|
## `hereya config use-backend TYPE`
|
|
207
208
|
|
|
@@ -223,7 +224,7 @@ EXAMPLES
|
|
|
223
224
|
$ hereya config use-backend local
|
|
224
225
|
```
|
|
225
226
|
|
|
226
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
227
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/config/use-backend/index.ts)_
|
|
227
228
|
|
|
228
229
|
## `hereya delete-state`
|
|
229
230
|
|
|
@@ -249,7 +250,7 @@ EXAMPLES
|
|
|
249
250
|
$ hereya delete-state --workspace staging
|
|
250
251
|
```
|
|
251
252
|
|
|
252
|
-
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
253
|
+
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/delete-state/index.ts)_
|
|
253
254
|
|
|
254
255
|
## `hereya deploy`
|
|
255
256
|
|
|
@@ -274,7 +275,7 @@ EXAMPLES
|
|
|
274
275
|
$ hereya deploy
|
|
275
276
|
```
|
|
276
277
|
|
|
277
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
278
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/deploy/index.ts)_
|
|
278
279
|
|
|
279
280
|
## `hereya devenv config`
|
|
280
281
|
|
|
@@ -294,7 +295,7 @@ EXAMPLES
|
|
|
294
295
|
$ hereya devenv config -w my-workspace
|
|
295
296
|
```
|
|
296
297
|
|
|
297
|
-
_See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
298
|
+
_See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/config/index.ts)_
|
|
298
299
|
|
|
299
300
|
## `hereya devenv install`
|
|
300
301
|
|
|
@@ -319,7 +320,7 @@ EXAMPLES
|
|
|
319
320
|
$ hereya devenv install -w my-workspace -p instanceType=t3.large
|
|
320
321
|
```
|
|
321
322
|
|
|
322
|
-
_See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
323
|
+
_See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/install/index.ts)_
|
|
323
324
|
|
|
324
325
|
## `hereya devenv project init PROJECT`
|
|
325
326
|
|
|
@@ -327,17 +328,18 @@ Initialize a project on a remote dev environment.
|
|
|
327
328
|
|
|
328
329
|
```
|
|
329
330
|
USAGE
|
|
330
|
-
$ hereya devenv project init PROJECT -w <value> [-f] [-p <value>...] [-t <value>]
|
|
331
|
+
$ hereya devenv project init PROJECT -w <value> [-d <value>] [-f] [-p <value>...] [-t <value>]
|
|
331
332
|
|
|
332
333
|
ARGUMENTS
|
|
333
334
|
PROJECT project name
|
|
334
335
|
|
|
335
336
|
FLAGS
|
|
336
|
-
-
|
|
337
|
-
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
-
|
|
337
|
+
-d, --deploy-workspace=<value> workspace used for deployment (required when using a template)
|
|
338
|
+
-f, --force continue even if folder already exists
|
|
339
|
+
-p, --parameter=<value>... [default: ] parameter for the template, in the form of 'key=value'. Can be specified
|
|
340
|
+
multiple times.
|
|
341
|
+
-t, --template=<value> template package to scaffold the project from
|
|
342
|
+
-w, --workspace=<value> (required) name of the workspace
|
|
341
343
|
|
|
342
344
|
DESCRIPTION
|
|
343
345
|
Initialize a project on a remote dev environment.
|
|
@@ -350,7 +352,7 @@ EXAMPLES
|
|
|
350
352
|
$ hereya devenv project init my-app -w my-workspace -t acme/node-starter -p region=us-east-1
|
|
351
353
|
```
|
|
352
354
|
|
|
353
|
-
_See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
355
|
+
_See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/project/init/index.ts)_
|
|
354
356
|
|
|
355
357
|
## `hereya devenv project uninit PROJECT`
|
|
356
358
|
|
|
@@ -376,7 +378,7 @@ EXAMPLES
|
|
|
376
378
|
$ hereya devenv project uninit my-app -w my-workspace --force
|
|
377
379
|
```
|
|
378
380
|
|
|
379
|
-
_See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
381
|
+
_See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/project/uninit/index.ts)_
|
|
380
382
|
|
|
381
383
|
## `hereya devenv ssh`
|
|
382
384
|
|
|
@@ -396,7 +398,7 @@ EXAMPLES
|
|
|
396
398
|
$ hereya devenv ssh -w my-workspace
|
|
397
399
|
```
|
|
398
400
|
|
|
399
|
-
_See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
401
|
+
_See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/ssh/index.ts)_
|
|
400
402
|
|
|
401
403
|
## `hereya devenv uninstall`
|
|
402
404
|
|
|
@@ -417,7 +419,7 @@ EXAMPLES
|
|
|
417
419
|
$ hereya devenv uninstall -w my-workspace
|
|
418
420
|
```
|
|
419
421
|
|
|
420
|
-
_See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
422
|
+
_See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/uninstall/index.ts)_
|
|
421
423
|
|
|
422
424
|
## `hereya doc PACKAGE`
|
|
423
425
|
|
|
@@ -450,7 +452,7 @@ EXAMPLES
|
|
|
450
452
|
$ hereya doc my-package --no-doc
|
|
451
453
|
```
|
|
452
454
|
|
|
453
|
-
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
455
|
+
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/doc/index.ts)_
|
|
454
456
|
|
|
455
457
|
## `hereya docker run IMAGE`
|
|
456
458
|
|
|
@@ -481,7 +483,7 @@ EXAMPLES
|
|
|
481
483
|
$ hereya docker run myapp:latest -- --rm -v ./data:/data
|
|
482
484
|
```
|
|
483
485
|
|
|
484
|
-
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
486
|
+
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/docker/run/index.ts)_
|
|
485
487
|
|
|
486
488
|
## `hereya down`
|
|
487
489
|
|
|
@@ -508,7 +510,7 @@ EXAMPLES
|
|
|
508
510
|
$ hereya down
|
|
509
511
|
```
|
|
510
512
|
|
|
511
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
513
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/down/index.ts)_
|
|
512
514
|
|
|
513
515
|
## `hereya env [NAME]`
|
|
514
516
|
|
|
@@ -539,7 +541,7 @@ EXAMPLES
|
|
|
539
541
|
$ hereya env -w dev -l
|
|
540
542
|
```
|
|
541
543
|
|
|
542
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
544
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/env/index.ts)_
|
|
543
545
|
|
|
544
546
|
## `hereya env set [NAME]`
|
|
545
547
|
|
|
@@ -566,7 +568,7 @@ EXAMPLES
|
|
|
566
568
|
$ hereya env set FOO -v bar -w dev
|
|
567
569
|
```
|
|
568
570
|
|
|
569
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
571
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/env/set/index.ts)_
|
|
570
572
|
|
|
571
573
|
## `hereya executor start`
|
|
572
574
|
|
|
@@ -599,7 +601,7 @@ EXAMPLES
|
|
|
599
601
|
HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
|
|
600
602
|
```
|
|
601
603
|
|
|
602
|
-
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
604
|
+
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/executor/start/index.ts)_
|
|
603
605
|
|
|
604
606
|
## `hereya flow add PACKAGE`
|
|
605
607
|
|
|
@@ -637,7 +639,7 @@ EXAMPLES
|
|
|
637
639
|
$ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
|
|
638
640
|
```
|
|
639
641
|
|
|
640
|
-
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
642
|
+
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/add/index.ts)_
|
|
641
643
|
|
|
642
644
|
## `hereya flow docker run IMAGE`
|
|
643
645
|
|
|
@@ -667,7 +669,7 @@ EXAMPLES
|
|
|
667
669
|
$ hereya flow docker run --pin myapp:latest -- --rm
|
|
668
670
|
```
|
|
669
671
|
|
|
670
|
-
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
672
|
+
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/docker/run/index.ts)_
|
|
671
673
|
|
|
672
674
|
## `hereya flow down`
|
|
673
675
|
|
|
@@ -701,7 +703,7 @@ EXAMPLES
|
|
|
701
703
|
$ hereya flow down --pin
|
|
702
704
|
```
|
|
703
705
|
|
|
704
|
-
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
706
|
+
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/down/index.ts)_
|
|
705
707
|
|
|
706
708
|
## `hereya flow env [NAME]`
|
|
707
709
|
|
|
@@ -735,7 +737,7 @@ EXAMPLES
|
|
|
735
737
|
$ hereya flow env -l
|
|
736
738
|
```
|
|
737
739
|
|
|
738
|
-
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
740
|
+
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/env/index.ts)_
|
|
739
741
|
|
|
740
742
|
## `hereya flow provid PACKAGE`
|
|
741
743
|
|
|
@@ -764,7 +766,7 @@ EXAMPLES
|
|
|
764
766
|
$ hereya flow provid hereya/postgres --pin
|
|
765
767
|
```
|
|
766
768
|
|
|
767
|
-
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
769
|
+
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/provid/index.ts)_
|
|
768
770
|
|
|
769
771
|
## `hereya flow remove PACKAGE`
|
|
770
772
|
|
|
@@ -794,7 +796,7 @@ EXAMPLES
|
|
|
794
796
|
$ hereya flow remove cloudy/docker_postgres --profile staging
|
|
795
797
|
```
|
|
796
798
|
|
|
797
|
-
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
799
|
+
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/remove/index.ts)_
|
|
798
800
|
|
|
799
801
|
## `hereya flow run CMD`
|
|
800
802
|
|
|
@@ -823,7 +825,7 @@ EXAMPLES
|
|
|
823
825
|
$ hereya flow run --pin -- npm test
|
|
824
826
|
```
|
|
825
827
|
|
|
826
|
-
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
828
|
+
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/run/index.ts)_
|
|
827
829
|
|
|
828
830
|
## `hereya flow up`
|
|
829
831
|
|
|
@@ -857,7 +859,7 @@ EXAMPLES
|
|
|
857
859
|
$ hereya flow up --pin
|
|
858
860
|
```
|
|
859
861
|
|
|
860
|
-
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
862
|
+
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/up/index.ts)_
|
|
861
863
|
|
|
862
864
|
## `hereya help [COMMAND]`
|
|
863
865
|
|
|
@@ -914,7 +916,7 @@ EXAMPLES
|
|
|
914
916
|
$ hereya import org/my-package -f state.tfstate -w my-workspace
|
|
915
917
|
```
|
|
916
918
|
|
|
917
|
-
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
919
|
+
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/import/index.ts)_
|
|
918
920
|
|
|
919
921
|
## `hereya init PROJECT`
|
|
920
922
|
|
|
@@ -922,17 +924,18 @@ Initialize hereya in a project directory.
|
|
|
922
924
|
|
|
923
925
|
```
|
|
924
926
|
USAGE
|
|
925
|
-
$ hereya init PROJECT -w <value> [--chdir <value>] [-p <value>...] [-t <value>]
|
|
927
|
+
$ hereya init PROJECT -w <value> [--chdir <value>] [-d <value>] [-p <value>...] [-t <value>]
|
|
926
928
|
|
|
927
929
|
ARGUMENTS
|
|
928
930
|
PROJECT project name
|
|
929
931
|
|
|
930
932
|
FLAGS
|
|
931
|
-
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
-
|
|
935
|
-
|
|
933
|
+
-d, --deploy-workspace=<value> workspace used for deployment (required when using a template)
|
|
934
|
+
-p, --parameter=<value>... [default: ] template parameter, in the form of 'key=value'. Can be specified multiple
|
|
935
|
+
times.
|
|
936
|
+
-t, --template=<value> template package name (e.g. owner/repo)
|
|
937
|
+
-w, --workspace=<value> (required) workspace to set as default
|
|
938
|
+
--chdir=<value> directory to run command in
|
|
936
939
|
|
|
937
940
|
DESCRIPTION
|
|
938
941
|
Initialize hereya in a project directory.
|
|
@@ -942,12 +945,12 @@ EXAMPLES
|
|
|
942
945
|
|
|
943
946
|
$ hereya init myProject -w=defaultWorkspace --chdir=./myProject
|
|
944
947
|
|
|
945
|
-
$ hereya init myProject -w=dev -t=acme/node-starter
|
|
948
|
+
$ hereya init myProject -w=dev -t=acme/node-starter -d=prod
|
|
946
949
|
|
|
947
|
-
$ hereya init myProject -w=dev -t=acme/node-starter -p region=us-east-1
|
|
950
|
+
$ hereya init myProject -w=dev -t=acme/node-starter -d=prod -p region=us-east-1
|
|
948
951
|
```
|
|
949
952
|
|
|
950
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
953
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/init/index.ts)_
|
|
951
954
|
|
|
952
955
|
## `hereya login [URL]`
|
|
953
956
|
|
|
@@ -976,7 +979,7 @@ EXAMPLES
|
|
|
976
979
|
$ hereya login --token=your-token https://cloud.hereya.dev
|
|
977
980
|
```
|
|
978
981
|
|
|
979
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
982
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/login/index.ts)_
|
|
980
983
|
|
|
981
984
|
## `hereya logout`
|
|
982
985
|
|
|
@@ -993,7 +996,7 @@ EXAMPLES
|
|
|
993
996
|
$ hereya logout
|
|
994
997
|
```
|
|
995
998
|
|
|
996
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
999
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/logout/index.ts)_
|
|
997
1000
|
|
|
998
1001
|
## `hereya provid PACKAGE`
|
|
999
1002
|
|
|
@@ -1021,7 +1024,7 @@ EXAMPLES
|
|
|
1021
1024
|
$ hereya provid hereya/postgres --workspace staging
|
|
1022
1025
|
```
|
|
1023
1026
|
|
|
1024
|
-
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1027
|
+
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/provid/index.ts)_
|
|
1025
1028
|
|
|
1026
1029
|
## `hereya publish`
|
|
1027
1030
|
|
|
@@ -1044,7 +1047,7 @@ EXAMPLES
|
|
|
1044
1047
|
$ hereya publish --chdir=/path/to/package
|
|
1045
1048
|
```
|
|
1046
1049
|
|
|
1047
|
-
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1050
|
+
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/publish/index.ts)_
|
|
1048
1051
|
|
|
1049
1052
|
## `hereya remove PACKAGE`
|
|
1050
1053
|
|
|
@@ -1072,7 +1075,7 @@ EXAMPLES
|
|
|
1072
1075
|
$ hereya remove cloudy/docker_postgres
|
|
1073
1076
|
```
|
|
1074
1077
|
|
|
1075
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1078
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/remove/index.ts)_
|
|
1076
1079
|
|
|
1077
1080
|
## `hereya run CMD`
|
|
1078
1081
|
|
|
@@ -1098,7 +1101,7 @@ EXAMPLES
|
|
|
1098
1101
|
$ hereya run -w uat -- node index.js
|
|
1099
1102
|
```
|
|
1100
1103
|
|
|
1101
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1104
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/run/index.ts)_
|
|
1102
1105
|
|
|
1103
1106
|
## `hereya search QUERY`
|
|
1104
1107
|
|
|
@@ -1129,7 +1132,7 @@ EXAMPLES
|
|
|
1129
1132
|
$ hereya search database --json
|
|
1130
1133
|
```
|
|
1131
1134
|
|
|
1132
|
-
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1135
|
+
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/search/index.ts)_
|
|
1133
1136
|
|
|
1134
1137
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
1135
1138
|
|
|
@@ -1154,7 +1157,7 @@ EXAMPLES
|
|
|
1154
1157
|
$ hereya unbootstrap local
|
|
1155
1158
|
```
|
|
1156
1159
|
|
|
1157
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1160
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/unbootstrap/index.ts)_
|
|
1158
1161
|
|
|
1159
1162
|
## `hereya undeploy`
|
|
1160
1163
|
|
|
@@ -1179,7 +1182,7 @@ EXAMPLES
|
|
|
1179
1182
|
$ hereya undeploy
|
|
1180
1183
|
```
|
|
1181
1184
|
|
|
1182
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1185
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/undeploy/index.ts)_
|
|
1183
1186
|
|
|
1184
1187
|
## `hereya uninit PROJECT`
|
|
1185
1188
|
|
|
@@ -1207,7 +1210,7 @@ EXAMPLES
|
|
|
1207
1210
|
$ hereya uninit myProject -w dev -p prodWorkspace=prod
|
|
1208
1211
|
```
|
|
1209
1212
|
|
|
1210
|
-
_See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1213
|
+
_See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/uninit/index.ts)_
|
|
1211
1214
|
|
|
1212
1215
|
## `hereya up`
|
|
1213
1216
|
|
|
@@ -1234,7 +1237,29 @@ EXAMPLES
|
|
|
1234
1237
|
$ hereya up
|
|
1235
1238
|
```
|
|
1236
1239
|
|
|
1237
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1240
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/up/index.ts)_
|
|
1241
|
+
|
|
1242
|
+
## `hereya update [VERSION]`
|
|
1243
|
+
|
|
1244
|
+
Update hereya CLI to the latest or a specific version.
|
|
1245
|
+
|
|
1246
|
+
```
|
|
1247
|
+
USAGE
|
|
1248
|
+
$ hereya update [VERSION]
|
|
1249
|
+
|
|
1250
|
+
ARGUMENTS
|
|
1251
|
+
VERSION [default: latest] version to update to
|
|
1252
|
+
|
|
1253
|
+
DESCRIPTION
|
|
1254
|
+
Update hereya CLI to the latest or a specific version.
|
|
1255
|
+
|
|
1256
|
+
EXAMPLES
|
|
1257
|
+
$ hereya update
|
|
1258
|
+
|
|
1259
|
+
$ hereya update 0.75.0
|
|
1260
|
+
```
|
|
1261
|
+
|
|
1262
|
+
_See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/update/index.ts)_
|
|
1238
1263
|
|
|
1239
1264
|
## `hereya workspace create NAME`
|
|
1240
1265
|
|
|
@@ -1259,7 +1284,7 @@ EXAMPLES
|
|
|
1259
1284
|
$ hereya workspace create dev
|
|
1260
1285
|
```
|
|
1261
1286
|
|
|
1262
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1287
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/create/index.ts)_
|
|
1263
1288
|
|
|
1264
1289
|
## `hereya workspace delete NAME`
|
|
1265
1290
|
|
|
@@ -1279,7 +1304,7 @@ EXAMPLES
|
|
|
1279
1304
|
$ hereya workspace delete dev
|
|
1280
1305
|
```
|
|
1281
1306
|
|
|
1282
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1307
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/delete/index.ts)_
|
|
1283
1308
|
|
|
1284
1309
|
## `hereya workspace env [NAME]`
|
|
1285
1310
|
|
|
@@ -1305,7 +1330,7 @@ EXAMPLES
|
|
|
1305
1330
|
$ hereya workspace env myEnv -w dev
|
|
1306
1331
|
```
|
|
1307
1332
|
|
|
1308
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1333
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/env/index.ts)_
|
|
1309
1334
|
|
|
1310
1335
|
## `hereya workspace env set`
|
|
1311
1336
|
|
|
@@ -1329,7 +1354,7 @@ EXAMPLES
|
|
|
1329
1354
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
1330
1355
|
```
|
|
1331
1356
|
|
|
1332
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1357
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/env/set/index.ts)_
|
|
1333
1358
|
|
|
1334
1359
|
## `hereya workspace env unset`
|
|
1335
1360
|
|
|
@@ -1350,7 +1375,7 @@ EXAMPLES
|
|
|
1350
1375
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
1351
1376
|
```
|
|
1352
1377
|
|
|
1353
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1378
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/env/unset/index.ts)_
|
|
1354
1379
|
|
|
1355
1380
|
## `hereya workspace executor install`
|
|
1356
1381
|
|
|
@@ -1369,7 +1394,7 @@ DESCRIPTION
|
|
|
1369
1394
|
Install a remote executor into a workspace
|
|
1370
1395
|
```
|
|
1371
1396
|
|
|
1372
|
-
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1397
|
+
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/executor/install/index.ts)_
|
|
1373
1398
|
|
|
1374
1399
|
## `hereya workspace executor token`
|
|
1375
1400
|
|
|
@@ -1386,7 +1411,7 @@ DESCRIPTION
|
|
|
1386
1411
|
Generate a workspace-scoped executor token for the remote executor
|
|
1387
1412
|
```
|
|
1388
1413
|
|
|
1389
|
-
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1414
|
+
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/executor/token/index.ts)_
|
|
1390
1415
|
|
|
1391
1416
|
## `hereya workspace executor uninstall`
|
|
1392
1417
|
|
|
@@ -1404,7 +1429,7 @@ DESCRIPTION
|
|
|
1404
1429
|
Uninstall the remote executor from a workspace
|
|
1405
1430
|
```
|
|
1406
1431
|
|
|
1407
|
-
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1432
|
+
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/executor/uninstall/index.ts)_
|
|
1408
1433
|
|
|
1409
1434
|
## `hereya workspace install PACKAGE`
|
|
1410
1435
|
|
|
@@ -1431,7 +1456,7 @@ EXAMPLES
|
|
|
1431
1456
|
$ hereya workspace install hereya/aws-cognito
|
|
1432
1457
|
```
|
|
1433
1458
|
|
|
1434
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1459
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/install/index.ts)_
|
|
1435
1460
|
|
|
1436
1461
|
## `hereya workspace list`
|
|
1437
1462
|
|
|
@@ -1455,7 +1480,7 @@ EXAMPLES
|
|
|
1455
1480
|
$ hereya workspace list --org personal
|
|
1456
1481
|
```
|
|
1457
1482
|
|
|
1458
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1483
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/list/index.ts)_
|
|
1459
1484
|
|
|
1460
1485
|
## `hereya workspace set-profile PROFILE`
|
|
1461
1486
|
|
|
@@ -1479,7 +1504,7 @@ EXAMPLES
|
|
|
1479
1504
|
$ hereya workspace set-profile prod-profile -w production
|
|
1480
1505
|
```
|
|
1481
1506
|
|
|
1482
|
-
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1507
|
+
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/set-profile/index.ts)_
|
|
1483
1508
|
|
|
1484
1509
|
## `hereya workspace uninstall PACKAGE`
|
|
1485
1510
|
|
|
@@ -1506,5 +1531,5 @@ EXAMPLES
|
|
|
1506
1531
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
1507
1532
|
```
|
|
1508
1533
|
|
|
1509
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1534
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/uninstall/index.ts)_
|
|
1510
1535
|
<!-- commandsstop -->
|
|
@@ -6,6 +6,7 @@ export default class DevenvProjectInit extends Command {
|
|
|
6
6
|
static description: string;
|
|
7
7
|
static examples: string[];
|
|
8
8
|
static flags: {
|
|
9
|
+
'deploy-workspace': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
10
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
11
|
parameter: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
12
|
template: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -21,6 +21,11 @@ export default class DevenvProjectInit extends Command {
|
|
|
21
21
|
'<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter -p region=us-east-1',
|
|
22
22
|
];
|
|
23
23
|
static flags = {
|
|
24
|
+
'deploy-workspace': Flags.string({
|
|
25
|
+
char: 'd',
|
|
26
|
+
description: 'workspace used for deployment (required when using a template)',
|
|
27
|
+
required: false,
|
|
28
|
+
}),
|
|
24
29
|
force: Flags.boolean({
|
|
25
30
|
char: 'f',
|
|
26
31
|
default: false,
|
|
@@ -48,6 +53,10 @@ export default class DevenvProjectInit extends Command {
|
|
|
48
53
|
const { args, flags } = await this.parse(DevenvProjectInit);
|
|
49
54
|
const { project } = args;
|
|
50
55
|
const { force, parameter, template, workspace } = flags;
|
|
56
|
+
const deployWorkspace = flags['deploy-workspace'];
|
|
57
|
+
if (template && !deployWorkspace) {
|
|
58
|
+
this.error('The --deploy-workspace (-d) flag is required when using a template.');
|
|
59
|
+
}
|
|
51
60
|
const backend = await getBackend();
|
|
52
61
|
const getWorkspaceEnvOutput = await backend.getWorkspaceEnv({ workspace });
|
|
53
62
|
if (!getWorkspaceEnvOutput.success) {
|
|
@@ -73,13 +82,14 @@ export default class DevenvProjectInit extends Command {
|
|
|
73
82
|
await fs.writeFile(tempKeyPath, sshPrivateKey);
|
|
74
83
|
await setKeyFilePermissions(tempKeyPath);
|
|
75
84
|
const templateFlag = template ? ` -t ${template}` : '';
|
|
85
|
+
const deployFlag = deployWorkspace ? ` -d ${deployWorkspace}` : '';
|
|
76
86
|
const paramFlags = (parameter ?? []).map((p) => ` -p ${p}`).join('');
|
|
77
87
|
let remoteScript;
|
|
78
88
|
if (template) {
|
|
79
89
|
// With template: hereya init creates dir via git clone, no need for mkdir
|
|
80
90
|
remoteScript = force
|
|
81
|
-
? `cd ~ && hereya init ${project} -w ${workspace}${templateFlag}${paramFlags}`
|
|
82
|
-
: `if [ -d ~/${project} ]; then echo "ERROR: Folder ~/${project} already exists. Use --force to continue." && exit 1; fi && cd ~ && hereya init ${project} -w ${workspace}${templateFlag}${paramFlags}`;
|
|
91
|
+
? `cd ~ && hereya init ${project} -w ${workspace}${templateFlag}${deployFlag}${paramFlags}`
|
|
92
|
+
: `if [ -d ~/${project} ]; then echo "ERROR: Folder ~/${project} already exists. Use --force to continue." && exit 1; fi && cd ~ && hereya init ${project} -w ${workspace}${templateFlag}${deployFlag}${paramFlags}`;
|
|
83
93
|
}
|
|
84
94
|
else {
|
|
85
95
|
// Without template: existing behavior (mkdir + cd + init)
|
|
@@ -7,6 +7,7 @@ export default class Init extends Command {
|
|
|
7
7
|
static examples: string[];
|
|
8
8
|
static flags: {
|
|
9
9
|
chdir: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'deploy-workspace': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
11
|
parameter: import("@oclif/core/interfaces").OptionFlag<string[], import("@oclif/core/interfaces").CustomOptions>;
|
|
11
12
|
template: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
13
|
workspace: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -17,14 +17,19 @@ export default class Init extends Command {
|
|
|
17
17
|
static examples = [
|
|
18
18
|
'<%= config.bin %> <%= command.id %> myProject -w=defaultWorkspace',
|
|
19
19
|
'<%= config.bin %> <%= command.id %> myProject -w=defaultWorkspace --chdir=./myProject',
|
|
20
|
-
'<%= config.bin %> <%= command.id %> myProject -w=dev -t=acme/node-starter',
|
|
21
|
-
'<%= config.bin %> <%= command.id %> myProject -w=dev -t=acme/node-starter -p region=us-east-1',
|
|
20
|
+
'<%= config.bin %> <%= command.id %> myProject -w=dev -t=acme/node-starter -d=prod',
|
|
21
|
+
'<%= config.bin %> <%= command.id %> myProject -w=dev -t=acme/node-starter -d=prod -p region=us-east-1',
|
|
22
22
|
];
|
|
23
23
|
static flags = {
|
|
24
24
|
chdir: Flags.string({
|
|
25
25
|
description: 'directory to run command in',
|
|
26
26
|
required: false,
|
|
27
27
|
}),
|
|
28
|
+
'deploy-workspace': Flags.string({
|
|
29
|
+
char: 'd',
|
|
30
|
+
description: 'workspace used for deployment (required when using a template)',
|
|
31
|
+
required: false,
|
|
32
|
+
}),
|
|
28
33
|
parameter: Flags.string({
|
|
29
34
|
char: 'p',
|
|
30
35
|
default: [],
|
|
@@ -47,6 +52,9 @@ export default class Init extends Command {
|
|
|
47
52
|
const projectRootDir = flags.chdir || process.env.HEREYA_PROJECT_ROOT_DIR;
|
|
48
53
|
// Template flow
|
|
49
54
|
if (flags.template) {
|
|
55
|
+
if (!flags['deploy-workspace']) {
|
|
56
|
+
this.error('The --deploy-workspace (-d) flag is required when using a template.');
|
|
57
|
+
}
|
|
50
58
|
const targetDir = projectRootDir || path.join(process.cwd(), args.project.replaceAll('/', '-'));
|
|
51
59
|
if (fs.existsSync(targetDir)) {
|
|
52
60
|
this.error(`Directory ${targetDir} already exists.`);
|
|
@@ -68,6 +76,7 @@ export default class Init extends Command {
|
|
|
68
76
|
const tokenResult = await hereyaTokenUtils.generateHereyaToken(`Template: ${args.project}`);
|
|
69
77
|
ctx.parameters = {
|
|
70
78
|
...userParams,
|
|
79
|
+
deployWorkspace: flags['deploy-workspace'],
|
|
71
80
|
projectName: args.project,
|
|
72
81
|
workspace: flags.workspace,
|
|
73
82
|
...(tokenResult ? { hereyaCloudUrl: tokenResult.cloudUrl, hereyaToken: tokenResult.token } : {}),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class Update extends Command {
|
|
3
|
+
static args: {
|
|
4
|
+
version: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
8
|
+
run(): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Args, Command } from '@oclif/core';
|
|
2
|
+
import { shellUtils } from '../../lib/shell.js';
|
|
3
|
+
export default class Update extends Command {
|
|
4
|
+
static args = {
|
|
5
|
+
version: Args.string({
|
|
6
|
+
default: 'latest',
|
|
7
|
+
description: 'version to update to',
|
|
8
|
+
required: false,
|
|
9
|
+
}),
|
|
10
|
+
};
|
|
11
|
+
static description = 'Update hereya CLI to the latest or a specific version.';
|
|
12
|
+
static examples = [
|
|
13
|
+
'<%= config.bin %> <%= command.id %>',
|
|
14
|
+
'<%= config.bin %> <%= command.id %> 0.75.0',
|
|
15
|
+
];
|
|
16
|
+
async run() {
|
|
17
|
+
const { args } = await this.parse(Update);
|
|
18
|
+
const target = args.version;
|
|
19
|
+
const currentVersion = this.config.version;
|
|
20
|
+
this.log(`Current version: ${currentVersion}`);
|
|
21
|
+
this.log(`Updating to ${target}...`);
|
|
22
|
+
try {
|
|
23
|
+
await shellUtils.runShell('npm', ['install', '-g', `hereya-cli@${target}`]);
|
|
24
|
+
// Get the new version after install
|
|
25
|
+
const { stdout } = await shellUtils.runShell('hereya', ['--version']);
|
|
26
|
+
const newVersion = stdout.trim();
|
|
27
|
+
if (newVersion === currentVersion && target === 'latest') {
|
|
28
|
+
this.log(`Already at the latest version (${currentVersion}).`);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
this.log(`Updated to ${newVersion}.`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
this.error(`Failed to update: ${error.message}`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
package/dist/lib/shell.d.ts
CHANGED
|
@@ -13,4 +13,7 @@ export declare function runShell(cmd: string, args: string[], options?: RunShell
|
|
|
13
13
|
stderr: string;
|
|
14
14
|
stdout: string;
|
|
15
15
|
}>;
|
|
16
|
+
export declare const shellUtils: {
|
|
17
|
+
runShell: typeof runShell;
|
|
18
|
+
};
|
|
16
19
|
export declare function delay(ms: number): Promise<unknown> | undefined;
|
package/dist/lib/shell.js
CHANGED
|
@@ -57,6 +57,10 @@ export async function runShell(cmd, args, options = {}) {
|
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
+
// Stubbable wrapper around runShell for use in tests.
|
|
61
|
+
export const shellUtils = {
|
|
62
|
+
runShell,
|
|
63
|
+
};
|
|
60
64
|
export function delay(ms) {
|
|
61
65
|
if (process.env.NODE_ENV === 'test') {
|
|
62
66
|
return;
|
package/oclif.manifest.json
CHANGED
|
@@ -1,44 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"bootstrap": {
|
|
4
|
-
"aliases": [],
|
|
5
|
-
"args": {
|
|
6
|
-
"infrastructureType": {
|
|
7
|
-
"description": "infrastructure to bootstrap. Options are local, aws",
|
|
8
|
-
"name": "infrastructureType",
|
|
9
|
-
"required": true
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"description": "Install necessary resources for hereya operations in an infrastructure.",
|
|
13
|
-
"examples": [
|
|
14
|
-
"<%= config.bin %> <%= command.id %> aws",
|
|
15
|
-
"<%= config.bin %> <%= command.id %> local"
|
|
16
|
-
],
|
|
17
|
-
"flags": {
|
|
18
|
-
"force": {
|
|
19
|
-
"char": "f",
|
|
20
|
-
"description": "redeploy hereya resources if already deployed",
|
|
21
|
-
"name": "force",
|
|
22
|
-
"allowNo": false,
|
|
23
|
-
"type": "boolean"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"hasDynamicHelp": false,
|
|
27
|
-
"hiddenAliases": [],
|
|
28
|
-
"id": "bootstrap",
|
|
29
|
-
"pluginAlias": "hereya-cli",
|
|
30
|
-
"pluginName": "hereya-cli",
|
|
31
|
-
"pluginType": "core",
|
|
32
|
-
"strict": true,
|
|
33
|
-
"enableJsonFlag": false,
|
|
34
|
-
"isESM": true,
|
|
35
|
-
"relativePath": [
|
|
36
|
-
"dist",
|
|
37
|
-
"commands",
|
|
38
|
-
"bootstrap",
|
|
39
|
-
"index.js"
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
3
|
"add": {
|
|
43
4
|
"aliases": [],
|
|
44
5
|
"args": {
|
|
@@ -102,6 +63,45 @@
|
|
|
102
63
|
"index.js"
|
|
103
64
|
]
|
|
104
65
|
},
|
|
66
|
+
"bootstrap": {
|
|
67
|
+
"aliases": [],
|
|
68
|
+
"args": {
|
|
69
|
+
"infrastructureType": {
|
|
70
|
+
"description": "infrastructure to bootstrap. Options are local, aws",
|
|
71
|
+
"name": "infrastructureType",
|
|
72
|
+
"required": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"description": "Install necessary resources for hereya operations in an infrastructure.",
|
|
76
|
+
"examples": [
|
|
77
|
+
"<%= config.bin %> <%= command.id %> aws",
|
|
78
|
+
"<%= config.bin %> <%= command.id %> local"
|
|
79
|
+
],
|
|
80
|
+
"flags": {
|
|
81
|
+
"force": {
|
|
82
|
+
"char": "f",
|
|
83
|
+
"description": "redeploy hereya resources if already deployed",
|
|
84
|
+
"name": "force",
|
|
85
|
+
"allowNo": false,
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"hasDynamicHelp": false,
|
|
90
|
+
"hiddenAliases": [],
|
|
91
|
+
"id": "bootstrap",
|
|
92
|
+
"pluginAlias": "hereya-cli",
|
|
93
|
+
"pluginName": "hereya-cli",
|
|
94
|
+
"pluginType": "core",
|
|
95
|
+
"strict": true,
|
|
96
|
+
"enableJsonFlag": false,
|
|
97
|
+
"isESM": true,
|
|
98
|
+
"relativePath": [
|
|
99
|
+
"dist",
|
|
100
|
+
"commands",
|
|
101
|
+
"bootstrap",
|
|
102
|
+
"index.js"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
105
|
"credential-helper": {
|
|
106
106
|
"aliases": [],
|
|
107
107
|
"args": {
|
|
@@ -130,12 +130,13 @@
|
|
|
130
130
|
"index.js"
|
|
131
131
|
]
|
|
132
132
|
},
|
|
133
|
-
"
|
|
133
|
+
"delete-state": {
|
|
134
134
|
"aliases": [],
|
|
135
135
|
"args": {},
|
|
136
|
-
"description": "
|
|
136
|
+
"description": "Delete the remote state of a project for a given workspace",
|
|
137
137
|
"examples": [
|
|
138
|
-
"<%= config.bin %> <%= command.id %>"
|
|
138
|
+
"<%= config.bin %> <%= command.id %> -w dev",
|
|
139
|
+
"<%= config.bin %> <%= command.id %> --workspace staging"
|
|
139
140
|
],
|
|
140
141
|
"flags": {
|
|
141
142
|
"chdir": {
|
|
@@ -146,15 +147,9 @@
|
|
|
146
147
|
"multiple": false,
|
|
147
148
|
"type": "option"
|
|
148
149
|
},
|
|
149
|
-
"debug": {
|
|
150
|
-
"description": "enable debug mode",
|
|
151
|
-
"name": "debug",
|
|
152
|
-
"allowNo": false,
|
|
153
|
-
"type": "boolean"
|
|
154
|
-
},
|
|
155
150
|
"workspace": {
|
|
156
151
|
"char": "w",
|
|
157
|
-
"description": "
|
|
152
|
+
"description": "workspace name",
|
|
158
153
|
"name": "workspace",
|
|
159
154
|
"required": true,
|
|
160
155
|
"hasDynamicHelp": false,
|
|
@@ -164,7 +159,7 @@
|
|
|
164
159
|
},
|
|
165
160
|
"hasDynamicHelp": false,
|
|
166
161
|
"hiddenAliases": [],
|
|
167
|
-
"id": "
|
|
162
|
+
"id": "delete-state",
|
|
168
163
|
"pluginAlias": "hereya-cli",
|
|
169
164
|
"pluginName": "hereya-cli",
|
|
170
165
|
"pluginType": "core",
|
|
@@ -174,17 +169,16 @@
|
|
|
174
169
|
"relativePath": [
|
|
175
170
|
"dist",
|
|
176
171
|
"commands",
|
|
177
|
-
"
|
|
172
|
+
"delete-state",
|
|
178
173
|
"index.js"
|
|
179
174
|
]
|
|
180
175
|
},
|
|
181
|
-
"
|
|
176
|
+
"deploy": {
|
|
182
177
|
"aliases": [],
|
|
183
178
|
"args": {},
|
|
184
|
-
"description": "
|
|
179
|
+
"description": "Deploy a hereya project using the project deployment package",
|
|
185
180
|
"examples": [
|
|
186
|
-
"<%= config.bin %> <%= command.id %>
|
|
187
|
-
"<%= config.bin %> <%= command.id %> --workspace staging"
|
|
181
|
+
"<%= config.bin %> <%= command.id %>"
|
|
188
182
|
],
|
|
189
183
|
"flags": {
|
|
190
184
|
"chdir": {
|
|
@@ -195,9 +189,15 @@
|
|
|
195
189
|
"multiple": false,
|
|
196
190
|
"type": "option"
|
|
197
191
|
},
|
|
192
|
+
"debug": {
|
|
193
|
+
"description": "enable debug mode",
|
|
194
|
+
"name": "debug",
|
|
195
|
+
"allowNo": false,
|
|
196
|
+
"type": "boolean"
|
|
197
|
+
},
|
|
198
198
|
"workspace": {
|
|
199
199
|
"char": "w",
|
|
200
|
-
"description": "workspace
|
|
200
|
+
"description": "name of the workspace to deploy the packages for",
|
|
201
201
|
"name": "workspace",
|
|
202
202
|
"required": true,
|
|
203
203
|
"hasDynamicHelp": false,
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
},
|
|
208
208
|
"hasDynamicHelp": false,
|
|
209
209
|
"hiddenAliases": [],
|
|
210
|
-
"id": "
|
|
210
|
+
"id": "deploy",
|
|
211
211
|
"pluginAlias": "hereya-cli",
|
|
212
212
|
"pluginName": "hereya-cli",
|
|
213
213
|
"pluginType": "core",
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"relativePath": [
|
|
218
218
|
"dist",
|
|
219
219
|
"commands",
|
|
220
|
-
"
|
|
220
|
+
"deploy",
|
|
221
221
|
"index.js"
|
|
222
222
|
]
|
|
223
223
|
},
|
|
@@ -488,8 +488,8 @@
|
|
|
488
488
|
"examples": [
|
|
489
489
|
"<%= config.bin %> <%= command.id %> myProject -w=defaultWorkspace",
|
|
490
490
|
"<%= config.bin %> <%= command.id %> myProject -w=defaultWorkspace --chdir=./myProject",
|
|
491
|
-
"<%= config.bin %> <%= command.id %> myProject -w=dev -t=acme/node-starter",
|
|
492
|
-
"<%= config.bin %> <%= command.id %> myProject -w=dev -t=acme/node-starter -p region=us-east-1"
|
|
491
|
+
"<%= config.bin %> <%= command.id %> myProject -w=dev -t=acme/node-starter -d=prod",
|
|
492
|
+
"<%= config.bin %> <%= command.id %> myProject -w=dev -t=acme/node-starter -d=prod -p region=us-east-1"
|
|
493
493
|
],
|
|
494
494
|
"flags": {
|
|
495
495
|
"chdir": {
|
|
@@ -500,6 +500,15 @@
|
|
|
500
500
|
"multiple": false,
|
|
501
501
|
"type": "option"
|
|
502
502
|
},
|
|
503
|
+
"deploy-workspace": {
|
|
504
|
+
"char": "d",
|
|
505
|
+
"description": "workspace used for deployment (required when using a template)",
|
|
506
|
+
"name": "deploy-workspace",
|
|
507
|
+
"required": false,
|
|
508
|
+
"hasDynamicHelp": false,
|
|
509
|
+
"multiple": false,
|
|
510
|
+
"type": "option"
|
|
511
|
+
},
|
|
503
512
|
"parameter": {
|
|
504
513
|
"char": "p",
|
|
505
514
|
"description": "template parameter, in the form of 'key=value'. Can be specified multiple times.",
|
|
@@ -1068,6 +1077,38 @@
|
|
|
1068
1077
|
"index.js"
|
|
1069
1078
|
]
|
|
1070
1079
|
},
|
|
1080
|
+
"update": {
|
|
1081
|
+
"aliases": [],
|
|
1082
|
+
"args": {
|
|
1083
|
+
"version": {
|
|
1084
|
+
"default": "latest",
|
|
1085
|
+
"description": "version to update to",
|
|
1086
|
+
"name": "version",
|
|
1087
|
+
"required": false
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
"description": "Update hereya CLI to the latest or a specific version.",
|
|
1091
|
+
"examples": [
|
|
1092
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1093
|
+
"<%= config.bin %> <%= command.id %> 0.75.0"
|
|
1094
|
+
],
|
|
1095
|
+
"flags": {},
|
|
1096
|
+
"hasDynamicHelp": false,
|
|
1097
|
+
"hiddenAliases": [],
|
|
1098
|
+
"id": "update",
|
|
1099
|
+
"pluginAlias": "hereya-cli",
|
|
1100
|
+
"pluginName": "hereya-cli",
|
|
1101
|
+
"pluginType": "core",
|
|
1102
|
+
"strict": true,
|
|
1103
|
+
"enableJsonFlag": false,
|
|
1104
|
+
"isESM": true,
|
|
1105
|
+
"relativePath": [
|
|
1106
|
+
"dist",
|
|
1107
|
+
"commands",
|
|
1108
|
+
"update",
|
|
1109
|
+
"index.js"
|
|
1110
|
+
]
|
|
1111
|
+
},
|
|
1071
1112
|
"config:export-backend": {
|
|
1072
1113
|
"aliases": [],
|
|
1073
1114
|
"args": {
|
|
@@ -2349,6 +2390,15 @@
|
|
|
2349
2390
|
"<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter -p region=us-east-1"
|
|
2350
2391
|
],
|
|
2351
2392
|
"flags": {
|
|
2393
|
+
"deploy-workspace": {
|
|
2394
|
+
"char": "d",
|
|
2395
|
+
"description": "workspace used for deployment (required when using a template)",
|
|
2396
|
+
"name": "deploy-workspace",
|
|
2397
|
+
"required": false,
|
|
2398
|
+
"hasDynamicHelp": false,
|
|
2399
|
+
"multiple": false,
|
|
2400
|
+
"type": "option"
|
|
2401
|
+
},
|
|
2352
2402
|
"force": {
|
|
2353
2403
|
"char": "f",
|
|
2354
2404
|
"description": "continue even if folder already exists",
|
|
@@ -2755,5 +2805,5 @@
|
|
|
2755
2805
|
]
|
|
2756
2806
|
}
|
|
2757
2807
|
},
|
|
2758
|
-
"version": "0.
|
|
2808
|
+
"version": "0.75.0"
|
|
2759
2809
|
}
|