hereya-cli 0.84.0 → 0.84.1
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 +64 -64
- package/dist/commands/executor/start/index.js +35 -0
- package/oclif.manifest.json +20 -20
- 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.84.
|
|
24
|
+
hereya-cli/0.84.1 linux-x64 node-v24.15.0
|
|
25
25
|
$ hereya --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ hereya COMMAND
|
|
@@ -127,7 +127,7 @@ EXAMPLES
|
|
|
127
127
|
$ hereya add cloudy/docker_postgres
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
130
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/add/index.ts)_
|
|
131
131
|
|
|
132
132
|
## `hereya app deploy NAME`
|
|
133
133
|
|
|
@@ -161,7 +161,7 @@ EXAMPLES
|
|
|
161
161
|
$ hereya app deploy my-org/my-app -w prod --vars-file ./hereyavars.yaml
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
_See code: [src/commands/app/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
164
|
+
_See code: [src/commands/app/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/app/deploy/index.ts)_
|
|
165
165
|
|
|
166
166
|
## `hereya app deployments NAME`
|
|
167
167
|
|
|
@@ -181,7 +181,7 @@ EXAMPLES
|
|
|
181
181
|
$ hereya app deployments my-org/my-app
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
_See code: [src/commands/app/deployments/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
184
|
+
_See code: [src/commands/app/deployments/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/app/deployments/index.ts)_
|
|
185
185
|
|
|
186
186
|
## `hereya app destroy NAME`
|
|
187
187
|
|
|
@@ -204,7 +204,7 @@ EXAMPLES
|
|
|
204
204
|
$ hereya app destroy my-org/my-app -w my-workspace
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
_See code: [src/commands/app/destroy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
207
|
+
_See code: [src/commands/app/destroy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/app/destroy/index.ts)_
|
|
208
208
|
|
|
209
209
|
## `hereya app env NAME [KEY]`
|
|
210
210
|
|
|
@@ -230,7 +230,7 @@ EXAMPLES
|
|
|
230
230
|
$ hereya app env my-org/my-app -w my-workspace DATABASE_URL
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
-
_See code: [src/commands/app/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
233
|
+
_See code: [src/commands/app/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/app/env/index.ts)_
|
|
234
234
|
|
|
235
235
|
## `hereya app list`
|
|
236
236
|
|
|
@@ -247,7 +247,7 @@ EXAMPLES
|
|
|
247
247
|
$ hereya app list
|
|
248
248
|
```
|
|
249
249
|
|
|
250
|
-
_See code: [src/commands/app/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
250
|
+
_See code: [src/commands/app/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/app/list/index.ts)_
|
|
251
251
|
|
|
252
252
|
## `hereya app new DIRNAME`
|
|
253
253
|
|
|
@@ -273,7 +273,7 @@ EXAMPLES
|
|
|
273
273
|
$ hereya app new ./my-app -n my-org/my-app --description "An ai-app-builder app"
|
|
274
274
|
```
|
|
275
275
|
|
|
276
|
-
_See code: [src/commands/app/new/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
276
|
+
_See code: [src/commands/app/new/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/app/new/index.ts)_
|
|
277
277
|
|
|
278
278
|
## `hereya app status NAME`
|
|
279
279
|
|
|
@@ -296,7 +296,7 @@ EXAMPLES
|
|
|
296
296
|
$ hereya app status my-org/my-app -w my-workspace
|
|
297
297
|
```
|
|
298
298
|
|
|
299
|
-
_See code: [src/commands/app/status/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
299
|
+
_See code: [src/commands/app/status/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/app/status/index.ts)_
|
|
300
300
|
|
|
301
301
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
302
302
|
|
|
@@ -321,7 +321,7 @@ EXAMPLES
|
|
|
321
321
|
$ hereya bootstrap local
|
|
322
322
|
```
|
|
323
323
|
|
|
324
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
324
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/bootstrap/index.ts)_
|
|
325
325
|
|
|
326
326
|
## `hereya clone PROJECT`
|
|
327
327
|
|
|
@@ -346,7 +346,7 @@ EXAMPLES
|
|
|
346
346
|
$ hereya clone myProject --chdir=./myProject
|
|
347
347
|
```
|
|
348
348
|
|
|
349
|
-
_See code: [src/commands/clone/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
349
|
+
_See code: [src/commands/clone/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/clone/index.ts)_
|
|
350
350
|
|
|
351
351
|
## `hereya config export-backend [FILE]`
|
|
352
352
|
|
|
@@ -368,7 +368,7 @@ EXAMPLES
|
|
|
368
368
|
$ hereya config export-backend ./path/to/export.json
|
|
369
369
|
```
|
|
370
370
|
|
|
371
|
-
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
371
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/config/export-backend/index.ts)_
|
|
372
372
|
|
|
373
373
|
## `hereya config get-backend`
|
|
374
374
|
|
|
@@ -385,7 +385,7 @@ EXAMPLES
|
|
|
385
385
|
$ hereya config get-backend
|
|
386
386
|
```
|
|
387
387
|
|
|
388
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
388
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/config/get-backend/index.ts)_
|
|
389
389
|
|
|
390
390
|
## `hereya config import-backend FILE`
|
|
391
391
|
|
|
@@ -405,7 +405,7 @@ EXAMPLES
|
|
|
405
405
|
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
406
406
|
```
|
|
407
407
|
|
|
408
|
-
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
408
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/config/import-backend/index.ts)_
|
|
409
409
|
|
|
410
410
|
## `hereya config use-backend TYPE`
|
|
411
411
|
|
|
@@ -427,7 +427,7 @@ EXAMPLES
|
|
|
427
427
|
$ hereya config use-backend local
|
|
428
428
|
```
|
|
429
429
|
|
|
430
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
430
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/config/use-backend/index.ts)_
|
|
431
431
|
|
|
432
432
|
## `hereya delete-state`
|
|
433
433
|
|
|
@@ -453,7 +453,7 @@ EXAMPLES
|
|
|
453
453
|
$ hereya delete-state --workspace staging
|
|
454
454
|
```
|
|
455
455
|
|
|
456
|
-
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
456
|
+
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/delete-state/index.ts)_
|
|
457
457
|
|
|
458
458
|
## `hereya deploy`
|
|
459
459
|
|
|
@@ -479,7 +479,7 @@ EXAMPLES
|
|
|
479
479
|
$ hereya deploy
|
|
480
480
|
```
|
|
481
481
|
|
|
482
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
482
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/deploy/index.ts)_
|
|
483
483
|
|
|
484
484
|
## `hereya devenv config`
|
|
485
485
|
|
|
@@ -499,7 +499,7 @@ EXAMPLES
|
|
|
499
499
|
$ hereya devenv config -w my-workspace
|
|
500
500
|
```
|
|
501
501
|
|
|
502
|
-
_See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
502
|
+
_See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/devenv/config/index.ts)_
|
|
503
503
|
|
|
504
504
|
## `hereya devenv install`
|
|
505
505
|
|
|
@@ -524,7 +524,7 @@ EXAMPLES
|
|
|
524
524
|
$ hereya devenv install -w my-workspace -p instanceType=t3.large
|
|
525
525
|
```
|
|
526
526
|
|
|
527
|
-
_See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
527
|
+
_See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/devenv/install/index.ts)_
|
|
528
528
|
|
|
529
529
|
## `hereya devenv project init PROJECT`
|
|
530
530
|
|
|
@@ -556,7 +556,7 @@ EXAMPLES
|
|
|
556
556
|
$ hereya devenv project init my-app -w my-workspace -t acme/node-starter -p region=us-east-1
|
|
557
557
|
```
|
|
558
558
|
|
|
559
|
-
_See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
559
|
+
_See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/devenv/project/init/index.ts)_
|
|
560
560
|
|
|
561
561
|
## `hereya devenv project uninit PROJECT`
|
|
562
562
|
|
|
@@ -582,7 +582,7 @@ EXAMPLES
|
|
|
582
582
|
$ hereya devenv project uninit my-app -w my-workspace --force
|
|
583
583
|
```
|
|
584
584
|
|
|
585
|
-
_See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
585
|
+
_See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/devenv/project/uninit/index.ts)_
|
|
586
586
|
|
|
587
587
|
## `hereya devenv ssh`
|
|
588
588
|
|
|
@@ -602,7 +602,7 @@ EXAMPLES
|
|
|
602
602
|
$ hereya devenv ssh -w my-workspace
|
|
603
603
|
```
|
|
604
604
|
|
|
605
|
-
_See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
605
|
+
_See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/devenv/ssh/index.ts)_
|
|
606
606
|
|
|
607
607
|
## `hereya devenv uninstall`
|
|
608
608
|
|
|
@@ -623,7 +623,7 @@ EXAMPLES
|
|
|
623
623
|
$ hereya devenv uninstall -w my-workspace
|
|
624
624
|
```
|
|
625
625
|
|
|
626
|
-
_See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
626
|
+
_See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/devenv/uninstall/index.ts)_
|
|
627
627
|
|
|
628
628
|
## `hereya doc PACKAGE`
|
|
629
629
|
|
|
@@ -656,7 +656,7 @@ EXAMPLES
|
|
|
656
656
|
$ hereya doc my-package --no-doc
|
|
657
657
|
```
|
|
658
658
|
|
|
659
|
-
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
659
|
+
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/doc/index.ts)_
|
|
660
660
|
|
|
661
661
|
## `hereya docker run IMAGE`
|
|
662
662
|
|
|
@@ -687,7 +687,7 @@ EXAMPLES
|
|
|
687
687
|
$ hereya docker run myapp:latest -- --rm -v ./data:/data
|
|
688
688
|
```
|
|
689
689
|
|
|
690
|
-
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
690
|
+
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/docker/run/index.ts)_
|
|
691
691
|
|
|
692
692
|
## `hereya down`
|
|
693
693
|
|
|
@@ -714,7 +714,7 @@ EXAMPLES
|
|
|
714
714
|
$ hereya down
|
|
715
715
|
```
|
|
716
716
|
|
|
717
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
717
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/down/index.ts)_
|
|
718
718
|
|
|
719
719
|
## `hereya env [NAME]`
|
|
720
720
|
|
|
@@ -745,7 +745,7 @@ EXAMPLES
|
|
|
745
745
|
$ hereya env -w dev -l
|
|
746
746
|
```
|
|
747
747
|
|
|
748
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
748
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/env/index.ts)_
|
|
749
749
|
|
|
750
750
|
## `hereya env set [NAME]`
|
|
751
751
|
|
|
@@ -772,7 +772,7 @@ EXAMPLES
|
|
|
772
772
|
$ hereya env set FOO -v bar -w dev
|
|
773
773
|
```
|
|
774
774
|
|
|
775
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
775
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/env/set/index.ts)_
|
|
776
776
|
|
|
777
777
|
## `hereya executor start`
|
|
778
778
|
|
|
@@ -805,7 +805,7 @@ EXAMPLES
|
|
|
805
805
|
HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
|
|
806
806
|
```
|
|
807
807
|
|
|
808
|
-
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
808
|
+
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/executor/start/index.ts)_
|
|
809
809
|
|
|
810
810
|
## `hereya flow add PACKAGE`
|
|
811
811
|
|
|
@@ -843,7 +843,7 @@ EXAMPLES
|
|
|
843
843
|
$ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
|
|
844
844
|
```
|
|
845
845
|
|
|
846
|
-
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
846
|
+
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/flow/add/index.ts)_
|
|
847
847
|
|
|
848
848
|
## `hereya flow docker run IMAGE`
|
|
849
849
|
|
|
@@ -873,7 +873,7 @@ EXAMPLES
|
|
|
873
873
|
$ hereya flow docker run --pin myapp:latest -- --rm
|
|
874
874
|
```
|
|
875
875
|
|
|
876
|
-
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
876
|
+
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/flow/docker/run/index.ts)_
|
|
877
877
|
|
|
878
878
|
## `hereya flow down`
|
|
879
879
|
|
|
@@ -907,7 +907,7 @@ EXAMPLES
|
|
|
907
907
|
$ hereya flow down --pin
|
|
908
908
|
```
|
|
909
909
|
|
|
910
|
-
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
910
|
+
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/flow/down/index.ts)_
|
|
911
911
|
|
|
912
912
|
## `hereya flow env [NAME]`
|
|
913
913
|
|
|
@@ -941,7 +941,7 @@ EXAMPLES
|
|
|
941
941
|
$ hereya flow env -l
|
|
942
942
|
```
|
|
943
943
|
|
|
944
|
-
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
944
|
+
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/flow/env/index.ts)_
|
|
945
945
|
|
|
946
946
|
## `hereya flow provid PACKAGE`
|
|
947
947
|
|
|
@@ -970,7 +970,7 @@ EXAMPLES
|
|
|
970
970
|
$ hereya flow provid hereya/postgres --pin
|
|
971
971
|
```
|
|
972
972
|
|
|
973
|
-
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
973
|
+
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/flow/provid/index.ts)_
|
|
974
974
|
|
|
975
975
|
## `hereya flow remove PACKAGE`
|
|
976
976
|
|
|
@@ -1000,7 +1000,7 @@ EXAMPLES
|
|
|
1000
1000
|
$ hereya flow remove cloudy/docker_postgres --profile staging
|
|
1001
1001
|
```
|
|
1002
1002
|
|
|
1003
|
-
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1003
|
+
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/flow/remove/index.ts)_
|
|
1004
1004
|
|
|
1005
1005
|
## `hereya flow run CMD`
|
|
1006
1006
|
|
|
@@ -1029,7 +1029,7 @@ EXAMPLES
|
|
|
1029
1029
|
$ hereya flow run --pin -- npm test
|
|
1030
1030
|
```
|
|
1031
1031
|
|
|
1032
|
-
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1032
|
+
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/flow/run/index.ts)_
|
|
1033
1033
|
|
|
1034
1034
|
## `hereya flow up`
|
|
1035
1035
|
|
|
@@ -1063,7 +1063,7 @@ EXAMPLES
|
|
|
1063
1063
|
$ hereya flow up --pin
|
|
1064
1064
|
```
|
|
1065
1065
|
|
|
1066
|
-
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1066
|
+
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/flow/up/index.ts)_
|
|
1067
1067
|
|
|
1068
1068
|
## `hereya help [COMMAND]`
|
|
1069
1069
|
|
|
@@ -1120,7 +1120,7 @@ EXAMPLES
|
|
|
1120
1120
|
$ hereya import org/my-package -f state.tfstate -w my-workspace
|
|
1121
1121
|
```
|
|
1122
1122
|
|
|
1123
|
-
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1123
|
+
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/import/index.ts)_
|
|
1124
1124
|
|
|
1125
1125
|
## `hereya init PROJECT`
|
|
1126
1126
|
|
|
@@ -1154,7 +1154,7 @@ EXAMPLES
|
|
|
1154
1154
|
$ hereya init myProject -w=dev -t=acme/node-starter -d=prod -p region=us-east-1
|
|
1155
1155
|
```
|
|
1156
1156
|
|
|
1157
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1157
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/init/index.ts)_
|
|
1158
1158
|
|
|
1159
1159
|
## `hereya list`
|
|
1160
1160
|
|
|
@@ -1171,7 +1171,7 @@ EXAMPLES
|
|
|
1171
1171
|
$ hereya list
|
|
1172
1172
|
```
|
|
1173
1173
|
|
|
1174
|
-
_See code: [src/commands/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1174
|
+
_See code: [src/commands/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/list/index.ts)_
|
|
1175
1175
|
|
|
1176
1176
|
## `hereya login [URL]`
|
|
1177
1177
|
|
|
@@ -1200,7 +1200,7 @@ EXAMPLES
|
|
|
1200
1200
|
$ hereya login --token=your-token https://cloud.hereya.dev
|
|
1201
1201
|
```
|
|
1202
1202
|
|
|
1203
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1203
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/login/index.ts)_
|
|
1204
1204
|
|
|
1205
1205
|
## `hereya logout`
|
|
1206
1206
|
|
|
@@ -1217,7 +1217,7 @@ EXAMPLES
|
|
|
1217
1217
|
$ hereya logout
|
|
1218
1218
|
```
|
|
1219
1219
|
|
|
1220
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1220
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/logout/index.ts)_
|
|
1221
1221
|
|
|
1222
1222
|
## `hereya provid PACKAGE`
|
|
1223
1223
|
|
|
@@ -1245,7 +1245,7 @@ EXAMPLES
|
|
|
1245
1245
|
$ hereya provid hereya/postgres --workspace staging
|
|
1246
1246
|
```
|
|
1247
1247
|
|
|
1248
|
-
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1248
|
+
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/provid/index.ts)_
|
|
1249
1249
|
|
|
1250
1250
|
## `hereya publish`
|
|
1251
1251
|
|
|
@@ -1268,7 +1268,7 @@ EXAMPLES
|
|
|
1268
1268
|
$ hereya publish --chdir=/path/to/package
|
|
1269
1269
|
```
|
|
1270
1270
|
|
|
1271
|
-
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1271
|
+
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/publish/index.ts)_
|
|
1272
1272
|
|
|
1273
1273
|
## `hereya remove PACKAGE`
|
|
1274
1274
|
|
|
@@ -1296,7 +1296,7 @@ EXAMPLES
|
|
|
1296
1296
|
$ hereya remove cloudy/docker_postgres
|
|
1297
1297
|
```
|
|
1298
1298
|
|
|
1299
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1299
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/remove/index.ts)_
|
|
1300
1300
|
|
|
1301
1301
|
## `hereya run CMD`
|
|
1302
1302
|
|
|
@@ -1322,7 +1322,7 @@ EXAMPLES
|
|
|
1322
1322
|
$ hereya run -w uat -- node index.js
|
|
1323
1323
|
```
|
|
1324
1324
|
|
|
1325
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1325
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/run/index.ts)_
|
|
1326
1326
|
|
|
1327
1327
|
## `hereya search QUERY`
|
|
1328
1328
|
|
|
@@ -1353,7 +1353,7 @@ EXAMPLES
|
|
|
1353
1353
|
$ hereya search database --json
|
|
1354
1354
|
```
|
|
1355
1355
|
|
|
1356
|
-
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1356
|
+
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/search/index.ts)_
|
|
1357
1357
|
|
|
1358
1358
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
1359
1359
|
|
|
@@ -1378,7 +1378,7 @@ EXAMPLES
|
|
|
1378
1378
|
$ hereya unbootstrap local
|
|
1379
1379
|
```
|
|
1380
1380
|
|
|
1381
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1381
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/unbootstrap/index.ts)_
|
|
1382
1382
|
|
|
1383
1383
|
## `hereya undeploy`
|
|
1384
1384
|
|
|
@@ -1404,7 +1404,7 @@ EXAMPLES
|
|
|
1404
1404
|
$ hereya undeploy
|
|
1405
1405
|
```
|
|
1406
1406
|
|
|
1407
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1407
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/undeploy/index.ts)_
|
|
1408
1408
|
|
|
1409
1409
|
## `hereya uninit PROJECT`
|
|
1410
1410
|
|
|
@@ -1432,7 +1432,7 @@ EXAMPLES
|
|
|
1432
1432
|
$ hereya uninit myProject -w dev -p prodWorkspace=prod
|
|
1433
1433
|
```
|
|
1434
1434
|
|
|
1435
|
-
_See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1435
|
+
_See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/uninit/index.ts)_
|
|
1436
1436
|
|
|
1437
1437
|
## `hereya up`
|
|
1438
1438
|
|
|
@@ -1459,7 +1459,7 @@ EXAMPLES
|
|
|
1459
1459
|
$ hereya up
|
|
1460
1460
|
```
|
|
1461
1461
|
|
|
1462
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1462
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/up/index.ts)_
|
|
1463
1463
|
|
|
1464
1464
|
## `hereya update [VERSION]`
|
|
1465
1465
|
|
|
@@ -1481,7 +1481,7 @@ EXAMPLES
|
|
|
1481
1481
|
$ hereya update 0.75.0
|
|
1482
1482
|
```
|
|
1483
1483
|
|
|
1484
|
-
_See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1484
|
+
_See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/update/index.ts)_
|
|
1485
1485
|
|
|
1486
1486
|
## `hereya workspace create NAME`
|
|
1487
1487
|
|
|
@@ -1506,7 +1506,7 @@ EXAMPLES
|
|
|
1506
1506
|
$ hereya workspace create dev
|
|
1507
1507
|
```
|
|
1508
1508
|
|
|
1509
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1509
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/create/index.ts)_
|
|
1510
1510
|
|
|
1511
1511
|
## `hereya workspace delete NAME`
|
|
1512
1512
|
|
|
@@ -1526,7 +1526,7 @@ EXAMPLES
|
|
|
1526
1526
|
$ hereya workspace delete dev
|
|
1527
1527
|
```
|
|
1528
1528
|
|
|
1529
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1529
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/delete/index.ts)_
|
|
1530
1530
|
|
|
1531
1531
|
## `hereya workspace env [NAME]`
|
|
1532
1532
|
|
|
@@ -1552,7 +1552,7 @@ EXAMPLES
|
|
|
1552
1552
|
$ hereya workspace env myEnv -w dev
|
|
1553
1553
|
```
|
|
1554
1554
|
|
|
1555
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1555
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/env/index.ts)_
|
|
1556
1556
|
|
|
1557
1557
|
## `hereya workspace env set`
|
|
1558
1558
|
|
|
@@ -1576,7 +1576,7 @@ EXAMPLES
|
|
|
1576
1576
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
1577
1577
|
```
|
|
1578
1578
|
|
|
1579
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1579
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/env/set/index.ts)_
|
|
1580
1580
|
|
|
1581
1581
|
## `hereya workspace env unset`
|
|
1582
1582
|
|
|
@@ -1597,7 +1597,7 @@ EXAMPLES
|
|
|
1597
1597
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
1598
1598
|
```
|
|
1599
1599
|
|
|
1600
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1600
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/env/unset/index.ts)_
|
|
1601
1601
|
|
|
1602
1602
|
## `hereya workspace executor install`
|
|
1603
1603
|
|
|
@@ -1616,7 +1616,7 @@ DESCRIPTION
|
|
|
1616
1616
|
Install a remote executor into a workspace
|
|
1617
1617
|
```
|
|
1618
1618
|
|
|
1619
|
-
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1619
|
+
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/executor/install/index.ts)_
|
|
1620
1620
|
|
|
1621
1621
|
## `hereya workspace executor token`
|
|
1622
1622
|
|
|
@@ -1633,7 +1633,7 @@ DESCRIPTION
|
|
|
1633
1633
|
Generate a workspace-scoped executor token for the remote executor
|
|
1634
1634
|
```
|
|
1635
1635
|
|
|
1636
|
-
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1636
|
+
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/executor/token/index.ts)_
|
|
1637
1637
|
|
|
1638
1638
|
## `hereya workspace executor uninstall`
|
|
1639
1639
|
|
|
@@ -1651,7 +1651,7 @@ DESCRIPTION
|
|
|
1651
1651
|
Uninstall the remote executor from a workspace
|
|
1652
1652
|
```
|
|
1653
1653
|
|
|
1654
|
-
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1654
|
+
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/executor/uninstall/index.ts)_
|
|
1655
1655
|
|
|
1656
1656
|
## `hereya workspace install PACKAGE`
|
|
1657
1657
|
|
|
@@ -1678,7 +1678,7 @@ EXAMPLES
|
|
|
1678
1678
|
$ hereya workspace install hereya/aws-cognito
|
|
1679
1679
|
```
|
|
1680
1680
|
|
|
1681
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1681
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/install/index.ts)_
|
|
1682
1682
|
|
|
1683
1683
|
## `hereya workspace list`
|
|
1684
1684
|
|
|
@@ -1702,7 +1702,7 @@ EXAMPLES
|
|
|
1702
1702
|
$ hereya workspace list --org personal
|
|
1703
1703
|
```
|
|
1704
1704
|
|
|
1705
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1705
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/list/index.ts)_
|
|
1706
1706
|
|
|
1707
1707
|
## `hereya workspace set-profile PROFILE`
|
|
1708
1708
|
|
|
@@ -1726,7 +1726,7 @@ EXAMPLES
|
|
|
1726
1726
|
$ hereya workspace set-profile prod-profile -w production
|
|
1727
1727
|
```
|
|
1728
1728
|
|
|
1729
|
-
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1729
|
+
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/set-profile/index.ts)_
|
|
1730
1730
|
|
|
1731
1731
|
## `hereya workspace uninstall PACKAGE`
|
|
1732
1732
|
|
|
@@ -1753,5 +1753,5 @@ EXAMPLES
|
|
|
1753
1753
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
1754
1754
|
```
|
|
1755
1755
|
|
|
1756
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.
|
|
1756
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.84.1/src/commands/workspace/uninstall/index.ts)_
|
|
1757
1757
|
<!-- commandsstop -->
|
|
@@ -64,6 +64,18 @@ function normalizePackageList(raw) {
|
|
|
64
64
|
}
|
|
65
65
|
return [];
|
|
66
66
|
}
|
|
67
|
+
async function runPreDeployCommand(input) {
|
|
68
|
+
if (!input.command)
|
|
69
|
+
return { success: true };
|
|
70
|
+
try {
|
|
71
|
+
input.logger.info('Running pre-deploy command...');
|
|
72
|
+
await runShell(input.command, [], { directory: input.directory, logger: input.logger });
|
|
73
|
+
return { success: true };
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
return { reason: `pre-deploy command failed: ${error.message}`, success: false };
|
|
77
|
+
}
|
|
78
|
+
}
|
|
67
79
|
/**
|
|
68
80
|
* Strip credentials from log strings before flushing them to the cloud.
|
|
69
81
|
* Removes:
|
|
@@ -256,6 +268,15 @@ Set the HEREYA_CLOUD_URL environment variable to target a specific hereya cloud
|
|
|
256
268
|
status: 'deploying',
|
|
257
269
|
workspace,
|
|
258
270
|
});
|
|
271
|
+
const preDeployResult = await runPreDeployCommand({
|
|
272
|
+
command: parsedHereyaYaml.preDeployCommand,
|
|
273
|
+
directory: rootDir,
|
|
274
|
+
logger,
|
|
275
|
+
});
|
|
276
|
+
if (!preDeployResult.success) {
|
|
277
|
+
await this.markAppDeploymentFailed({ appName, jobId: job.id, reason: preDeployResult.reason, workspace }, cloudBackend);
|
|
278
|
+
return { reason: preDeployResult.reason, success: false };
|
|
279
|
+
}
|
|
259
280
|
const mergedEnv = {};
|
|
260
281
|
// 1) Provision regular packages
|
|
261
282
|
/* eslint-disable no-await-in-loop */
|
|
@@ -361,6 +382,20 @@ Set the HEREYA_CLOUD_URL environment variable to target a specific hereya cloud
|
|
|
361
382
|
status: 'destroying',
|
|
362
383
|
workspace,
|
|
363
384
|
});
|
|
385
|
+
const preDeployResult = await runPreDeployCommand({
|
|
386
|
+
command: parsedHereyaYaml.preDeployCommand,
|
|
387
|
+
directory: rootDir,
|
|
388
|
+
logger,
|
|
389
|
+
});
|
|
390
|
+
if (!preDeployResult.success) {
|
|
391
|
+
await cloudBackend.updateAppDeployment({
|
|
392
|
+
lastJobId: job.id,
|
|
393
|
+
name: appName,
|
|
394
|
+
status: 'failed',
|
|
395
|
+
workspace,
|
|
396
|
+
});
|
|
397
|
+
return { reason: preDeployResult.reason, success: false };
|
|
398
|
+
}
|
|
364
399
|
// Iterate in REVERSE: deploy packages first (depend on regular pkgs), then regular pkgs.
|
|
365
400
|
const reversed = [...deployPackages.reverse(), ...packages.reverse()];
|
|
366
401
|
const workspaceEnvResult = await cloudBackend.getWorkspaceEnv({ workspace });
|
package/oclif.manifest.json
CHANGED
|
@@ -1501,17 +1501,24 @@
|
|
|
1501
1501
|
"index.js"
|
|
1502
1502
|
]
|
|
1503
1503
|
},
|
|
1504
|
-
"config:
|
|
1504
|
+
"config:export-backend": {
|
|
1505
1505
|
"aliases": [],
|
|
1506
|
-
"args": {
|
|
1507
|
-
|
|
1506
|
+
"args": {
|
|
1507
|
+
"file": {
|
|
1508
|
+
"description": "Path to save the export file. Defaults to cloud-backend.json in current directory",
|
|
1509
|
+
"name": "file",
|
|
1510
|
+
"required": false
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1513
|
+
"description": "Export the cloud backend configuration to a file",
|
|
1508
1514
|
"examples": [
|
|
1509
|
-
"<%= config.bin %> <%= command.id %>"
|
|
1515
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1516
|
+
"<%= config.bin %> <%= command.id %> ./path/to/export.json"
|
|
1510
1517
|
],
|
|
1511
1518
|
"flags": {},
|
|
1512
1519
|
"hasDynamicHelp": false,
|
|
1513
1520
|
"hiddenAliases": [],
|
|
1514
|
-
"id": "config:
|
|
1521
|
+
"id": "config:export-backend",
|
|
1515
1522
|
"pluginAlias": "hereya-cli",
|
|
1516
1523
|
"pluginName": "hereya-cli",
|
|
1517
1524
|
"pluginType": "core",
|
|
@@ -1522,28 +1529,21 @@
|
|
|
1522
1529
|
"dist",
|
|
1523
1530
|
"commands",
|
|
1524
1531
|
"config",
|
|
1525
|
-
"
|
|
1532
|
+
"export-backend",
|
|
1526
1533
|
"index.js"
|
|
1527
1534
|
]
|
|
1528
1535
|
},
|
|
1529
|
-
"config:
|
|
1536
|
+
"config:get-backend": {
|
|
1530
1537
|
"aliases": [],
|
|
1531
|
-
"args": {
|
|
1532
|
-
|
|
1533
|
-
"description": "Path to save the export file. Defaults to cloud-backend.json in current directory",
|
|
1534
|
-
"name": "file",
|
|
1535
|
-
"required": false
|
|
1536
|
-
}
|
|
1537
|
-
},
|
|
1538
|
-
"description": "Export the cloud backend configuration to a file",
|
|
1538
|
+
"args": {},
|
|
1539
|
+
"description": "get the current backend type",
|
|
1539
1540
|
"examples": [
|
|
1540
|
-
"<%= config.bin %> <%= command.id %>"
|
|
1541
|
-
"<%= config.bin %> <%= command.id %> ./path/to/export.json"
|
|
1541
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1542
1542
|
],
|
|
1543
1543
|
"flags": {},
|
|
1544
1544
|
"hasDynamicHelp": false,
|
|
1545
1545
|
"hiddenAliases": [],
|
|
1546
|
-
"id": "config:
|
|
1546
|
+
"id": "config:get-backend",
|
|
1547
1547
|
"pluginAlias": "hereya-cli",
|
|
1548
1548
|
"pluginName": "hereya-cli",
|
|
1549
1549
|
"pluginType": "core",
|
|
@@ -1554,7 +1554,7 @@
|
|
|
1554
1554
|
"dist",
|
|
1555
1555
|
"commands",
|
|
1556
1556
|
"config",
|
|
1557
|
-
"
|
|
1557
|
+
"get-backend",
|
|
1558
1558
|
"index.js"
|
|
1559
1559
|
]
|
|
1560
1560
|
},
|
|
@@ -3197,5 +3197,5 @@
|
|
|
3197
3197
|
]
|
|
3198
3198
|
}
|
|
3199
3199
|
},
|
|
3200
|
-
"version": "0.84.
|
|
3200
|
+
"version": "0.84.1"
|
|
3201
3201
|
}
|