hereya-cli 0.73.4 → 0.74.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
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.74.0 linux-x64 node-v24.14.0
|
|
25
25
|
$ hereya --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ hereya COMMAND
|
|
@@ -117,7 +117,7 @@ EXAMPLES
|
|
|
117
117
|
$ hereya add cloudy/docker_postgres
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
120
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/add/index.ts)_
|
|
121
121
|
|
|
122
122
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
123
123
|
|
|
@@ -142,7 +142,7 @@ EXAMPLES
|
|
|
142
142
|
$ hereya bootstrap local
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
145
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/bootstrap/index.ts)_
|
|
146
146
|
|
|
147
147
|
## `hereya config export-backend [FILE]`
|
|
148
148
|
|
|
@@ -164,7 +164,7 @@ EXAMPLES
|
|
|
164
164
|
$ hereya config export-backend ./path/to/export.json
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
167
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/config/export-backend/index.ts)_
|
|
168
168
|
|
|
169
169
|
## `hereya config get-backend`
|
|
170
170
|
|
|
@@ -181,7 +181,7 @@ EXAMPLES
|
|
|
181
181
|
$ hereya config get-backend
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
184
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/config/get-backend/index.ts)_
|
|
185
185
|
|
|
186
186
|
## `hereya config import-backend FILE`
|
|
187
187
|
|
|
@@ -201,7 +201,7 @@ EXAMPLES
|
|
|
201
201
|
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
202
202
|
```
|
|
203
203
|
|
|
204
|
-
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
204
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/config/import-backend/index.ts)_
|
|
205
205
|
|
|
206
206
|
## `hereya config use-backend TYPE`
|
|
207
207
|
|
|
@@ -223,7 +223,7 @@ EXAMPLES
|
|
|
223
223
|
$ hereya config use-backend local
|
|
224
224
|
```
|
|
225
225
|
|
|
226
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
226
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/config/use-backend/index.ts)_
|
|
227
227
|
|
|
228
228
|
## `hereya delete-state`
|
|
229
229
|
|
|
@@ -249,7 +249,7 @@ EXAMPLES
|
|
|
249
249
|
$ hereya delete-state --workspace staging
|
|
250
250
|
```
|
|
251
251
|
|
|
252
|
-
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
252
|
+
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/delete-state/index.ts)_
|
|
253
253
|
|
|
254
254
|
## `hereya deploy`
|
|
255
255
|
|
|
@@ -274,7 +274,7 @@ EXAMPLES
|
|
|
274
274
|
$ hereya deploy
|
|
275
275
|
```
|
|
276
276
|
|
|
277
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
277
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/deploy/index.ts)_
|
|
278
278
|
|
|
279
279
|
## `hereya devenv config`
|
|
280
280
|
|
|
@@ -294,7 +294,7 @@ EXAMPLES
|
|
|
294
294
|
$ hereya devenv config -w my-workspace
|
|
295
295
|
```
|
|
296
296
|
|
|
297
|
-
_See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
297
|
+
_See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/config/index.ts)_
|
|
298
298
|
|
|
299
299
|
## `hereya devenv install`
|
|
300
300
|
|
|
@@ -319,7 +319,7 @@ EXAMPLES
|
|
|
319
319
|
$ hereya devenv install -w my-workspace -p instanceType=t3.large
|
|
320
320
|
```
|
|
321
321
|
|
|
322
|
-
_See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
322
|
+
_See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/install/index.ts)_
|
|
323
323
|
|
|
324
324
|
## `hereya devenv project init PROJECT`
|
|
325
325
|
|
|
@@ -327,17 +327,18 @@ Initialize a project on a remote dev environment.
|
|
|
327
327
|
|
|
328
328
|
```
|
|
329
329
|
USAGE
|
|
330
|
-
$ hereya devenv project init PROJECT -w <value> [-f] [-p <value>...] [-t <value>]
|
|
330
|
+
$ hereya devenv project init PROJECT -w <value> [-d <value>] [-f] [-p <value>...] [-t <value>]
|
|
331
331
|
|
|
332
332
|
ARGUMENTS
|
|
333
333
|
PROJECT project name
|
|
334
334
|
|
|
335
335
|
FLAGS
|
|
336
|
-
-
|
|
337
|
-
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
-
|
|
336
|
+
-d, --deploy-workspace=<value> workspace used for deployment (required when using a template)
|
|
337
|
+
-f, --force continue even if folder already exists
|
|
338
|
+
-p, --parameter=<value>... [default: ] parameter for the template, in the form of 'key=value'. Can be specified
|
|
339
|
+
multiple times.
|
|
340
|
+
-t, --template=<value> template package to scaffold the project from
|
|
341
|
+
-w, --workspace=<value> (required) name of the workspace
|
|
341
342
|
|
|
342
343
|
DESCRIPTION
|
|
343
344
|
Initialize a project on a remote dev environment.
|
|
@@ -350,7 +351,7 @@ EXAMPLES
|
|
|
350
351
|
$ hereya devenv project init my-app -w my-workspace -t acme/node-starter -p region=us-east-1
|
|
351
352
|
```
|
|
352
353
|
|
|
353
|
-
_See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
354
|
+
_See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/project/init/index.ts)_
|
|
354
355
|
|
|
355
356
|
## `hereya devenv project uninit PROJECT`
|
|
356
357
|
|
|
@@ -376,7 +377,7 @@ EXAMPLES
|
|
|
376
377
|
$ hereya devenv project uninit my-app -w my-workspace --force
|
|
377
378
|
```
|
|
378
379
|
|
|
379
|
-
_See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
380
|
+
_See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/project/uninit/index.ts)_
|
|
380
381
|
|
|
381
382
|
## `hereya devenv ssh`
|
|
382
383
|
|
|
@@ -396,7 +397,7 @@ EXAMPLES
|
|
|
396
397
|
$ hereya devenv ssh -w my-workspace
|
|
397
398
|
```
|
|
398
399
|
|
|
399
|
-
_See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
400
|
+
_See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/ssh/index.ts)_
|
|
400
401
|
|
|
401
402
|
## `hereya devenv uninstall`
|
|
402
403
|
|
|
@@ -417,7 +418,7 @@ EXAMPLES
|
|
|
417
418
|
$ hereya devenv uninstall -w my-workspace
|
|
418
419
|
```
|
|
419
420
|
|
|
420
|
-
_See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
421
|
+
_See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/uninstall/index.ts)_
|
|
421
422
|
|
|
422
423
|
## `hereya doc PACKAGE`
|
|
423
424
|
|
|
@@ -450,7 +451,7 @@ EXAMPLES
|
|
|
450
451
|
$ hereya doc my-package --no-doc
|
|
451
452
|
```
|
|
452
453
|
|
|
453
|
-
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
454
|
+
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/doc/index.ts)_
|
|
454
455
|
|
|
455
456
|
## `hereya docker run IMAGE`
|
|
456
457
|
|
|
@@ -481,7 +482,7 @@ EXAMPLES
|
|
|
481
482
|
$ hereya docker run myapp:latest -- --rm -v ./data:/data
|
|
482
483
|
```
|
|
483
484
|
|
|
484
|
-
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
485
|
+
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/docker/run/index.ts)_
|
|
485
486
|
|
|
486
487
|
## `hereya down`
|
|
487
488
|
|
|
@@ -508,7 +509,7 @@ EXAMPLES
|
|
|
508
509
|
$ hereya down
|
|
509
510
|
```
|
|
510
511
|
|
|
511
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
512
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/down/index.ts)_
|
|
512
513
|
|
|
513
514
|
## `hereya env [NAME]`
|
|
514
515
|
|
|
@@ -539,7 +540,7 @@ EXAMPLES
|
|
|
539
540
|
$ hereya env -w dev -l
|
|
540
541
|
```
|
|
541
542
|
|
|
542
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
543
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/env/index.ts)_
|
|
543
544
|
|
|
544
545
|
## `hereya env set [NAME]`
|
|
545
546
|
|
|
@@ -566,7 +567,7 @@ EXAMPLES
|
|
|
566
567
|
$ hereya env set FOO -v bar -w dev
|
|
567
568
|
```
|
|
568
569
|
|
|
569
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
570
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/env/set/index.ts)_
|
|
570
571
|
|
|
571
572
|
## `hereya executor start`
|
|
572
573
|
|
|
@@ -599,7 +600,7 @@ EXAMPLES
|
|
|
599
600
|
HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
|
|
600
601
|
```
|
|
601
602
|
|
|
602
|
-
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
603
|
+
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/executor/start/index.ts)_
|
|
603
604
|
|
|
604
605
|
## `hereya flow add PACKAGE`
|
|
605
606
|
|
|
@@ -637,7 +638,7 @@ EXAMPLES
|
|
|
637
638
|
$ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
|
|
638
639
|
```
|
|
639
640
|
|
|
640
|
-
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
641
|
+
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/add/index.ts)_
|
|
641
642
|
|
|
642
643
|
## `hereya flow docker run IMAGE`
|
|
643
644
|
|
|
@@ -667,7 +668,7 @@ EXAMPLES
|
|
|
667
668
|
$ hereya flow docker run --pin myapp:latest -- --rm
|
|
668
669
|
```
|
|
669
670
|
|
|
670
|
-
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
671
|
+
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/docker/run/index.ts)_
|
|
671
672
|
|
|
672
673
|
## `hereya flow down`
|
|
673
674
|
|
|
@@ -701,7 +702,7 @@ EXAMPLES
|
|
|
701
702
|
$ hereya flow down --pin
|
|
702
703
|
```
|
|
703
704
|
|
|
704
|
-
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
705
|
+
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/down/index.ts)_
|
|
705
706
|
|
|
706
707
|
## `hereya flow env [NAME]`
|
|
707
708
|
|
|
@@ -735,7 +736,7 @@ EXAMPLES
|
|
|
735
736
|
$ hereya flow env -l
|
|
736
737
|
```
|
|
737
738
|
|
|
738
|
-
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
739
|
+
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/env/index.ts)_
|
|
739
740
|
|
|
740
741
|
## `hereya flow provid PACKAGE`
|
|
741
742
|
|
|
@@ -764,7 +765,7 @@ EXAMPLES
|
|
|
764
765
|
$ hereya flow provid hereya/postgres --pin
|
|
765
766
|
```
|
|
766
767
|
|
|
767
|
-
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
768
|
+
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/provid/index.ts)_
|
|
768
769
|
|
|
769
770
|
## `hereya flow remove PACKAGE`
|
|
770
771
|
|
|
@@ -794,7 +795,7 @@ EXAMPLES
|
|
|
794
795
|
$ hereya flow remove cloudy/docker_postgres --profile staging
|
|
795
796
|
```
|
|
796
797
|
|
|
797
|
-
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
798
|
+
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/remove/index.ts)_
|
|
798
799
|
|
|
799
800
|
## `hereya flow run CMD`
|
|
800
801
|
|
|
@@ -823,7 +824,7 @@ EXAMPLES
|
|
|
823
824
|
$ hereya flow run --pin -- npm test
|
|
824
825
|
```
|
|
825
826
|
|
|
826
|
-
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
827
|
+
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/run/index.ts)_
|
|
827
828
|
|
|
828
829
|
## `hereya flow up`
|
|
829
830
|
|
|
@@ -857,7 +858,7 @@ EXAMPLES
|
|
|
857
858
|
$ hereya flow up --pin
|
|
858
859
|
```
|
|
859
860
|
|
|
860
|
-
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
861
|
+
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/up/index.ts)_
|
|
861
862
|
|
|
862
863
|
## `hereya help [COMMAND]`
|
|
863
864
|
|
|
@@ -914,7 +915,7 @@ EXAMPLES
|
|
|
914
915
|
$ hereya import org/my-package -f state.tfstate -w my-workspace
|
|
915
916
|
```
|
|
916
917
|
|
|
917
|
-
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
918
|
+
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/import/index.ts)_
|
|
918
919
|
|
|
919
920
|
## `hereya init PROJECT`
|
|
920
921
|
|
|
@@ -922,17 +923,18 @@ Initialize hereya in a project directory.
|
|
|
922
923
|
|
|
923
924
|
```
|
|
924
925
|
USAGE
|
|
925
|
-
$ hereya init PROJECT -w <value> [--chdir <value>] [-p <value>...] [-t <value>]
|
|
926
|
+
$ hereya init PROJECT -w <value> [--chdir <value>] [-d <value>] [-p <value>...] [-t <value>]
|
|
926
927
|
|
|
927
928
|
ARGUMENTS
|
|
928
929
|
PROJECT project name
|
|
929
930
|
|
|
930
931
|
FLAGS
|
|
931
|
-
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
-
|
|
935
|
-
|
|
932
|
+
-d, --deploy-workspace=<value> workspace used for deployment (required when using a template)
|
|
933
|
+
-p, --parameter=<value>... [default: ] template parameter, in the form of 'key=value'. Can be specified multiple
|
|
934
|
+
times.
|
|
935
|
+
-t, --template=<value> template package name (e.g. owner/repo)
|
|
936
|
+
-w, --workspace=<value> (required) workspace to set as default
|
|
937
|
+
--chdir=<value> directory to run command in
|
|
936
938
|
|
|
937
939
|
DESCRIPTION
|
|
938
940
|
Initialize hereya in a project directory.
|
|
@@ -942,12 +944,12 @@ EXAMPLES
|
|
|
942
944
|
|
|
943
945
|
$ hereya init myProject -w=defaultWorkspace --chdir=./myProject
|
|
944
946
|
|
|
945
|
-
$ hereya init myProject -w=dev -t=acme/node-starter
|
|
947
|
+
$ hereya init myProject -w=dev -t=acme/node-starter -d=prod
|
|
946
948
|
|
|
947
|
-
$ hereya init myProject -w=dev -t=acme/node-starter -p region=us-east-1
|
|
949
|
+
$ hereya init myProject -w=dev -t=acme/node-starter -d=prod -p region=us-east-1
|
|
948
950
|
```
|
|
949
951
|
|
|
950
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
952
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/init/index.ts)_
|
|
951
953
|
|
|
952
954
|
## `hereya login [URL]`
|
|
953
955
|
|
|
@@ -976,7 +978,7 @@ EXAMPLES
|
|
|
976
978
|
$ hereya login --token=your-token https://cloud.hereya.dev
|
|
977
979
|
```
|
|
978
980
|
|
|
979
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
981
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/login/index.ts)_
|
|
980
982
|
|
|
981
983
|
## `hereya logout`
|
|
982
984
|
|
|
@@ -993,7 +995,7 @@ EXAMPLES
|
|
|
993
995
|
$ hereya logout
|
|
994
996
|
```
|
|
995
997
|
|
|
996
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
998
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/logout/index.ts)_
|
|
997
999
|
|
|
998
1000
|
## `hereya provid PACKAGE`
|
|
999
1001
|
|
|
@@ -1021,7 +1023,7 @@ EXAMPLES
|
|
|
1021
1023
|
$ hereya provid hereya/postgres --workspace staging
|
|
1022
1024
|
```
|
|
1023
1025
|
|
|
1024
|
-
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1026
|
+
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/provid/index.ts)_
|
|
1025
1027
|
|
|
1026
1028
|
## `hereya publish`
|
|
1027
1029
|
|
|
@@ -1044,7 +1046,7 @@ EXAMPLES
|
|
|
1044
1046
|
$ hereya publish --chdir=/path/to/package
|
|
1045
1047
|
```
|
|
1046
1048
|
|
|
1047
|
-
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1049
|
+
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/publish/index.ts)_
|
|
1048
1050
|
|
|
1049
1051
|
## `hereya remove PACKAGE`
|
|
1050
1052
|
|
|
@@ -1072,7 +1074,7 @@ EXAMPLES
|
|
|
1072
1074
|
$ hereya remove cloudy/docker_postgres
|
|
1073
1075
|
```
|
|
1074
1076
|
|
|
1075
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1077
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/remove/index.ts)_
|
|
1076
1078
|
|
|
1077
1079
|
## `hereya run CMD`
|
|
1078
1080
|
|
|
@@ -1098,7 +1100,7 @@ EXAMPLES
|
|
|
1098
1100
|
$ hereya run -w uat -- node index.js
|
|
1099
1101
|
```
|
|
1100
1102
|
|
|
1101
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1103
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/run/index.ts)_
|
|
1102
1104
|
|
|
1103
1105
|
## `hereya search QUERY`
|
|
1104
1106
|
|
|
@@ -1129,7 +1131,7 @@ EXAMPLES
|
|
|
1129
1131
|
$ hereya search database --json
|
|
1130
1132
|
```
|
|
1131
1133
|
|
|
1132
|
-
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1134
|
+
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/search/index.ts)_
|
|
1133
1135
|
|
|
1134
1136
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
1135
1137
|
|
|
@@ -1154,7 +1156,7 @@ EXAMPLES
|
|
|
1154
1156
|
$ hereya unbootstrap local
|
|
1155
1157
|
```
|
|
1156
1158
|
|
|
1157
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1159
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/unbootstrap/index.ts)_
|
|
1158
1160
|
|
|
1159
1161
|
## `hereya undeploy`
|
|
1160
1162
|
|
|
@@ -1179,7 +1181,7 @@ EXAMPLES
|
|
|
1179
1181
|
$ hereya undeploy
|
|
1180
1182
|
```
|
|
1181
1183
|
|
|
1182
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1184
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/undeploy/index.ts)_
|
|
1183
1185
|
|
|
1184
1186
|
## `hereya uninit PROJECT`
|
|
1185
1187
|
|
|
@@ -1207,7 +1209,7 @@ EXAMPLES
|
|
|
1207
1209
|
$ hereya uninit myProject -w dev -p prodWorkspace=prod
|
|
1208
1210
|
```
|
|
1209
1211
|
|
|
1210
|
-
_See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1212
|
+
_See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/uninit/index.ts)_
|
|
1211
1213
|
|
|
1212
1214
|
## `hereya up`
|
|
1213
1215
|
|
|
@@ -1234,7 +1236,7 @@ EXAMPLES
|
|
|
1234
1236
|
$ hereya up
|
|
1235
1237
|
```
|
|
1236
1238
|
|
|
1237
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1239
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/up/index.ts)_
|
|
1238
1240
|
|
|
1239
1241
|
## `hereya workspace create NAME`
|
|
1240
1242
|
|
|
@@ -1259,7 +1261,7 @@ EXAMPLES
|
|
|
1259
1261
|
$ hereya workspace create dev
|
|
1260
1262
|
```
|
|
1261
1263
|
|
|
1262
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1264
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/create/index.ts)_
|
|
1263
1265
|
|
|
1264
1266
|
## `hereya workspace delete NAME`
|
|
1265
1267
|
|
|
@@ -1279,7 +1281,7 @@ EXAMPLES
|
|
|
1279
1281
|
$ hereya workspace delete dev
|
|
1280
1282
|
```
|
|
1281
1283
|
|
|
1282
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1284
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/delete/index.ts)_
|
|
1283
1285
|
|
|
1284
1286
|
## `hereya workspace env [NAME]`
|
|
1285
1287
|
|
|
@@ -1305,7 +1307,7 @@ EXAMPLES
|
|
|
1305
1307
|
$ hereya workspace env myEnv -w dev
|
|
1306
1308
|
```
|
|
1307
1309
|
|
|
1308
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1310
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/env/index.ts)_
|
|
1309
1311
|
|
|
1310
1312
|
## `hereya workspace env set`
|
|
1311
1313
|
|
|
@@ -1329,7 +1331,7 @@ EXAMPLES
|
|
|
1329
1331
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
1330
1332
|
```
|
|
1331
1333
|
|
|
1332
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1334
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/env/set/index.ts)_
|
|
1333
1335
|
|
|
1334
1336
|
## `hereya workspace env unset`
|
|
1335
1337
|
|
|
@@ -1350,7 +1352,7 @@ EXAMPLES
|
|
|
1350
1352
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
1351
1353
|
```
|
|
1352
1354
|
|
|
1353
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1355
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/env/unset/index.ts)_
|
|
1354
1356
|
|
|
1355
1357
|
## `hereya workspace executor install`
|
|
1356
1358
|
|
|
@@ -1369,7 +1371,7 @@ DESCRIPTION
|
|
|
1369
1371
|
Install a remote executor into a workspace
|
|
1370
1372
|
```
|
|
1371
1373
|
|
|
1372
|
-
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1374
|
+
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/executor/install/index.ts)_
|
|
1373
1375
|
|
|
1374
1376
|
## `hereya workspace executor token`
|
|
1375
1377
|
|
|
@@ -1386,7 +1388,7 @@ DESCRIPTION
|
|
|
1386
1388
|
Generate a workspace-scoped executor token for the remote executor
|
|
1387
1389
|
```
|
|
1388
1390
|
|
|
1389
|
-
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1391
|
+
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/executor/token/index.ts)_
|
|
1390
1392
|
|
|
1391
1393
|
## `hereya workspace executor uninstall`
|
|
1392
1394
|
|
|
@@ -1404,7 +1406,7 @@ DESCRIPTION
|
|
|
1404
1406
|
Uninstall the remote executor from a workspace
|
|
1405
1407
|
```
|
|
1406
1408
|
|
|
1407
|
-
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1409
|
+
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/executor/uninstall/index.ts)_
|
|
1408
1410
|
|
|
1409
1411
|
## `hereya workspace install PACKAGE`
|
|
1410
1412
|
|
|
@@ -1431,7 +1433,7 @@ EXAMPLES
|
|
|
1431
1433
|
$ hereya workspace install hereya/aws-cognito
|
|
1432
1434
|
```
|
|
1433
1435
|
|
|
1434
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1436
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/install/index.ts)_
|
|
1435
1437
|
|
|
1436
1438
|
## `hereya workspace list`
|
|
1437
1439
|
|
|
@@ -1455,7 +1457,7 @@ EXAMPLES
|
|
|
1455
1457
|
$ hereya workspace list --org personal
|
|
1456
1458
|
```
|
|
1457
1459
|
|
|
1458
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1460
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/list/index.ts)_
|
|
1459
1461
|
|
|
1460
1462
|
## `hereya workspace set-profile PROFILE`
|
|
1461
1463
|
|
|
@@ -1479,7 +1481,7 @@ EXAMPLES
|
|
|
1479
1481
|
$ hereya workspace set-profile prod-profile -w production
|
|
1480
1482
|
```
|
|
1481
1483
|
|
|
1482
|
-
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1484
|
+
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/set-profile/index.ts)_
|
|
1483
1485
|
|
|
1484
1486
|
## `hereya workspace uninstall PACKAGE`
|
|
1485
1487
|
|
|
@@ -1506,5 +1508,5 @@ EXAMPLES
|
|
|
1506
1508
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
1507
1509
|
```
|
|
1508
1510
|
|
|
1509
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1511
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/uninstall/index.ts)_
|
|
1510
1512
|
<!-- 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 } : {}),
|
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.",
|
|
@@ -2349,6 +2358,15 @@
|
|
|
2349
2358
|
"<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter -p region=us-east-1"
|
|
2350
2359
|
],
|
|
2351
2360
|
"flags": {
|
|
2361
|
+
"deploy-workspace": {
|
|
2362
|
+
"char": "d",
|
|
2363
|
+
"description": "workspace used for deployment (required when using a template)",
|
|
2364
|
+
"name": "deploy-workspace",
|
|
2365
|
+
"required": false,
|
|
2366
|
+
"hasDynamicHelp": false,
|
|
2367
|
+
"multiple": false,
|
|
2368
|
+
"type": "option"
|
|
2369
|
+
},
|
|
2352
2370
|
"force": {
|
|
2353
2371
|
"char": "f",
|
|
2354
2372
|
"description": "continue even if folder already exists",
|
|
@@ -2755,5 +2773,5 @@
|
|
|
2755
2773
|
]
|
|
2756
2774
|
}
|
|
2757
2775
|
},
|
|
2758
|
-
"version": "0.
|
|
2776
|
+
"version": "0.74.0"
|
|
2759
2777
|
}
|