hereya-cli 0.93.1 → 0.94.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 +69 -67
- package/dist/commands/devenv/install/index.d.ts +1 -0
- package/dist/commands/devenv/install/index.js +13 -3
- package/dist/commands/devenv/project/init/index.js +12 -5
- package/dist/commands/devenv/project/uninit/index.js +12 -5
- package/dist/commands/devenv/ssh/index.d.ts +0 -3
- package/dist/commands/devenv/ssh/index.js +10 -146
- package/dist/commands/init/index.js +1 -1
- package/dist/lib/devenv-wake.d.ts +13 -0
- package/dist/lib/devenv-wake.js +153 -0
- package/dist/lib/hereya-token.d.ts +25 -1
- package/dist/lib/hereya-token.js +58 -2
- package/oclif.manifest.json +146 -138
- 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.94.0 linux-x64 node-v24.14.1
|
|
25
25
|
$ hereya --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ hereya COMMAND
|
|
@@ -129,7 +129,7 @@ EXAMPLES
|
|
|
129
129
|
$ hereya add cloudy/docker_postgres
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
132
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/add/index.ts)_
|
|
133
133
|
|
|
134
134
|
## `hereya app deploy NAME`
|
|
135
135
|
|
|
@@ -163,7 +163,7 @@ EXAMPLES
|
|
|
163
163
|
$ hereya app deploy my-org/my-app -w prod -p organizationId=org-123
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
_See code: [src/commands/app/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
166
|
+
_See code: [src/commands/app/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/app/deploy/index.ts)_
|
|
167
167
|
|
|
168
168
|
## `hereya app deployments NAME`
|
|
169
169
|
|
|
@@ -183,7 +183,7 @@ EXAMPLES
|
|
|
183
183
|
$ hereya app deployments my-org/my-app
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
-
_See code: [src/commands/app/deployments/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
186
|
+
_See code: [src/commands/app/deployments/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/app/deployments/index.ts)_
|
|
187
187
|
|
|
188
188
|
## `hereya app destroy NAME`
|
|
189
189
|
|
|
@@ -212,7 +212,7 @@ EXAMPLES
|
|
|
212
212
|
$ hereya app destroy my-org/my-app -w my-workspace
|
|
213
213
|
```
|
|
214
214
|
|
|
215
|
-
_See code: [src/commands/app/destroy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
215
|
+
_See code: [src/commands/app/destroy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/app/destroy/index.ts)_
|
|
216
216
|
|
|
217
217
|
## `hereya app env NAME [KEY]`
|
|
218
218
|
|
|
@@ -238,7 +238,7 @@ EXAMPLES
|
|
|
238
238
|
$ hereya app env my-org/my-app -w my-workspace DATABASE_URL
|
|
239
239
|
```
|
|
240
240
|
|
|
241
|
-
_See code: [src/commands/app/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
241
|
+
_See code: [src/commands/app/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/app/env/index.ts)_
|
|
242
242
|
|
|
243
243
|
## `hereya app list`
|
|
244
244
|
|
|
@@ -255,7 +255,7 @@ EXAMPLES
|
|
|
255
255
|
$ hereya app list
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
_See code: [src/commands/app/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
258
|
+
_See code: [src/commands/app/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/app/list/index.ts)_
|
|
259
259
|
|
|
260
260
|
## `hereya app new DIRNAME`
|
|
261
261
|
|
|
@@ -281,7 +281,7 @@ EXAMPLES
|
|
|
281
281
|
$ hereya app new ./my-app -n my-org/my-app --description "An ai-app-builder app"
|
|
282
282
|
```
|
|
283
283
|
|
|
284
|
-
_See code: [src/commands/app/new/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
284
|
+
_See code: [src/commands/app/new/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/app/new/index.ts)_
|
|
285
285
|
|
|
286
286
|
## `hereya app status NAME`
|
|
287
287
|
|
|
@@ -304,7 +304,7 @@ EXAMPLES
|
|
|
304
304
|
$ hereya app status my-org/my-app -w my-workspace
|
|
305
305
|
```
|
|
306
306
|
|
|
307
|
-
_See code: [src/commands/app/status/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
307
|
+
_See code: [src/commands/app/status/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/app/status/index.ts)_
|
|
308
308
|
|
|
309
309
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
310
310
|
|
|
@@ -329,7 +329,7 @@ EXAMPLES
|
|
|
329
329
|
$ hereya bootstrap local
|
|
330
330
|
```
|
|
331
331
|
|
|
332
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
332
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/bootstrap/index.ts)_
|
|
333
333
|
|
|
334
334
|
## `hereya clone PROJECT`
|
|
335
335
|
|
|
@@ -354,7 +354,7 @@ EXAMPLES
|
|
|
354
354
|
$ hereya clone myProject --chdir=./myProject
|
|
355
355
|
```
|
|
356
356
|
|
|
357
|
-
_See code: [src/commands/clone/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
357
|
+
_See code: [src/commands/clone/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/clone/index.ts)_
|
|
358
358
|
|
|
359
359
|
## `hereya config export-backend [FILE]`
|
|
360
360
|
|
|
@@ -376,7 +376,7 @@ EXAMPLES
|
|
|
376
376
|
$ hereya config export-backend ./path/to/export.json
|
|
377
377
|
```
|
|
378
378
|
|
|
379
|
-
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
379
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/config/export-backend/index.ts)_
|
|
380
380
|
|
|
381
381
|
## `hereya config get-backend`
|
|
382
382
|
|
|
@@ -393,7 +393,7 @@ EXAMPLES
|
|
|
393
393
|
$ hereya config get-backend
|
|
394
394
|
```
|
|
395
395
|
|
|
396
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
396
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/config/get-backend/index.ts)_
|
|
397
397
|
|
|
398
398
|
## `hereya config import-backend FILE`
|
|
399
399
|
|
|
@@ -413,7 +413,7 @@ EXAMPLES
|
|
|
413
413
|
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
414
414
|
```
|
|
415
415
|
|
|
416
|
-
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
416
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/config/import-backend/index.ts)_
|
|
417
417
|
|
|
418
418
|
## `hereya config use-backend TYPE`
|
|
419
419
|
|
|
@@ -435,7 +435,7 @@ EXAMPLES
|
|
|
435
435
|
$ hereya config use-backend local
|
|
436
436
|
```
|
|
437
437
|
|
|
438
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
438
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/config/use-backend/index.ts)_
|
|
439
439
|
|
|
440
440
|
## `hereya delete-state`
|
|
441
441
|
|
|
@@ -461,7 +461,7 @@ EXAMPLES
|
|
|
461
461
|
$ hereya delete-state --workspace staging
|
|
462
462
|
```
|
|
463
463
|
|
|
464
|
-
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
464
|
+
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/delete-state/index.ts)_
|
|
465
465
|
|
|
466
466
|
## `hereya deploy`
|
|
467
467
|
|
|
@@ -487,7 +487,7 @@ EXAMPLES
|
|
|
487
487
|
$ hereya deploy
|
|
488
488
|
```
|
|
489
489
|
|
|
490
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
490
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/deploy/index.ts)_
|
|
491
491
|
|
|
492
492
|
## `hereya devenv config`
|
|
493
493
|
|
|
@@ -507,7 +507,7 @@ EXAMPLES
|
|
|
507
507
|
$ hereya devenv config -w my-workspace
|
|
508
508
|
```
|
|
509
509
|
|
|
510
|
-
_See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
510
|
+
_See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/devenv/config/index.ts)_
|
|
511
511
|
|
|
512
512
|
## `hereya devenv install`
|
|
513
513
|
|
|
@@ -515,7 +515,7 @@ Provision a remote dev environment on a workspace.
|
|
|
515
515
|
|
|
516
516
|
```
|
|
517
517
|
USAGE
|
|
518
|
-
$ hereya devenv install -w <value> [--debug] [-p <value>...] [-f <value>] [-v <value>]
|
|
518
|
+
$ hereya devenv install -w <value> [--debug] [--on-behalf-of <value>] [-p <value>...] [-f <value>] [-v <value>]
|
|
519
519
|
|
|
520
520
|
FLAGS
|
|
521
521
|
-f, --parameter-file=<value> path to a file containing parameters for the package
|
|
@@ -524,6 +524,8 @@ FLAGS
|
|
|
524
524
|
-v, --version=<value> version of the dev environment package
|
|
525
525
|
-w, --workspace=<value> (required) name of the workspace to provision the dev environment on
|
|
526
526
|
--debug enable debug mode
|
|
527
|
+
--on-behalf-of=<value> email of an org member to install the devenv for; the baked Hereya token will carry
|
|
528
|
+
their identity (requires OWNER or ADMIN role)
|
|
527
529
|
|
|
528
530
|
DESCRIPTION
|
|
529
531
|
Provision a remote dev environment on a workspace.
|
|
@@ -532,7 +534,7 @@ EXAMPLES
|
|
|
532
534
|
$ hereya devenv install -w my-workspace -p instanceType=t3.large
|
|
533
535
|
```
|
|
534
536
|
|
|
535
|
-
_See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
537
|
+
_See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/devenv/install/index.ts)_
|
|
536
538
|
|
|
537
539
|
## `hereya devenv project init PROJECT`
|
|
538
540
|
|
|
@@ -564,7 +566,7 @@ EXAMPLES
|
|
|
564
566
|
$ hereya devenv project init my-app -w my-workspace -t acme/node-starter -p region=us-east-1
|
|
565
567
|
```
|
|
566
568
|
|
|
567
|
-
_See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
569
|
+
_See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/devenv/project/init/index.ts)_
|
|
568
570
|
|
|
569
571
|
## `hereya devenv project uninit PROJECT`
|
|
570
572
|
|
|
@@ -590,7 +592,7 @@ EXAMPLES
|
|
|
590
592
|
$ hereya devenv project uninit my-app -w my-workspace --force
|
|
591
593
|
```
|
|
592
594
|
|
|
593
|
-
_See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
595
|
+
_See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/devenv/project/uninit/index.ts)_
|
|
594
596
|
|
|
595
597
|
## `hereya devenv sleep`
|
|
596
598
|
|
|
@@ -611,7 +613,7 @@ EXAMPLES
|
|
|
611
613
|
$ hereya devenv sleep -w my-workspace
|
|
612
614
|
```
|
|
613
615
|
|
|
614
|
-
_See code: [src/commands/devenv/sleep/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
616
|
+
_See code: [src/commands/devenv/sleep/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/devenv/sleep/index.ts)_
|
|
615
617
|
|
|
616
618
|
## `hereya devenv ssh`
|
|
617
619
|
|
|
@@ -631,7 +633,7 @@ EXAMPLES
|
|
|
631
633
|
$ hereya devenv ssh -w my-workspace
|
|
632
634
|
```
|
|
633
635
|
|
|
634
|
-
_See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
636
|
+
_See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/devenv/ssh/index.ts)_
|
|
635
637
|
|
|
636
638
|
## `hereya devenv uninstall`
|
|
637
639
|
|
|
@@ -652,7 +654,7 @@ EXAMPLES
|
|
|
652
654
|
$ hereya devenv uninstall -w my-workspace
|
|
653
655
|
```
|
|
654
656
|
|
|
655
|
-
_See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
657
|
+
_See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/devenv/uninstall/index.ts)_
|
|
656
658
|
|
|
657
659
|
## `hereya doc PACKAGE`
|
|
658
660
|
|
|
@@ -685,7 +687,7 @@ EXAMPLES
|
|
|
685
687
|
$ hereya doc my-package --no-doc
|
|
686
688
|
```
|
|
687
689
|
|
|
688
|
-
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
690
|
+
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/doc/index.ts)_
|
|
689
691
|
|
|
690
692
|
## `hereya docker run IMAGE`
|
|
691
693
|
|
|
@@ -716,7 +718,7 @@ EXAMPLES
|
|
|
716
718
|
$ hereya docker run myapp:latest -- --rm -v ./data:/data
|
|
717
719
|
```
|
|
718
720
|
|
|
719
|
-
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
721
|
+
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/docker/run/index.ts)_
|
|
720
722
|
|
|
721
723
|
## `hereya down`
|
|
722
724
|
|
|
@@ -743,7 +745,7 @@ EXAMPLES
|
|
|
743
745
|
$ hereya down
|
|
744
746
|
```
|
|
745
747
|
|
|
746
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
748
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/down/index.ts)_
|
|
747
749
|
|
|
748
750
|
## `hereya env [NAME]`
|
|
749
751
|
|
|
@@ -774,7 +776,7 @@ EXAMPLES
|
|
|
774
776
|
$ hereya env -w dev -l
|
|
775
777
|
```
|
|
776
778
|
|
|
777
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
779
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/env/index.ts)_
|
|
778
780
|
|
|
779
781
|
## `hereya env set [NAME]`
|
|
780
782
|
|
|
@@ -801,7 +803,7 @@ EXAMPLES
|
|
|
801
803
|
$ hereya env set FOO -v bar -w dev
|
|
802
804
|
```
|
|
803
805
|
|
|
804
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
806
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/env/set/index.ts)_
|
|
805
807
|
|
|
806
808
|
## `hereya executor start`
|
|
807
809
|
|
|
@@ -835,7 +837,7 @@ EXAMPLES
|
|
|
835
837
|
HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
|
|
836
838
|
```
|
|
837
839
|
|
|
838
|
-
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
840
|
+
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/executor/start/index.ts)_
|
|
839
841
|
|
|
840
842
|
## `hereya flow add PACKAGE`
|
|
841
843
|
|
|
@@ -873,7 +875,7 @@ EXAMPLES
|
|
|
873
875
|
$ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
|
|
874
876
|
```
|
|
875
877
|
|
|
876
|
-
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
878
|
+
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/flow/add/index.ts)_
|
|
877
879
|
|
|
878
880
|
## `hereya flow docker run IMAGE`
|
|
879
881
|
|
|
@@ -903,7 +905,7 @@ EXAMPLES
|
|
|
903
905
|
$ hereya flow docker run --pin myapp:latest -- --rm
|
|
904
906
|
```
|
|
905
907
|
|
|
906
|
-
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
908
|
+
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/flow/docker/run/index.ts)_
|
|
907
909
|
|
|
908
910
|
## `hereya flow down`
|
|
909
911
|
|
|
@@ -937,7 +939,7 @@ EXAMPLES
|
|
|
937
939
|
$ hereya flow down --pin
|
|
938
940
|
```
|
|
939
941
|
|
|
940
|
-
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
942
|
+
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/flow/down/index.ts)_
|
|
941
943
|
|
|
942
944
|
## `hereya flow env [NAME]`
|
|
943
945
|
|
|
@@ -971,7 +973,7 @@ EXAMPLES
|
|
|
971
973
|
$ hereya flow env -l
|
|
972
974
|
```
|
|
973
975
|
|
|
974
|
-
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
976
|
+
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/flow/env/index.ts)_
|
|
975
977
|
|
|
976
978
|
## `hereya flow provid PACKAGE`
|
|
977
979
|
|
|
@@ -1000,7 +1002,7 @@ EXAMPLES
|
|
|
1000
1002
|
$ hereya flow provid hereya/postgres --pin
|
|
1001
1003
|
```
|
|
1002
1004
|
|
|
1003
|
-
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1005
|
+
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/flow/provid/index.ts)_
|
|
1004
1006
|
|
|
1005
1007
|
## `hereya flow remove PACKAGE`
|
|
1006
1008
|
|
|
@@ -1030,7 +1032,7 @@ EXAMPLES
|
|
|
1030
1032
|
$ hereya flow remove cloudy/docker_postgres --profile staging
|
|
1031
1033
|
```
|
|
1032
1034
|
|
|
1033
|
-
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1035
|
+
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/flow/remove/index.ts)_
|
|
1034
1036
|
|
|
1035
1037
|
## `hereya flow run CMD`
|
|
1036
1038
|
|
|
@@ -1059,7 +1061,7 @@ EXAMPLES
|
|
|
1059
1061
|
$ hereya flow run --pin -- npm test
|
|
1060
1062
|
```
|
|
1061
1063
|
|
|
1062
|
-
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1064
|
+
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/flow/run/index.ts)_
|
|
1063
1065
|
|
|
1064
1066
|
## `hereya flow up`
|
|
1065
1067
|
|
|
@@ -1093,7 +1095,7 @@ EXAMPLES
|
|
|
1093
1095
|
$ hereya flow up --pin
|
|
1094
1096
|
```
|
|
1095
1097
|
|
|
1096
|
-
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1098
|
+
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/flow/up/index.ts)_
|
|
1097
1099
|
|
|
1098
1100
|
## `hereya help [COMMAND]`
|
|
1099
1101
|
|
|
@@ -1150,7 +1152,7 @@ EXAMPLES
|
|
|
1150
1152
|
$ hereya import org/my-package -f state.tfstate -w my-workspace
|
|
1151
1153
|
```
|
|
1152
1154
|
|
|
1153
|
-
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1155
|
+
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/import/index.ts)_
|
|
1154
1156
|
|
|
1155
1157
|
## `hereya import-repo PROJECT`
|
|
1156
1158
|
|
|
@@ -1180,7 +1182,7 @@ EXAMPLES
|
|
|
1180
1182
|
$ hereya import-repo myProject -w=dev -r=https://github.com/acme/api --clone --chdir=./api
|
|
1181
1183
|
```
|
|
1182
1184
|
|
|
1183
|
-
_See code: [src/commands/import-repo/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1185
|
+
_See code: [src/commands/import-repo/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/import-repo/index.ts)_
|
|
1184
1186
|
|
|
1185
1187
|
## `hereya init PROJECT`
|
|
1186
1188
|
|
|
@@ -1214,7 +1216,7 @@ EXAMPLES
|
|
|
1214
1216
|
$ hereya init myProject -w=dev -t=acme/node-starter -d=prod -p region=us-east-1
|
|
1215
1217
|
```
|
|
1216
1218
|
|
|
1217
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1219
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/init/index.ts)_
|
|
1218
1220
|
|
|
1219
1221
|
## `hereya list`
|
|
1220
1222
|
|
|
@@ -1231,7 +1233,7 @@ EXAMPLES
|
|
|
1231
1233
|
$ hereya list
|
|
1232
1234
|
```
|
|
1233
1235
|
|
|
1234
|
-
_See code: [src/commands/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1236
|
+
_See code: [src/commands/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/list/index.ts)_
|
|
1235
1237
|
|
|
1236
1238
|
## `hereya login [URL]`
|
|
1237
1239
|
|
|
@@ -1260,7 +1262,7 @@ EXAMPLES
|
|
|
1260
1262
|
$ hereya login --token=your-token https://cloud.hereya.dev
|
|
1261
1263
|
```
|
|
1262
1264
|
|
|
1263
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1265
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/login/index.ts)_
|
|
1264
1266
|
|
|
1265
1267
|
## `hereya logout`
|
|
1266
1268
|
|
|
@@ -1277,7 +1279,7 @@ EXAMPLES
|
|
|
1277
1279
|
$ hereya logout
|
|
1278
1280
|
```
|
|
1279
1281
|
|
|
1280
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1282
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/logout/index.ts)_
|
|
1281
1283
|
|
|
1282
1284
|
## `hereya provid PACKAGE`
|
|
1283
1285
|
|
|
@@ -1305,7 +1307,7 @@ EXAMPLES
|
|
|
1305
1307
|
$ hereya provid hereya/postgres --workspace staging
|
|
1306
1308
|
```
|
|
1307
1309
|
|
|
1308
|
-
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1310
|
+
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/provid/index.ts)_
|
|
1309
1311
|
|
|
1310
1312
|
## `hereya publish`
|
|
1311
1313
|
|
|
@@ -1328,7 +1330,7 @@ EXAMPLES
|
|
|
1328
1330
|
$ hereya publish --chdir=/path/to/package
|
|
1329
1331
|
```
|
|
1330
1332
|
|
|
1331
|
-
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1333
|
+
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/publish/index.ts)_
|
|
1332
1334
|
|
|
1333
1335
|
## `hereya remove PACKAGE`
|
|
1334
1336
|
|
|
@@ -1356,7 +1358,7 @@ EXAMPLES
|
|
|
1356
1358
|
$ hereya remove cloudy/docker_postgres
|
|
1357
1359
|
```
|
|
1358
1360
|
|
|
1359
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1361
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/remove/index.ts)_
|
|
1360
1362
|
|
|
1361
1363
|
## `hereya run CMD`
|
|
1362
1364
|
|
|
@@ -1382,7 +1384,7 @@ EXAMPLES
|
|
|
1382
1384
|
$ hereya run -w uat -- node index.js
|
|
1383
1385
|
```
|
|
1384
1386
|
|
|
1385
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1387
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/run/index.ts)_
|
|
1386
1388
|
|
|
1387
1389
|
## `hereya search QUERY`
|
|
1388
1390
|
|
|
@@ -1413,7 +1415,7 @@ EXAMPLES
|
|
|
1413
1415
|
$ hereya search database --json
|
|
1414
1416
|
```
|
|
1415
1417
|
|
|
1416
|
-
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1418
|
+
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/search/index.ts)_
|
|
1417
1419
|
|
|
1418
1420
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
1419
1421
|
|
|
@@ -1438,7 +1440,7 @@ EXAMPLES
|
|
|
1438
1440
|
$ hereya unbootstrap local
|
|
1439
1441
|
```
|
|
1440
1442
|
|
|
1441
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1443
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/unbootstrap/index.ts)_
|
|
1442
1444
|
|
|
1443
1445
|
## `hereya undeploy`
|
|
1444
1446
|
|
|
@@ -1464,7 +1466,7 @@ EXAMPLES
|
|
|
1464
1466
|
$ hereya undeploy
|
|
1465
1467
|
```
|
|
1466
1468
|
|
|
1467
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1469
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/undeploy/index.ts)_
|
|
1468
1470
|
|
|
1469
1471
|
## `hereya uninit PROJECT`
|
|
1470
1472
|
|
|
@@ -1492,7 +1494,7 @@ EXAMPLES
|
|
|
1492
1494
|
$ hereya uninit myProject -w dev -p prodWorkspace=prod
|
|
1493
1495
|
```
|
|
1494
1496
|
|
|
1495
|
-
_See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1497
|
+
_See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/uninit/index.ts)_
|
|
1496
1498
|
|
|
1497
1499
|
## `hereya up`
|
|
1498
1500
|
|
|
@@ -1519,7 +1521,7 @@ EXAMPLES
|
|
|
1519
1521
|
$ hereya up
|
|
1520
1522
|
```
|
|
1521
1523
|
|
|
1522
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1524
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/up/index.ts)_
|
|
1523
1525
|
|
|
1524
1526
|
## `hereya update [VERSION]`
|
|
1525
1527
|
|
|
@@ -1541,7 +1543,7 @@ EXAMPLES
|
|
|
1541
1543
|
$ hereya update 0.75.0
|
|
1542
1544
|
```
|
|
1543
1545
|
|
|
1544
|
-
_See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1546
|
+
_See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/update/index.ts)_
|
|
1545
1547
|
|
|
1546
1548
|
## `hereya workspace create NAME`
|
|
1547
1549
|
|
|
@@ -1566,7 +1568,7 @@ EXAMPLES
|
|
|
1566
1568
|
$ hereya workspace create dev
|
|
1567
1569
|
```
|
|
1568
1570
|
|
|
1569
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1571
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/create/index.ts)_
|
|
1570
1572
|
|
|
1571
1573
|
## `hereya workspace delete NAME`
|
|
1572
1574
|
|
|
@@ -1586,7 +1588,7 @@ EXAMPLES
|
|
|
1586
1588
|
$ hereya workspace delete dev
|
|
1587
1589
|
```
|
|
1588
1590
|
|
|
1589
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1591
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/delete/index.ts)_
|
|
1590
1592
|
|
|
1591
1593
|
## `hereya workspace env [NAME]`
|
|
1592
1594
|
|
|
@@ -1612,7 +1614,7 @@ EXAMPLES
|
|
|
1612
1614
|
$ hereya workspace env myEnv -w dev
|
|
1613
1615
|
```
|
|
1614
1616
|
|
|
1615
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1617
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/env/index.ts)_
|
|
1616
1618
|
|
|
1617
1619
|
## `hereya workspace env set`
|
|
1618
1620
|
|
|
@@ -1636,7 +1638,7 @@ EXAMPLES
|
|
|
1636
1638
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
1637
1639
|
```
|
|
1638
1640
|
|
|
1639
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1641
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/env/set/index.ts)_
|
|
1640
1642
|
|
|
1641
1643
|
## `hereya workspace env unset`
|
|
1642
1644
|
|
|
@@ -1657,7 +1659,7 @@ EXAMPLES
|
|
|
1657
1659
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
1658
1660
|
```
|
|
1659
1661
|
|
|
1660
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1662
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/env/unset/index.ts)_
|
|
1661
1663
|
|
|
1662
1664
|
## `hereya workspace executor install`
|
|
1663
1665
|
|
|
@@ -1684,7 +1686,7 @@ DESCRIPTION
|
|
|
1684
1686
|
- ephemeral: ASG scaled to 0 with a broker Lambda + OIDC for on-demand wake.
|
|
1685
1687
|
```
|
|
1686
1688
|
|
|
1687
|
-
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1689
|
+
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/executor/install/index.ts)_
|
|
1688
1690
|
|
|
1689
1691
|
## `hereya workspace executor token`
|
|
1690
1692
|
|
|
@@ -1701,7 +1703,7 @@ DESCRIPTION
|
|
|
1701
1703
|
Generate a workspace-scoped executor token for the remote executor
|
|
1702
1704
|
```
|
|
1703
1705
|
|
|
1704
|
-
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1706
|
+
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/executor/token/index.ts)_
|
|
1705
1707
|
|
|
1706
1708
|
## `hereya workspace executor uninstall`
|
|
1707
1709
|
|
|
@@ -1725,7 +1727,7 @@ DESCRIPTION
|
|
|
1725
1727
|
controls log output.
|
|
1726
1728
|
```
|
|
1727
1729
|
|
|
1728
|
-
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1730
|
+
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/executor/uninstall/index.ts)_
|
|
1729
1731
|
|
|
1730
1732
|
## `hereya workspace install PACKAGE`
|
|
1731
1733
|
|
|
@@ -1752,7 +1754,7 @@ EXAMPLES
|
|
|
1752
1754
|
$ hereya workspace install hereya/aws-cognito
|
|
1753
1755
|
```
|
|
1754
1756
|
|
|
1755
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1757
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/install/index.ts)_
|
|
1756
1758
|
|
|
1757
1759
|
## `hereya workspace list`
|
|
1758
1760
|
|
|
@@ -1776,7 +1778,7 @@ EXAMPLES
|
|
|
1776
1778
|
$ hereya workspace list --org personal
|
|
1777
1779
|
```
|
|
1778
1780
|
|
|
1779
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1781
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/list/index.ts)_
|
|
1780
1782
|
|
|
1781
1783
|
## `hereya workspace set-profile PROFILE`
|
|
1782
1784
|
|
|
@@ -1800,7 +1802,7 @@ EXAMPLES
|
|
|
1800
1802
|
$ hereya workspace set-profile prod-profile -w production
|
|
1801
1803
|
```
|
|
1802
1804
|
|
|
1803
|
-
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1805
|
+
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/set-profile/index.ts)_
|
|
1804
1806
|
|
|
1805
1807
|
## `hereya workspace uninstall PACKAGE`
|
|
1806
1808
|
|
|
@@ -1827,5 +1829,5 @@ EXAMPLES
|
|
|
1827
1829
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
1828
1830
|
```
|
|
1829
1831
|
|
|
1830
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1832
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.94.0/src/commands/workspace/uninstall/index.ts)_
|
|
1831
1833
|
<!-- commandsstop -->
|
|
@@ -4,6 +4,7 @@ export default class DevenvInstall extends Command {
|
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
6
|
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
'on-behalf-of': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
8
|
parameter: import("@oclif/core/interfaces").OptionFlag<string[], import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
'parameter-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
10
|
version: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -15,6 +15,10 @@ export default class DevenvInstall extends Command {
|
|
|
15
15
|
default: false,
|
|
16
16
|
description: 'enable debug mode',
|
|
17
17
|
}),
|
|
18
|
+
'on-behalf-of': Flags.string({
|
|
19
|
+
description: 'email of an org member to install the devenv for; the baked Hereya token will carry their identity (requires OWNER or ADMIN role)',
|
|
20
|
+
required: false,
|
|
21
|
+
}),
|
|
18
22
|
parameter: Flags.string({
|
|
19
23
|
char: 'p',
|
|
20
24
|
default: [],
|
|
@@ -75,9 +79,14 @@ export default class DevenvInstall extends Command {
|
|
|
75
79
|
},
|
|
76
80
|
{
|
|
77
81
|
async task(ctx) {
|
|
78
|
-
const token = await hereyaTokenUtils.generateHereyaToken(
|
|
82
|
+
const token = await hereyaTokenUtils.generateHereyaToken({
|
|
83
|
+
description: `Dev environment: ${flags.workspace}`,
|
|
84
|
+
onBehalfOfEmail: flags['on-behalf-of'],
|
|
85
|
+
workspace: flags.workspace,
|
|
86
|
+
});
|
|
79
87
|
if (token) {
|
|
80
88
|
ctx.tokenParams = { hereyaCloudUrl: token.cloudUrl, hereyaToken: token.token };
|
|
89
|
+
ctx.tokenOwnerEmail = token.ownerEmail;
|
|
81
90
|
}
|
|
82
91
|
},
|
|
83
92
|
title: 'Generating Hereya token for dev environment',
|
|
@@ -129,8 +138,9 @@ export default class DevenvInstall extends Command {
|
|
|
129
138
|
},
|
|
130
139
|
], { concurrent: false, rendererOptions: { collapseSubtasks: !isDebug() } });
|
|
131
140
|
try {
|
|
132
|
-
await task.run();
|
|
133
|
-
|
|
141
|
+
const ctx = await task.run();
|
|
142
|
+
const ownerSuffix = ctx.tokenOwnerEmail ? ` (token owned by ${ctx.tokenOwnerEmail})` : '';
|
|
143
|
+
myLogger.log(ListrLogLevels.COMPLETED, `Dev environment provisioned successfully into workspace ${flags.workspace}${ownerSuffix}`);
|
|
134
144
|
}
|
|
135
145
|
catch (error) {
|
|
136
146
|
this.error(`${error.message}
|