hereya-cli 0.93.0 → 0.93.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 +66 -66
- package/dist/commands/devenv/ssh/index.js +63 -8
- package/oclif.manifest.json +118 -118
- 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.93.
|
|
24
|
+
hereya-cli/0.93.1 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.93.
|
|
132
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
166
|
+
_See code: [src/commands/app/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
186
|
+
_See code: [src/commands/app/deployments/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
215
|
+
_See code: [src/commands/app/destroy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
241
|
+
_See code: [src/commands/app/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
258
|
+
_See code: [src/commands/app/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
284
|
+
_See code: [src/commands/app/new/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
307
|
+
_See code: [src/commands/app/status/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
332
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
357
|
+
_See code: [src/commands/clone/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
379
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
396
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
416
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
438
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
464
|
+
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
490
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/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.93.
|
|
510
|
+
_See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/devenv/config/index.ts)_
|
|
511
511
|
|
|
512
512
|
## `hereya devenv install`
|
|
513
513
|
|
|
@@ -532,7 +532,7 @@ EXAMPLES
|
|
|
532
532
|
$ hereya devenv install -w my-workspace -p instanceType=t3.large
|
|
533
533
|
```
|
|
534
534
|
|
|
535
|
-
_See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
535
|
+
_See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/devenv/install/index.ts)_
|
|
536
536
|
|
|
537
537
|
## `hereya devenv project init PROJECT`
|
|
538
538
|
|
|
@@ -564,7 +564,7 @@ EXAMPLES
|
|
|
564
564
|
$ hereya devenv project init my-app -w my-workspace -t acme/node-starter -p region=us-east-1
|
|
565
565
|
```
|
|
566
566
|
|
|
567
|
-
_See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
567
|
+
_See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/devenv/project/init/index.ts)_
|
|
568
568
|
|
|
569
569
|
## `hereya devenv project uninit PROJECT`
|
|
570
570
|
|
|
@@ -590,7 +590,7 @@ EXAMPLES
|
|
|
590
590
|
$ hereya devenv project uninit my-app -w my-workspace --force
|
|
591
591
|
```
|
|
592
592
|
|
|
593
|
-
_See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
593
|
+
_See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/devenv/project/uninit/index.ts)_
|
|
594
594
|
|
|
595
595
|
## `hereya devenv sleep`
|
|
596
596
|
|
|
@@ -611,7 +611,7 @@ EXAMPLES
|
|
|
611
611
|
$ hereya devenv sleep -w my-workspace
|
|
612
612
|
```
|
|
613
613
|
|
|
614
|
-
_See code: [src/commands/devenv/sleep/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
614
|
+
_See code: [src/commands/devenv/sleep/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/devenv/sleep/index.ts)_
|
|
615
615
|
|
|
616
616
|
## `hereya devenv ssh`
|
|
617
617
|
|
|
@@ -631,7 +631,7 @@ EXAMPLES
|
|
|
631
631
|
$ hereya devenv ssh -w my-workspace
|
|
632
632
|
```
|
|
633
633
|
|
|
634
|
-
_See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
634
|
+
_See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/devenv/ssh/index.ts)_
|
|
635
635
|
|
|
636
636
|
## `hereya devenv uninstall`
|
|
637
637
|
|
|
@@ -652,7 +652,7 @@ EXAMPLES
|
|
|
652
652
|
$ hereya devenv uninstall -w my-workspace
|
|
653
653
|
```
|
|
654
654
|
|
|
655
|
-
_See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
655
|
+
_See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/devenv/uninstall/index.ts)_
|
|
656
656
|
|
|
657
657
|
## `hereya doc PACKAGE`
|
|
658
658
|
|
|
@@ -685,7 +685,7 @@ EXAMPLES
|
|
|
685
685
|
$ hereya doc my-package --no-doc
|
|
686
686
|
```
|
|
687
687
|
|
|
688
|
-
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
688
|
+
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/doc/index.ts)_
|
|
689
689
|
|
|
690
690
|
## `hereya docker run IMAGE`
|
|
691
691
|
|
|
@@ -716,7 +716,7 @@ EXAMPLES
|
|
|
716
716
|
$ hereya docker run myapp:latest -- --rm -v ./data:/data
|
|
717
717
|
```
|
|
718
718
|
|
|
719
|
-
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
719
|
+
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/docker/run/index.ts)_
|
|
720
720
|
|
|
721
721
|
## `hereya down`
|
|
722
722
|
|
|
@@ -743,7 +743,7 @@ EXAMPLES
|
|
|
743
743
|
$ hereya down
|
|
744
744
|
```
|
|
745
745
|
|
|
746
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
746
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/down/index.ts)_
|
|
747
747
|
|
|
748
748
|
## `hereya env [NAME]`
|
|
749
749
|
|
|
@@ -774,7 +774,7 @@ EXAMPLES
|
|
|
774
774
|
$ hereya env -w dev -l
|
|
775
775
|
```
|
|
776
776
|
|
|
777
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
777
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/env/index.ts)_
|
|
778
778
|
|
|
779
779
|
## `hereya env set [NAME]`
|
|
780
780
|
|
|
@@ -801,7 +801,7 @@ EXAMPLES
|
|
|
801
801
|
$ hereya env set FOO -v bar -w dev
|
|
802
802
|
```
|
|
803
803
|
|
|
804
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
804
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/env/set/index.ts)_
|
|
805
805
|
|
|
806
806
|
## `hereya executor start`
|
|
807
807
|
|
|
@@ -835,7 +835,7 @@ EXAMPLES
|
|
|
835
835
|
HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
|
|
836
836
|
```
|
|
837
837
|
|
|
838
|
-
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
838
|
+
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/executor/start/index.ts)_
|
|
839
839
|
|
|
840
840
|
## `hereya flow add PACKAGE`
|
|
841
841
|
|
|
@@ -873,7 +873,7 @@ EXAMPLES
|
|
|
873
873
|
$ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
|
|
874
874
|
```
|
|
875
875
|
|
|
876
|
-
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
876
|
+
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/flow/add/index.ts)_
|
|
877
877
|
|
|
878
878
|
## `hereya flow docker run IMAGE`
|
|
879
879
|
|
|
@@ -903,7 +903,7 @@ EXAMPLES
|
|
|
903
903
|
$ hereya flow docker run --pin myapp:latest -- --rm
|
|
904
904
|
```
|
|
905
905
|
|
|
906
|
-
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
906
|
+
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/flow/docker/run/index.ts)_
|
|
907
907
|
|
|
908
908
|
## `hereya flow down`
|
|
909
909
|
|
|
@@ -937,7 +937,7 @@ EXAMPLES
|
|
|
937
937
|
$ hereya flow down --pin
|
|
938
938
|
```
|
|
939
939
|
|
|
940
|
-
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
940
|
+
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/flow/down/index.ts)_
|
|
941
941
|
|
|
942
942
|
## `hereya flow env [NAME]`
|
|
943
943
|
|
|
@@ -971,7 +971,7 @@ EXAMPLES
|
|
|
971
971
|
$ hereya flow env -l
|
|
972
972
|
```
|
|
973
973
|
|
|
974
|
-
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
974
|
+
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/flow/env/index.ts)_
|
|
975
975
|
|
|
976
976
|
## `hereya flow provid PACKAGE`
|
|
977
977
|
|
|
@@ -1000,7 +1000,7 @@ EXAMPLES
|
|
|
1000
1000
|
$ hereya flow provid hereya/postgres --pin
|
|
1001
1001
|
```
|
|
1002
1002
|
|
|
1003
|
-
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1003
|
+
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/flow/provid/index.ts)_
|
|
1004
1004
|
|
|
1005
1005
|
## `hereya flow remove PACKAGE`
|
|
1006
1006
|
|
|
@@ -1030,7 +1030,7 @@ EXAMPLES
|
|
|
1030
1030
|
$ hereya flow remove cloudy/docker_postgres --profile staging
|
|
1031
1031
|
```
|
|
1032
1032
|
|
|
1033
|
-
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1033
|
+
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/flow/remove/index.ts)_
|
|
1034
1034
|
|
|
1035
1035
|
## `hereya flow run CMD`
|
|
1036
1036
|
|
|
@@ -1059,7 +1059,7 @@ EXAMPLES
|
|
|
1059
1059
|
$ hereya flow run --pin -- npm test
|
|
1060
1060
|
```
|
|
1061
1061
|
|
|
1062
|
-
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1062
|
+
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/flow/run/index.ts)_
|
|
1063
1063
|
|
|
1064
1064
|
## `hereya flow up`
|
|
1065
1065
|
|
|
@@ -1093,7 +1093,7 @@ EXAMPLES
|
|
|
1093
1093
|
$ hereya flow up --pin
|
|
1094
1094
|
```
|
|
1095
1095
|
|
|
1096
|
-
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1096
|
+
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/flow/up/index.ts)_
|
|
1097
1097
|
|
|
1098
1098
|
## `hereya help [COMMAND]`
|
|
1099
1099
|
|
|
@@ -1150,7 +1150,7 @@ EXAMPLES
|
|
|
1150
1150
|
$ hereya import org/my-package -f state.tfstate -w my-workspace
|
|
1151
1151
|
```
|
|
1152
1152
|
|
|
1153
|
-
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1153
|
+
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/import/index.ts)_
|
|
1154
1154
|
|
|
1155
1155
|
## `hereya import-repo PROJECT`
|
|
1156
1156
|
|
|
@@ -1180,7 +1180,7 @@ EXAMPLES
|
|
|
1180
1180
|
$ hereya import-repo myProject -w=dev -r=https://github.com/acme/api --clone --chdir=./api
|
|
1181
1181
|
```
|
|
1182
1182
|
|
|
1183
|
-
_See code: [src/commands/import-repo/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1183
|
+
_See code: [src/commands/import-repo/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/import-repo/index.ts)_
|
|
1184
1184
|
|
|
1185
1185
|
## `hereya init PROJECT`
|
|
1186
1186
|
|
|
@@ -1214,7 +1214,7 @@ EXAMPLES
|
|
|
1214
1214
|
$ hereya init myProject -w=dev -t=acme/node-starter -d=prod -p region=us-east-1
|
|
1215
1215
|
```
|
|
1216
1216
|
|
|
1217
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1217
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/init/index.ts)_
|
|
1218
1218
|
|
|
1219
1219
|
## `hereya list`
|
|
1220
1220
|
|
|
@@ -1231,7 +1231,7 @@ EXAMPLES
|
|
|
1231
1231
|
$ hereya list
|
|
1232
1232
|
```
|
|
1233
1233
|
|
|
1234
|
-
_See code: [src/commands/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1234
|
+
_See code: [src/commands/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/list/index.ts)_
|
|
1235
1235
|
|
|
1236
1236
|
## `hereya login [URL]`
|
|
1237
1237
|
|
|
@@ -1260,7 +1260,7 @@ EXAMPLES
|
|
|
1260
1260
|
$ hereya login --token=your-token https://cloud.hereya.dev
|
|
1261
1261
|
```
|
|
1262
1262
|
|
|
1263
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1263
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/login/index.ts)_
|
|
1264
1264
|
|
|
1265
1265
|
## `hereya logout`
|
|
1266
1266
|
|
|
@@ -1277,7 +1277,7 @@ EXAMPLES
|
|
|
1277
1277
|
$ hereya logout
|
|
1278
1278
|
```
|
|
1279
1279
|
|
|
1280
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1280
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/logout/index.ts)_
|
|
1281
1281
|
|
|
1282
1282
|
## `hereya provid PACKAGE`
|
|
1283
1283
|
|
|
@@ -1305,7 +1305,7 @@ EXAMPLES
|
|
|
1305
1305
|
$ hereya provid hereya/postgres --workspace staging
|
|
1306
1306
|
```
|
|
1307
1307
|
|
|
1308
|
-
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1308
|
+
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/provid/index.ts)_
|
|
1309
1309
|
|
|
1310
1310
|
## `hereya publish`
|
|
1311
1311
|
|
|
@@ -1328,7 +1328,7 @@ EXAMPLES
|
|
|
1328
1328
|
$ hereya publish --chdir=/path/to/package
|
|
1329
1329
|
```
|
|
1330
1330
|
|
|
1331
|
-
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1331
|
+
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/publish/index.ts)_
|
|
1332
1332
|
|
|
1333
1333
|
## `hereya remove PACKAGE`
|
|
1334
1334
|
|
|
@@ -1356,7 +1356,7 @@ EXAMPLES
|
|
|
1356
1356
|
$ hereya remove cloudy/docker_postgres
|
|
1357
1357
|
```
|
|
1358
1358
|
|
|
1359
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1359
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/remove/index.ts)_
|
|
1360
1360
|
|
|
1361
1361
|
## `hereya run CMD`
|
|
1362
1362
|
|
|
@@ -1382,7 +1382,7 @@ EXAMPLES
|
|
|
1382
1382
|
$ hereya run -w uat -- node index.js
|
|
1383
1383
|
```
|
|
1384
1384
|
|
|
1385
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1385
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/run/index.ts)_
|
|
1386
1386
|
|
|
1387
1387
|
## `hereya search QUERY`
|
|
1388
1388
|
|
|
@@ -1413,7 +1413,7 @@ EXAMPLES
|
|
|
1413
1413
|
$ hereya search database --json
|
|
1414
1414
|
```
|
|
1415
1415
|
|
|
1416
|
-
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1416
|
+
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/search/index.ts)_
|
|
1417
1417
|
|
|
1418
1418
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
1419
1419
|
|
|
@@ -1438,7 +1438,7 @@ EXAMPLES
|
|
|
1438
1438
|
$ hereya unbootstrap local
|
|
1439
1439
|
```
|
|
1440
1440
|
|
|
1441
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1441
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/unbootstrap/index.ts)_
|
|
1442
1442
|
|
|
1443
1443
|
## `hereya undeploy`
|
|
1444
1444
|
|
|
@@ -1464,7 +1464,7 @@ EXAMPLES
|
|
|
1464
1464
|
$ hereya undeploy
|
|
1465
1465
|
```
|
|
1466
1466
|
|
|
1467
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1467
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/undeploy/index.ts)_
|
|
1468
1468
|
|
|
1469
1469
|
## `hereya uninit PROJECT`
|
|
1470
1470
|
|
|
@@ -1492,7 +1492,7 @@ EXAMPLES
|
|
|
1492
1492
|
$ hereya uninit myProject -w dev -p prodWorkspace=prod
|
|
1493
1493
|
```
|
|
1494
1494
|
|
|
1495
|
-
_See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1495
|
+
_See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/uninit/index.ts)_
|
|
1496
1496
|
|
|
1497
1497
|
## `hereya up`
|
|
1498
1498
|
|
|
@@ -1519,7 +1519,7 @@ EXAMPLES
|
|
|
1519
1519
|
$ hereya up
|
|
1520
1520
|
```
|
|
1521
1521
|
|
|
1522
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1522
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/up/index.ts)_
|
|
1523
1523
|
|
|
1524
1524
|
## `hereya update [VERSION]`
|
|
1525
1525
|
|
|
@@ -1541,7 +1541,7 @@ EXAMPLES
|
|
|
1541
1541
|
$ hereya update 0.75.0
|
|
1542
1542
|
```
|
|
1543
1543
|
|
|
1544
|
-
_See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1544
|
+
_See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/update/index.ts)_
|
|
1545
1545
|
|
|
1546
1546
|
## `hereya workspace create NAME`
|
|
1547
1547
|
|
|
@@ -1566,7 +1566,7 @@ EXAMPLES
|
|
|
1566
1566
|
$ hereya workspace create dev
|
|
1567
1567
|
```
|
|
1568
1568
|
|
|
1569
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1569
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/create/index.ts)_
|
|
1570
1570
|
|
|
1571
1571
|
## `hereya workspace delete NAME`
|
|
1572
1572
|
|
|
@@ -1586,7 +1586,7 @@ EXAMPLES
|
|
|
1586
1586
|
$ hereya workspace delete dev
|
|
1587
1587
|
```
|
|
1588
1588
|
|
|
1589
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1589
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/delete/index.ts)_
|
|
1590
1590
|
|
|
1591
1591
|
## `hereya workspace env [NAME]`
|
|
1592
1592
|
|
|
@@ -1612,7 +1612,7 @@ EXAMPLES
|
|
|
1612
1612
|
$ hereya workspace env myEnv -w dev
|
|
1613
1613
|
```
|
|
1614
1614
|
|
|
1615
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1615
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/env/index.ts)_
|
|
1616
1616
|
|
|
1617
1617
|
## `hereya workspace env set`
|
|
1618
1618
|
|
|
@@ -1636,7 +1636,7 @@ EXAMPLES
|
|
|
1636
1636
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
1637
1637
|
```
|
|
1638
1638
|
|
|
1639
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1639
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/env/set/index.ts)_
|
|
1640
1640
|
|
|
1641
1641
|
## `hereya workspace env unset`
|
|
1642
1642
|
|
|
@@ -1657,7 +1657,7 @@ EXAMPLES
|
|
|
1657
1657
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
1658
1658
|
```
|
|
1659
1659
|
|
|
1660
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1660
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/env/unset/index.ts)_
|
|
1661
1661
|
|
|
1662
1662
|
## `hereya workspace executor install`
|
|
1663
1663
|
|
|
@@ -1684,7 +1684,7 @@ DESCRIPTION
|
|
|
1684
1684
|
- ephemeral: ASG scaled to 0 with a broker Lambda + OIDC for on-demand wake.
|
|
1685
1685
|
```
|
|
1686
1686
|
|
|
1687
|
-
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1687
|
+
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/executor/install/index.ts)_
|
|
1688
1688
|
|
|
1689
1689
|
## `hereya workspace executor token`
|
|
1690
1690
|
|
|
@@ -1701,7 +1701,7 @@ DESCRIPTION
|
|
|
1701
1701
|
Generate a workspace-scoped executor token for the remote executor
|
|
1702
1702
|
```
|
|
1703
1703
|
|
|
1704
|
-
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1704
|
+
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/executor/token/index.ts)_
|
|
1705
1705
|
|
|
1706
1706
|
## `hereya workspace executor uninstall`
|
|
1707
1707
|
|
|
@@ -1725,7 +1725,7 @@ DESCRIPTION
|
|
|
1725
1725
|
controls log output.
|
|
1726
1726
|
```
|
|
1727
1727
|
|
|
1728
|
-
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1728
|
+
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/executor/uninstall/index.ts)_
|
|
1729
1729
|
|
|
1730
1730
|
## `hereya workspace install PACKAGE`
|
|
1731
1731
|
|
|
@@ -1752,7 +1752,7 @@ EXAMPLES
|
|
|
1752
1752
|
$ hereya workspace install hereya/aws-cognito
|
|
1753
1753
|
```
|
|
1754
1754
|
|
|
1755
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1755
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/install/index.ts)_
|
|
1756
1756
|
|
|
1757
1757
|
## `hereya workspace list`
|
|
1758
1758
|
|
|
@@ -1776,7 +1776,7 @@ EXAMPLES
|
|
|
1776
1776
|
$ hereya workspace list --org personal
|
|
1777
1777
|
```
|
|
1778
1778
|
|
|
1779
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1779
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/list/index.ts)_
|
|
1780
1780
|
|
|
1781
1781
|
## `hereya workspace set-profile PROFILE`
|
|
1782
1782
|
|
|
@@ -1800,7 +1800,7 @@ EXAMPLES
|
|
|
1800
1800
|
$ hereya workspace set-profile prod-profile -w production
|
|
1801
1801
|
```
|
|
1802
1802
|
|
|
1803
|
-
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1803
|
+
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/set-profile/index.ts)_
|
|
1804
1804
|
|
|
1805
1805
|
## `hereya workspace uninstall PACKAGE`
|
|
1806
1806
|
|
|
@@ -1827,5 +1827,5 @@ EXAMPLES
|
|
|
1827
1827
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
1828
1828
|
```
|
|
1829
1829
|
|
|
1830
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.
|
|
1830
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.93.1/src/commands/workspace/uninstall/index.ts)_
|
|
1831
1831
|
<!-- commandsstop -->
|
|
@@ -3,6 +3,7 @@ import { Listr } from 'listr2';
|
|
|
3
3
|
import { spawnSync } from 'node:child_process';
|
|
4
4
|
import { randomUUID } from 'node:crypto';
|
|
5
5
|
import fs from 'node:fs/promises';
|
|
6
|
+
import { Socket } from 'node:net';
|
|
6
7
|
import os from 'node:os';
|
|
7
8
|
import path from 'node:path';
|
|
8
9
|
import { getBackend } from '../../../backend/index.js';
|
|
@@ -17,11 +18,57 @@ function getWakePollIntervalMs() {
|
|
|
17
18
|
function getWakeTimeoutMs() {
|
|
18
19
|
return Number(process.env.HEREYA_WAKE_TIMEOUT_MS) || 90_000;
|
|
19
20
|
}
|
|
21
|
+
// Probe budget for waiting on sshd after the EC2 instance reports running.
|
|
22
|
+
// EC2 returns state=running before sshd starts accepting connections; without
|
|
23
|
+
// this probe, the immediate `ssh` spawn races and gets ECONNREFUSED.
|
|
24
|
+
// Set HEREYA_SSH_READY_TIMEOUT_MS=0 to disable the probe entirely (tests).
|
|
25
|
+
function getSshReadyTimeoutMs() {
|
|
26
|
+
const raw = process.env.HEREYA_SSH_READY_TIMEOUT_MS;
|
|
27
|
+
if (raw === undefined)
|
|
28
|
+
return 60_000;
|
|
29
|
+
return Number(raw);
|
|
30
|
+
}
|
|
31
|
+
function getSshReadyAttemptIntervalMs() {
|
|
32
|
+
return Number(process.env.HEREYA_SSH_READY_ATTEMPT_INTERVAL_MS) || 2000;
|
|
33
|
+
}
|
|
20
34
|
function sleep(ms) {
|
|
21
35
|
return new Promise((resolve) => {
|
|
22
36
|
setTimeout(resolve, ms);
|
|
23
37
|
});
|
|
24
38
|
}
|
|
39
|
+
function probeTcp(host, port, timeoutMs) {
|
|
40
|
+
return new Promise((resolve) => {
|
|
41
|
+
const socket = new Socket();
|
|
42
|
+
let done = false;
|
|
43
|
+
const finish = (ok) => {
|
|
44
|
+
if (done)
|
|
45
|
+
return;
|
|
46
|
+
done = true;
|
|
47
|
+
socket.destroy();
|
|
48
|
+
resolve(ok);
|
|
49
|
+
};
|
|
50
|
+
socket.setTimeout(timeoutMs);
|
|
51
|
+
socket.once('connect', () => finish(true));
|
|
52
|
+
socket.once('timeout', () => finish(false));
|
|
53
|
+
socket.once('error', () => finish(false));
|
|
54
|
+
socket.connect(port, host);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
async function waitForSshReady(host, port, totalTimeoutMs, attemptIntervalMs) {
|
|
58
|
+
const start = Date.now();
|
|
59
|
+
// First attempt fires immediately.
|
|
60
|
+
while (Date.now() - start < totalTimeoutMs) {
|
|
61
|
+
// eslint-disable-next-line no-await-in-loop
|
|
62
|
+
const ok = await probeTcp(host, port, Math.min(2000, attemptIntervalMs));
|
|
63
|
+
if (ok)
|
|
64
|
+
return;
|
|
65
|
+
if (Date.now() - start + attemptIntervalMs >= totalTimeoutMs)
|
|
66
|
+
break;
|
|
67
|
+
// eslint-disable-next-line no-await-in-loop
|
|
68
|
+
await sleep(attemptIntervalMs);
|
|
69
|
+
}
|
|
70
|
+
throw new Error(`SSH at ${host}:${port} did not accept connections within ${totalTimeoutMs / 1000}s`);
|
|
71
|
+
}
|
|
25
72
|
export default class DevenvSsh extends Command {
|
|
26
73
|
static description = 'SSH into a dev environment instance.';
|
|
27
74
|
static examples = [
|
|
@@ -121,15 +168,16 @@ export default class DevenvSsh extends Command {
|
|
|
121
168
|
return response.json();
|
|
122
169
|
}
|
|
123
170
|
async wakeAndPoll(wakeUrl, wakeToken) {
|
|
124
|
-
let resultHost = '';
|
|
125
171
|
const pollIntervalMs = getWakePollIntervalMs();
|
|
126
172
|
const timeoutMs = getWakeTimeoutMs();
|
|
173
|
+
const sshReadyTimeoutMs = getSshReadyTimeoutMs();
|
|
174
|
+
const sshReadyAttemptIntervalMs = getSshReadyAttemptIntervalMs();
|
|
127
175
|
const task = new Listr([
|
|
128
176
|
{
|
|
129
|
-
task: async () => {
|
|
177
|
+
task: async (ctx) => {
|
|
130
178
|
const initial = await this.fetchStatus(wakeUrl, wakeToken);
|
|
131
179
|
if (initial.state === 'running' && initial.host) {
|
|
132
|
-
|
|
180
|
+
ctx.host = initial.host;
|
|
133
181
|
return;
|
|
134
182
|
}
|
|
135
183
|
await this.postWake(wakeUrl, wakeToken);
|
|
@@ -144,18 +192,25 @@ export default class DevenvSsh extends Command {
|
|
|
144
192
|
// eslint-disable-next-line no-await-in-loop
|
|
145
193
|
const status = await this.fetchStatus(wakeUrl, wakeToken);
|
|
146
194
|
if (status.state === 'running' && status.host) {
|
|
147
|
-
|
|
195
|
+
ctx.host = status.host;
|
|
148
196
|
done = true;
|
|
149
197
|
}
|
|
150
198
|
}
|
|
151
199
|
},
|
|
152
200
|
title: 'Waking dev environment',
|
|
153
201
|
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
202
|
+
{
|
|
203
|
+
enabled: () => sshReadyTimeoutMs > 0,
|
|
204
|
+
async task(ctx) {
|
|
205
|
+
await waitForSshReady(ctx.host, 22, sshReadyTimeoutMs, sshReadyAttemptIntervalMs);
|
|
206
|
+
},
|
|
207
|
+
title: 'Waiting for SSH to accept connections',
|
|
208
|
+
},
|
|
209
|
+
], { concurrent: false, ctx: { host: '' } });
|
|
210
|
+
const result = await task.run();
|
|
211
|
+
if (!result.host) {
|
|
157
212
|
throw new Error('broker did not return a host after wake');
|
|
158
213
|
}
|
|
159
|
-
return { host:
|
|
214
|
+
return { host: result.host };
|
|
160
215
|
}
|
|
161
216
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -170,12 +170,13 @@
|
|
|
170
170
|
"index.js"
|
|
171
171
|
]
|
|
172
172
|
},
|
|
173
|
-
"
|
|
173
|
+
"delete-state": {
|
|
174
174
|
"aliases": [],
|
|
175
175
|
"args": {},
|
|
176
|
-
"description": "
|
|
176
|
+
"description": "Delete the remote state of a project for a given workspace",
|
|
177
177
|
"examples": [
|
|
178
|
-
"<%= config.bin %> <%= command.id %>"
|
|
178
|
+
"<%= config.bin %> <%= command.id %> -w dev",
|
|
179
|
+
"<%= config.bin %> <%= command.id %> --workspace staging"
|
|
179
180
|
],
|
|
180
181
|
"flags": {
|
|
181
182
|
"chdir": {
|
|
@@ -186,21 +187,9 @@
|
|
|
186
187
|
"multiple": false,
|
|
187
188
|
"type": "option"
|
|
188
189
|
},
|
|
189
|
-
"debug": {
|
|
190
|
-
"description": "enable debug mode",
|
|
191
|
-
"name": "debug",
|
|
192
|
-
"allowNo": false,
|
|
193
|
-
"type": "boolean"
|
|
194
|
-
},
|
|
195
|
-
"local": {
|
|
196
|
-
"description": "force local execution (skip remote executor)",
|
|
197
|
-
"name": "local",
|
|
198
|
-
"allowNo": false,
|
|
199
|
-
"type": "boolean"
|
|
200
|
-
},
|
|
201
190
|
"workspace": {
|
|
202
191
|
"char": "w",
|
|
203
|
-
"description": "
|
|
192
|
+
"description": "workspace name",
|
|
204
193
|
"name": "workspace",
|
|
205
194
|
"required": true,
|
|
206
195
|
"hasDynamicHelp": false,
|
|
@@ -210,7 +199,7 @@
|
|
|
210
199
|
},
|
|
211
200
|
"hasDynamicHelp": false,
|
|
212
201
|
"hiddenAliases": [],
|
|
213
|
-
"id": "
|
|
202
|
+
"id": "delete-state",
|
|
214
203
|
"pluginAlias": "hereya-cli",
|
|
215
204
|
"pluginName": "hereya-cli",
|
|
216
205
|
"pluginType": "core",
|
|
@@ -220,17 +209,16 @@
|
|
|
220
209
|
"relativePath": [
|
|
221
210
|
"dist",
|
|
222
211
|
"commands",
|
|
223
|
-
"
|
|
212
|
+
"delete-state",
|
|
224
213
|
"index.js"
|
|
225
214
|
]
|
|
226
215
|
},
|
|
227
|
-
"
|
|
216
|
+
"deploy": {
|
|
228
217
|
"aliases": [],
|
|
229
218
|
"args": {},
|
|
230
|
-
"description": "
|
|
219
|
+
"description": "Deploy a hereya project using the project deployment package",
|
|
231
220
|
"examples": [
|
|
232
|
-
"<%= config.bin %> <%= command.id %>
|
|
233
|
-
"<%= config.bin %> <%= command.id %> --workspace staging"
|
|
221
|
+
"<%= config.bin %> <%= command.id %>"
|
|
234
222
|
],
|
|
235
223
|
"flags": {
|
|
236
224
|
"chdir": {
|
|
@@ -241,9 +229,21 @@
|
|
|
241
229
|
"multiple": false,
|
|
242
230
|
"type": "option"
|
|
243
231
|
},
|
|
232
|
+
"debug": {
|
|
233
|
+
"description": "enable debug mode",
|
|
234
|
+
"name": "debug",
|
|
235
|
+
"allowNo": false,
|
|
236
|
+
"type": "boolean"
|
|
237
|
+
},
|
|
238
|
+
"local": {
|
|
239
|
+
"description": "force local execution (skip remote executor)",
|
|
240
|
+
"name": "local",
|
|
241
|
+
"allowNo": false,
|
|
242
|
+
"type": "boolean"
|
|
243
|
+
},
|
|
244
244
|
"workspace": {
|
|
245
245
|
"char": "w",
|
|
246
|
-
"description": "workspace
|
|
246
|
+
"description": "name of the workspace to deploy the packages for",
|
|
247
247
|
"name": "workspace",
|
|
248
248
|
"required": true,
|
|
249
249
|
"hasDynamicHelp": false,
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
},
|
|
254
254
|
"hasDynamicHelp": false,
|
|
255
255
|
"hiddenAliases": [],
|
|
256
|
-
"id": "
|
|
256
|
+
"id": "deploy",
|
|
257
257
|
"pluginAlias": "hereya-cli",
|
|
258
258
|
"pluginName": "hereya-cli",
|
|
259
259
|
"pluginType": "core",
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
"relativePath": [
|
|
264
264
|
"dist",
|
|
265
265
|
"commands",
|
|
266
|
-
"
|
|
266
|
+
"deploy",
|
|
267
267
|
"index.js"
|
|
268
268
|
]
|
|
269
269
|
},
|
|
@@ -2361,32 +2361,34 @@
|
|
|
2361
2361
|
"index.js"
|
|
2362
2362
|
]
|
|
2363
2363
|
},
|
|
2364
|
-
"flow:
|
|
2364
|
+
"flow:run": {
|
|
2365
2365
|
"aliases": [],
|
|
2366
2366
|
"args": {
|
|
2367
|
-
"
|
|
2368
|
-
"description": "
|
|
2369
|
-
"name": "
|
|
2367
|
+
"cmd": {
|
|
2368
|
+
"description": "command to run",
|
|
2369
|
+
"name": "cmd",
|
|
2370
2370
|
"required": true
|
|
2371
2371
|
}
|
|
2372
2372
|
},
|
|
2373
|
-
"description": "
|
|
2373
|
+
"description": "Run a command with hereya env vars in a git branch-based workspace",
|
|
2374
2374
|
"examples": [
|
|
2375
|
-
"<%= config.bin %> <%= command.id %>
|
|
2376
|
-
"<%= config.bin %> <%= command.id %>
|
|
2375
|
+
"<%= config.bin %> <%= command.id %> -- npm run dev",
|
|
2376
|
+
"<%= config.bin %> <%= command.id %> --profile staging -- node index.js",
|
|
2377
|
+
"<%= config.bin %> <%= command.id %> --pin -- npm test"
|
|
2377
2378
|
],
|
|
2378
2379
|
"flags": {
|
|
2379
2380
|
"chdir": {
|
|
2380
|
-
"description": "
|
|
2381
|
+
"description": "directory to run command in",
|
|
2381
2382
|
"name": "chdir",
|
|
2382
2383
|
"required": false,
|
|
2383
2384
|
"hasDynamicHelp": false,
|
|
2384
2385
|
"multiple": false,
|
|
2385
2386
|
"type": "option"
|
|
2386
2387
|
},
|
|
2387
|
-
"
|
|
2388
|
-
"description": "
|
|
2389
|
-
"name": "
|
|
2388
|
+
"pin": {
|
|
2389
|
+
"description": "append git commit SHA to workspace name for commit-specific isolation",
|
|
2390
|
+
"name": "pin",
|
|
2391
|
+
"required": false,
|
|
2390
2392
|
"allowNo": false,
|
|
2391
2393
|
"type": "boolean"
|
|
2392
2394
|
},
|
|
@@ -2401,49 +2403,47 @@
|
|
|
2401
2403
|
},
|
|
2402
2404
|
"hasDynamicHelp": false,
|
|
2403
2405
|
"hiddenAliases": [],
|
|
2404
|
-
"id": "flow:
|
|
2406
|
+
"id": "flow:run",
|
|
2405
2407
|
"pluginAlias": "hereya-cli",
|
|
2406
2408
|
"pluginName": "hereya-cli",
|
|
2407
2409
|
"pluginType": "core",
|
|
2408
|
-
"strict":
|
|
2410
|
+
"strict": false,
|
|
2409
2411
|
"enableJsonFlag": false,
|
|
2410
2412
|
"isESM": true,
|
|
2411
2413
|
"relativePath": [
|
|
2412
2414
|
"dist",
|
|
2413
2415
|
"commands",
|
|
2414
2416
|
"flow",
|
|
2415
|
-
"
|
|
2417
|
+
"run",
|
|
2416
2418
|
"index.js"
|
|
2417
2419
|
]
|
|
2418
2420
|
},
|
|
2419
|
-
"flow:
|
|
2421
|
+
"flow:remove": {
|
|
2420
2422
|
"aliases": [],
|
|
2421
2423
|
"args": {
|
|
2422
|
-
"
|
|
2423
|
-
"description": "
|
|
2424
|
-
"name": "
|
|
2424
|
+
"package": {
|
|
2425
|
+
"description": "Remove a previously added package.",
|
|
2426
|
+
"name": "package",
|
|
2425
2427
|
"required": true
|
|
2426
2428
|
}
|
|
2427
2429
|
},
|
|
2428
|
-
"description": "
|
|
2430
|
+
"description": "Remove a package from the project in a git branch-based workspace",
|
|
2429
2431
|
"examples": [
|
|
2430
|
-
"<%= config.bin %> <%= command.id %>
|
|
2431
|
-
"<%= config.bin %> <%= command.id %> --profile staging
|
|
2432
|
-
"<%= config.bin %> <%= command.id %> --pin -- npm test"
|
|
2432
|
+
"<%= config.bin %> <%= command.id %> cloudy/docker_postgres",
|
|
2433
|
+
"<%= config.bin %> <%= command.id %> cloudy/docker_postgres --profile staging"
|
|
2433
2434
|
],
|
|
2434
2435
|
"flags": {
|
|
2435
2436
|
"chdir": {
|
|
2436
|
-
"description": "
|
|
2437
|
+
"description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.\n ",
|
|
2437
2438
|
"name": "chdir",
|
|
2438
2439
|
"required": false,
|
|
2439
2440
|
"hasDynamicHelp": false,
|
|
2440
2441
|
"multiple": false,
|
|
2441
2442
|
"type": "option"
|
|
2442
2443
|
},
|
|
2443
|
-
"
|
|
2444
|
-
"description": "
|
|
2445
|
-
"name": "
|
|
2446
|
-
"required": false,
|
|
2444
|
+
"debug": {
|
|
2445
|
+
"description": "enable debug mode",
|
|
2446
|
+
"name": "debug",
|
|
2447
2447
|
"allowNo": false,
|
|
2448
2448
|
"type": "boolean"
|
|
2449
2449
|
},
|
|
@@ -2458,18 +2458,18 @@
|
|
|
2458
2458
|
},
|
|
2459
2459
|
"hasDynamicHelp": false,
|
|
2460
2460
|
"hiddenAliases": [],
|
|
2461
|
-
"id": "flow:
|
|
2461
|
+
"id": "flow:remove",
|
|
2462
2462
|
"pluginAlias": "hereya-cli",
|
|
2463
2463
|
"pluginName": "hereya-cli",
|
|
2464
2464
|
"pluginType": "core",
|
|
2465
|
-
"strict":
|
|
2465
|
+
"strict": true,
|
|
2466
2466
|
"enableJsonFlag": false,
|
|
2467
2467
|
"isESM": true,
|
|
2468
2468
|
"relativePath": [
|
|
2469
2469
|
"dist",
|
|
2470
2470
|
"commands",
|
|
2471
2471
|
"flow",
|
|
2472
|
-
"
|
|
2472
|
+
"remove",
|
|
2473
2473
|
"index.js"
|
|
2474
2474
|
]
|
|
2475
2475
|
},
|
|
@@ -2603,6 +2603,56 @@
|
|
|
2603
2603
|
"index.js"
|
|
2604
2604
|
]
|
|
2605
2605
|
},
|
|
2606
|
+
"workspace:env": {
|
|
2607
|
+
"aliases": [],
|
|
2608
|
+
"args": {
|
|
2609
|
+
"name": {
|
|
2610
|
+
"description": "name of the env to display",
|
|
2611
|
+
"name": "name",
|
|
2612
|
+
"required": false
|
|
2613
|
+
}
|
|
2614
|
+
},
|
|
2615
|
+
"description": "Print workspace env vars.",
|
|
2616
|
+
"examples": [
|
|
2617
|
+
"<%= config.bin %> <%= command.id %> -w dev",
|
|
2618
|
+
"<%= config.bin %> <%= command.id %> myEnv -w dev"
|
|
2619
|
+
],
|
|
2620
|
+
"flags": {
|
|
2621
|
+
"list": {
|
|
2622
|
+
"char": "l",
|
|
2623
|
+
"description": "list only the env vars without values",
|
|
2624
|
+
"name": "list",
|
|
2625
|
+
"required": false,
|
|
2626
|
+
"allowNo": false,
|
|
2627
|
+
"type": "boolean"
|
|
2628
|
+
},
|
|
2629
|
+
"workspace": {
|
|
2630
|
+
"char": "w",
|
|
2631
|
+
"description": "name of the workspace to print env vars for",
|
|
2632
|
+
"name": "workspace",
|
|
2633
|
+
"required": true,
|
|
2634
|
+
"hasDynamicHelp": false,
|
|
2635
|
+
"multiple": false,
|
|
2636
|
+
"type": "option"
|
|
2637
|
+
}
|
|
2638
|
+
},
|
|
2639
|
+
"hasDynamicHelp": false,
|
|
2640
|
+
"hiddenAliases": [],
|
|
2641
|
+
"id": "workspace:env",
|
|
2642
|
+
"pluginAlias": "hereya-cli",
|
|
2643
|
+
"pluginName": "hereya-cli",
|
|
2644
|
+
"pluginType": "core",
|
|
2645
|
+
"strict": true,
|
|
2646
|
+
"enableJsonFlag": false,
|
|
2647
|
+
"isESM": true,
|
|
2648
|
+
"relativePath": [
|
|
2649
|
+
"dist",
|
|
2650
|
+
"commands",
|
|
2651
|
+
"workspace",
|
|
2652
|
+
"env",
|
|
2653
|
+
"index.js"
|
|
2654
|
+
]
|
|
2655
|
+
},
|
|
2606
2656
|
"workspace:delete": {
|
|
2607
2657
|
"aliases": [],
|
|
2608
2658
|
"args": {
|
|
@@ -2634,34 +2684,21 @@
|
|
|
2634
2684
|
"index.js"
|
|
2635
2685
|
]
|
|
2636
2686
|
},
|
|
2637
|
-
"workspace:
|
|
2687
|
+
"workspace:list": {
|
|
2638
2688
|
"aliases": [],
|
|
2639
|
-
"args": {
|
|
2640
|
-
|
|
2641
|
-
"description": "name of the env to display",
|
|
2642
|
-
"name": "name",
|
|
2643
|
-
"required": false
|
|
2644
|
-
}
|
|
2645
|
-
},
|
|
2646
|
-
"description": "Print workspace env vars.",
|
|
2689
|
+
"args": {},
|
|
2690
|
+
"description": "List workspaces.",
|
|
2647
2691
|
"examples": [
|
|
2648
|
-
"<%= config.bin %> <%= command.id %>
|
|
2649
|
-
"<%= config.bin %> <%= command.id %>
|
|
2692
|
+
"<%= config.bin %> <%= command.id %>",
|
|
2693
|
+
"<%= config.bin %> <%= command.id %> --org my-org",
|
|
2694
|
+
"<%= config.bin %> <%= command.id %> --org personal"
|
|
2650
2695
|
],
|
|
2651
2696
|
"flags": {
|
|
2652
|
-
"
|
|
2653
|
-
"char": "
|
|
2654
|
-
"description": "
|
|
2655
|
-
"name": "
|
|
2697
|
+
"org": {
|
|
2698
|
+
"char": "o",
|
|
2699
|
+
"description": "Filter workspaces by organization name. Use \"personal\" to show only your personal workspaces.",
|
|
2700
|
+
"name": "org",
|
|
2656
2701
|
"required": false,
|
|
2657
|
-
"allowNo": false,
|
|
2658
|
-
"type": "boolean"
|
|
2659
|
-
},
|
|
2660
|
-
"workspace": {
|
|
2661
|
-
"char": "w",
|
|
2662
|
-
"description": "name of the workspace to print env vars for",
|
|
2663
|
-
"name": "workspace",
|
|
2664
|
-
"required": true,
|
|
2665
2702
|
"hasDynamicHelp": false,
|
|
2666
2703
|
"multiple": false,
|
|
2667
2704
|
"type": "option"
|
|
@@ -2669,7 +2706,7 @@
|
|
|
2669
2706
|
},
|
|
2670
2707
|
"hasDynamicHelp": false,
|
|
2671
2708
|
"hiddenAliases": [],
|
|
2672
|
-
"id": "workspace:
|
|
2709
|
+
"id": "workspace:list",
|
|
2673
2710
|
"pluginAlias": "hereya-cli",
|
|
2674
2711
|
"pluginName": "hereya-cli",
|
|
2675
2712
|
"pluginType": "core",
|
|
@@ -2680,7 +2717,7 @@
|
|
|
2680
2717
|
"dist",
|
|
2681
2718
|
"commands",
|
|
2682
2719
|
"workspace",
|
|
2683
|
-
"
|
|
2720
|
+
"list",
|
|
2684
2721
|
"index.js"
|
|
2685
2722
|
]
|
|
2686
2723
|
},
|
|
@@ -2748,43 +2785,6 @@
|
|
|
2748
2785
|
"index.js"
|
|
2749
2786
|
]
|
|
2750
2787
|
},
|
|
2751
|
-
"workspace:list": {
|
|
2752
|
-
"aliases": [],
|
|
2753
|
-
"args": {},
|
|
2754
|
-
"description": "List workspaces.",
|
|
2755
|
-
"examples": [
|
|
2756
|
-
"<%= config.bin %> <%= command.id %>",
|
|
2757
|
-
"<%= config.bin %> <%= command.id %> --org my-org",
|
|
2758
|
-
"<%= config.bin %> <%= command.id %> --org personal"
|
|
2759
|
-
],
|
|
2760
|
-
"flags": {
|
|
2761
|
-
"org": {
|
|
2762
|
-
"char": "o",
|
|
2763
|
-
"description": "Filter workspaces by organization name. Use \"personal\" to show only your personal workspaces.",
|
|
2764
|
-
"name": "org",
|
|
2765
|
-
"required": false,
|
|
2766
|
-
"hasDynamicHelp": false,
|
|
2767
|
-
"multiple": false,
|
|
2768
|
-
"type": "option"
|
|
2769
|
-
}
|
|
2770
|
-
},
|
|
2771
|
-
"hasDynamicHelp": false,
|
|
2772
|
-
"hiddenAliases": [],
|
|
2773
|
-
"id": "workspace:list",
|
|
2774
|
-
"pluginAlias": "hereya-cli",
|
|
2775
|
-
"pluginName": "hereya-cli",
|
|
2776
|
-
"pluginType": "core",
|
|
2777
|
-
"strict": true,
|
|
2778
|
-
"enableJsonFlag": false,
|
|
2779
|
-
"isESM": true,
|
|
2780
|
-
"relativePath": [
|
|
2781
|
-
"dist",
|
|
2782
|
-
"commands",
|
|
2783
|
-
"workspace",
|
|
2784
|
-
"list",
|
|
2785
|
-
"index.js"
|
|
2786
|
-
]
|
|
2787
|
-
},
|
|
2788
2788
|
"workspace:set-profile": {
|
|
2789
2789
|
"aliases": [],
|
|
2790
2790
|
"args": {
|
|
@@ -3361,5 +3361,5 @@
|
|
|
3361
3361
|
]
|
|
3362
3362
|
}
|
|
3363
3363
|
},
|
|
3364
|
-
"version": "0.93.
|
|
3364
|
+
"version": "0.93.1"
|
|
3365
3365
|
}
|