hereya-cli 0.100.4 → 0.100.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g hereya-cli
21
21
  $ hereya COMMAND
22
22
  running command...
23
23
  $ hereya (--version)
24
- hereya-cli/0.100.4 linux-x64 node-v24.15.0
24
+ hereya-cli/0.100.6 linux-x64 node-v24.15.0
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.100.4/src/commands/add/index.ts)_
132
+ _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/app/deploy/index.ts)_
166
+ _See code: [src/commands/app/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/app/deployments/index.ts)_
186
+ _See code: [src/commands/app/deployments/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/app/destroy/index.ts)_
215
+ _See code: [src/commands/app/destroy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/app/env/index.ts)_
241
+ _See code: [src/commands/app/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/app/list/index.ts)_
258
+ _See code: [src/commands/app/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/app/new/index.ts)_
284
+ _See code: [src/commands/app/new/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/app/status/index.ts)_
307
+ _See code: [src/commands/app/status/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/bootstrap/index.ts)_
332
+ _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/clone/index.ts)_
357
+ _See code: [src/commands/clone/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/config/export-backend/index.ts)_
379
+ _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/config/get-backend/index.ts)_
396
+ _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/config/import-backend/index.ts)_
416
+ _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/config/use-backend/index.ts)_
438
+ _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/delete-state/index.ts)_
464
+ _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/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.100.4/src/commands/deploy/index.ts)_
490
+ _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/deploy/index.ts)_
491
491
 
492
492
  ## `hereya devenv config`
493
493
 
@@ -508,7 +508,7 @@ EXAMPLES
508
508
  $ hereya devenv config -w my-workspace
509
509
  ```
510
510
 
511
- _See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/devenv/config/index.ts)_
511
+ _See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/devenv/config/index.ts)_
512
512
 
513
513
  ## `hereya devenv install`
514
514
 
@@ -535,7 +535,7 @@ EXAMPLES
535
535
  $ hereya devenv install -w my-workspace -p instanceType=t3.large
536
536
  ```
537
537
 
538
- _See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/devenv/install/index.ts)_
538
+ _See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/devenv/install/index.ts)_
539
539
 
540
540
  ## `hereya devenv project init PROJECT`
541
541
 
@@ -567,7 +567,7 @@ EXAMPLES
567
567
  $ hereya devenv project init my-app -w my-workspace -t acme/node-starter -p region=us-east-1
568
568
  ```
569
569
 
570
- _See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/devenv/project/init/index.ts)_
570
+ _See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/devenv/project/init/index.ts)_
571
571
 
572
572
  ## `hereya devenv project uninit PROJECT`
573
573
 
@@ -593,7 +593,7 @@ EXAMPLES
593
593
  $ hereya devenv project uninit my-app -w my-workspace --force
594
594
  ```
595
595
 
596
- _See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/devenv/project/uninit/index.ts)_
596
+ _See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/devenv/project/uninit/index.ts)_
597
597
 
598
598
  ## `hereya devenv sleep`
599
599
 
@@ -614,7 +614,7 @@ EXAMPLES
614
614
  $ hereya devenv sleep -w my-workspace
615
615
  ```
616
616
 
617
- _See code: [src/commands/devenv/sleep/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/devenv/sleep/index.ts)_
617
+ _See code: [src/commands/devenv/sleep/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/devenv/sleep/index.ts)_
618
618
 
619
619
  ## `hereya devenv ssh`
620
620
 
@@ -634,7 +634,7 @@ EXAMPLES
634
634
  $ hereya devenv ssh -w my-workspace
635
635
  ```
636
636
 
637
- _See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/devenv/ssh/index.ts)_
637
+ _See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/devenv/ssh/index.ts)_
638
638
 
639
639
  ## `hereya devenv uninstall`
640
640
 
@@ -655,7 +655,7 @@ EXAMPLES
655
655
  $ hereya devenv uninstall -w my-workspace
656
656
  ```
657
657
 
658
- _See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/devenv/uninstall/index.ts)_
658
+ _See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/devenv/uninstall/index.ts)_
659
659
 
660
660
  ## `hereya doc PACKAGE`
661
661
 
@@ -688,7 +688,7 @@ EXAMPLES
688
688
  $ hereya doc my-package --no-doc
689
689
  ```
690
690
 
691
- _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/doc/index.ts)_
691
+ _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/doc/index.ts)_
692
692
 
693
693
  ## `hereya docker run IMAGE`
694
694
 
@@ -719,7 +719,7 @@ EXAMPLES
719
719
  $ hereya docker run myapp:latest -- --rm -v ./data:/data
720
720
  ```
721
721
 
722
- _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/docker/run/index.ts)_
722
+ _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/docker/run/index.ts)_
723
723
 
724
724
  ## `hereya down`
725
725
 
@@ -746,7 +746,7 @@ EXAMPLES
746
746
  $ hereya down
747
747
  ```
748
748
 
749
- _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/down/index.ts)_
749
+ _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/down/index.ts)_
750
750
 
751
751
  ## `hereya env [NAME]`
752
752
 
@@ -777,7 +777,7 @@ EXAMPLES
777
777
  $ hereya env -w dev -l
778
778
  ```
779
779
 
780
- _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/env/index.ts)_
780
+ _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/env/index.ts)_
781
781
 
782
782
  ## `hereya env set [NAME]`
783
783
 
@@ -804,7 +804,7 @@ EXAMPLES
804
804
  $ hereya env set FOO -v bar -w dev
805
805
  ```
806
806
 
807
- _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/env/set/index.ts)_
807
+ _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/env/set/index.ts)_
808
808
 
809
809
  ## `hereya executor start`
810
810
 
@@ -838,7 +838,7 @@ EXAMPLES
838
838
  HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
839
839
  ```
840
840
 
841
- _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/executor/start/index.ts)_
841
+ _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/executor/start/index.ts)_
842
842
 
843
843
  ## `hereya flow add PACKAGE`
844
844
 
@@ -876,7 +876,7 @@ EXAMPLES
876
876
  $ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
877
877
  ```
878
878
 
879
- _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/flow/add/index.ts)_
879
+ _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/flow/add/index.ts)_
880
880
 
881
881
  ## `hereya flow docker run IMAGE`
882
882
 
@@ -906,7 +906,7 @@ EXAMPLES
906
906
  $ hereya flow docker run --pin myapp:latest -- --rm
907
907
  ```
908
908
 
909
- _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/flow/docker/run/index.ts)_
909
+ _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/flow/docker/run/index.ts)_
910
910
 
911
911
  ## `hereya flow down`
912
912
 
@@ -940,7 +940,7 @@ EXAMPLES
940
940
  $ hereya flow down --pin
941
941
  ```
942
942
 
943
- _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/flow/down/index.ts)_
943
+ _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/flow/down/index.ts)_
944
944
 
945
945
  ## `hereya flow env [NAME]`
946
946
 
@@ -974,7 +974,7 @@ EXAMPLES
974
974
  $ hereya flow env -l
975
975
  ```
976
976
 
977
- _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/flow/env/index.ts)_
977
+ _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/flow/env/index.ts)_
978
978
 
979
979
  ## `hereya flow provid PACKAGE`
980
980
 
@@ -1003,7 +1003,7 @@ EXAMPLES
1003
1003
  $ hereya flow provid hereya/postgres --pin
1004
1004
  ```
1005
1005
 
1006
- _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/flow/provid/index.ts)_
1006
+ _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/flow/provid/index.ts)_
1007
1007
 
1008
1008
  ## `hereya flow remove PACKAGE`
1009
1009
 
@@ -1033,7 +1033,7 @@ EXAMPLES
1033
1033
  $ hereya flow remove cloudy/docker_postgres --profile staging
1034
1034
  ```
1035
1035
 
1036
- _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/flow/remove/index.ts)_
1036
+ _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/flow/remove/index.ts)_
1037
1037
 
1038
1038
  ## `hereya flow run CMD`
1039
1039
 
@@ -1062,7 +1062,7 @@ EXAMPLES
1062
1062
  $ hereya flow run --pin -- npm test
1063
1063
  ```
1064
1064
 
1065
- _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/flow/run/index.ts)_
1065
+ _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/flow/run/index.ts)_
1066
1066
 
1067
1067
  ## `hereya flow up`
1068
1068
 
@@ -1096,7 +1096,7 @@ EXAMPLES
1096
1096
  $ hereya flow up --pin
1097
1097
  ```
1098
1098
 
1099
- _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/flow/up/index.ts)_
1099
+ _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/flow/up/index.ts)_
1100
1100
 
1101
1101
  ## `hereya help [COMMAND]`
1102
1102
 
@@ -1153,7 +1153,7 @@ EXAMPLES
1153
1153
  $ hereya import org/my-package -f state.tfstate -w my-workspace
1154
1154
  ```
1155
1155
 
1156
- _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/import/index.ts)_
1156
+ _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/import/index.ts)_
1157
1157
 
1158
1158
  ## `hereya import-repo PROJECT`
1159
1159
 
@@ -1183,7 +1183,7 @@ EXAMPLES
1183
1183
  $ hereya import-repo myProject -w=dev -r=https://github.com/acme/api --clone --chdir=./api
1184
1184
  ```
1185
1185
 
1186
- _See code: [src/commands/import-repo/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/import-repo/index.ts)_
1186
+ _See code: [src/commands/import-repo/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/import-repo/index.ts)_
1187
1187
 
1188
1188
  ## `hereya init PROJECT`
1189
1189
 
@@ -1217,7 +1217,7 @@ EXAMPLES
1217
1217
  $ hereya init myProject -w=dev -t=acme/node-starter -d=prod -p region=us-east-1
1218
1218
  ```
1219
1219
 
1220
- _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/init/index.ts)_
1220
+ _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/init/index.ts)_
1221
1221
 
1222
1222
  ## `hereya list`
1223
1223
 
@@ -1234,7 +1234,7 @@ EXAMPLES
1234
1234
  $ hereya list
1235
1235
  ```
1236
1236
 
1237
- _See code: [src/commands/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/list/index.ts)_
1237
+ _See code: [src/commands/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/list/index.ts)_
1238
1238
 
1239
1239
  ## `hereya login [URL]`
1240
1240
 
@@ -1263,7 +1263,7 @@ EXAMPLES
1263
1263
  $ hereya login --token=your-token https://cloud.hereya.dev
1264
1264
  ```
1265
1265
 
1266
- _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/login/index.ts)_
1266
+ _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/login/index.ts)_
1267
1267
 
1268
1268
  ## `hereya logout`
1269
1269
 
@@ -1280,7 +1280,7 @@ EXAMPLES
1280
1280
  $ hereya logout
1281
1281
  ```
1282
1282
 
1283
- _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/logout/index.ts)_
1283
+ _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/logout/index.ts)_
1284
1284
 
1285
1285
  ## `hereya provid PACKAGE`
1286
1286
 
@@ -1308,7 +1308,7 @@ EXAMPLES
1308
1308
  $ hereya provid hereya/postgres --workspace staging
1309
1309
  ```
1310
1310
 
1311
- _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/provid/index.ts)_
1311
+ _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/provid/index.ts)_
1312
1312
 
1313
1313
  ## `hereya publish`
1314
1314
 
@@ -1331,7 +1331,7 @@ EXAMPLES
1331
1331
  $ hereya publish --chdir=/path/to/package
1332
1332
  ```
1333
1333
 
1334
- _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/publish/index.ts)_
1334
+ _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/publish/index.ts)_
1335
1335
 
1336
1336
  ## `hereya remove PACKAGE`
1337
1337
 
@@ -1359,7 +1359,7 @@ EXAMPLES
1359
1359
  $ hereya remove cloudy/docker_postgres
1360
1360
  ```
1361
1361
 
1362
- _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/remove/index.ts)_
1362
+ _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/remove/index.ts)_
1363
1363
 
1364
1364
  ## `hereya run CMD`
1365
1365
 
@@ -1385,7 +1385,7 @@ EXAMPLES
1385
1385
  $ hereya run -w uat -- node index.js
1386
1386
  ```
1387
1387
 
1388
- _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/run/index.ts)_
1388
+ _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/run/index.ts)_
1389
1389
 
1390
1390
  ## `hereya search QUERY`
1391
1391
 
@@ -1416,7 +1416,7 @@ EXAMPLES
1416
1416
  $ hereya search database --json
1417
1417
  ```
1418
1418
 
1419
- _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/search/index.ts)_
1419
+ _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/search/index.ts)_
1420
1420
 
1421
1421
  ## `hereya unbootstrap INFRASTRUCTURETYPE`
1422
1422
 
@@ -1441,7 +1441,7 @@ EXAMPLES
1441
1441
  $ hereya unbootstrap local
1442
1442
  ```
1443
1443
 
1444
- _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/unbootstrap/index.ts)_
1444
+ _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/unbootstrap/index.ts)_
1445
1445
 
1446
1446
  ## `hereya undeploy`
1447
1447
 
@@ -1467,7 +1467,7 @@ EXAMPLES
1467
1467
  $ hereya undeploy
1468
1468
  ```
1469
1469
 
1470
- _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/undeploy/index.ts)_
1470
+ _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/undeploy/index.ts)_
1471
1471
 
1472
1472
  ## `hereya uninit PROJECT`
1473
1473
 
@@ -1495,7 +1495,7 @@ EXAMPLES
1495
1495
  $ hereya uninit myProject -w dev -p prodWorkspace=prod
1496
1496
  ```
1497
1497
 
1498
- _See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/uninit/index.ts)_
1498
+ _See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/uninit/index.ts)_
1499
1499
 
1500
1500
  ## `hereya up`
1501
1501
 
@@ -1522,7 +1522,7 @@ EXAMPLES
1522
1522
  $ hereya up
1523
1523
  ```
1524
1524
 
1525
- _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/up/index.ts)_
1525
+ _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/up/index.ts)_
1526
1526
 
1527
1527
  ## `hereya update [VERSION]`
1528
1528
 
@@ -1544,7 +1544,7 @@ EXAMPLES
1544
1544
  $ hereya update 0.75.0
1545
1545
  ```
1546
1546
 
1547
- _See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/update/index.ts)_
1547
+ _See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/update/index.ts)_
1548
1548
 
1549
1549
  ## `hereya workspace create NAME`
1550
1550
 
@@ -1569,7 +1569,7 @@ EXAMPLES
1569
1569
  $ hereya workspace create dev
1570
1570
  ```
1571
1571
 
1572
- _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/create/index.ts)_
1572
+ _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/create/index.ts)_
1573
1573
 
1574
1574
  ## `hereya workspace delete NAME`
1575
1575
 
@@ -1589,7 +1589,7 @@ EXAMPLES
1589
1589
  $ hereya workspace delete dev
1590
1590
  ```
1591
1591
 
1592
- _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/delete/index.ts)_
1592
+ _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/delete/index.ts)_
1593
1593
 
1594
1594
  ## `hereya workspace env [NAME]`
1595
1595
 
@@ -1615,7 +1615,7 @@ EXAMPLES
1615
1615
  $ hereya workspace env myEnv -w dev
1616
1616
  ```
1617
1617
 
1618
- _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/env/index.ts)_
1618
+ _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/env/index.ts)_
1619
1619
 
1620
1620
  ## `hereya workspace env set`
1621
1621
 
@@ -1639,7 +1639,7 @@ EXAMPLES
1639
1639
  $ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
1640
1640
  ```
1641
1641
 
1642
- _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/env/set/index.ts)_
1642
+ _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/env/set/index.ts)_
1643
1643
 
1644
1644
  ## `hereya workspace env unset`
1645
1645
 
@@ -1660,7 +1660,7 @@ EXAMPLES
1660
1660
  $ hereya workspace env unset -w my-workspace -n myVar
1661
1661
  ```
1662
1662
 
1663
- _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/env/unset/index.ts)_
1663
+ _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/env/unset/index.ts)_
1664
1664
 
1665
1665
  ## `hereya workspace executor install`
1666
1666
 
@@ -1689,7 +1689,7 @@ DESCRIPTION
1689
1689
  - always-on: a long-lived EC2 polls hereya-cloud 24/7 (legacy).
1690
1690
  ```
1691
1691
 
1692
- _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/executor/install/index.ts)_
1692
+ _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/executor/install/index.ts)_
1693
1693
 
1694
1694
  ## `hereya workspace executor token`
1695
1695
 
@@ -1706,7 +1706,7 @@ DESCRIPTION
1706
1706
  Generate a workspace-scoped executor token for the remote executor
1707
1707
  ```
1708
1708
 
1709
- _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/executor/token/index.ts)_
1709
+ _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/executor/token/index.ts)_
1710
1710
 
1711
1711
  ## `hereya workspace executor uninstall`
1712
1712
 
@@ -1730,7 +1730,7 @@ DESCRIPTION
1730
1730
  controls log output.
1731
1731
  ```
1732
1732
 
1733
- _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/executor/uninstall/index.ts)_
1733
+ _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/executor/uninstall/index.ts)_
1734
1734
 
1735
1735
  ## `hereya workspace install PACKAGE`
1736
1736
 
@@ -1757,7 +1757,7 @@ EXAMPLES
1757
1757
  $ hereya workspace install hereya/aws-cognito
1758
1758
  ```
1759
1759
 
1760
- _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/install/index.ts)_
1760
+ _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/install/index.ts)_
1761
1761
 
1762
1762
  ## `hereya workspace list`
1763
1763
 
@@ -1781,7 +1781,7 @@ EXAMPLES
1781
1781
  $ hereya workspace list --org personal
1782
1782
  ```
1783
1783
 
1784
- _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/list/index.ts)_
1784
+ _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/list/index.ts)_
1785
1785
 
1786
1786
  ## `hereya workspace set-profile PROFILE`
1787
1787
 
@@ -1805,7 +1805,7 @@ EXAMPLES
1805
1805
  $ hereya workspace set-profile prod-profile -w production
1806
1806
  ```
1807
1807
 
1808
- _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/set-profile/index.ts)_
1808
+ _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/set-profile/index.ts)_
1809
1809
 
1810
1810
  ## `hereya workspace uninstall PACKAGE`
1811
1811
 
@@ -1832,5 +1832,5 @@ EXAMPLES
1832
1832
  $ hereya workspace uninstall hereya/aws-cognito
1833
1833
  ```
1834
1834
 
1835
- _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.4/src/commands/workspace/uninstall/index.ts)_
1835
+ _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.100.6/src/commands/workspace/uninstall/index.ts)_
1836
1836
  <!-- commandsstop -->
@@ -1,3 +1,5 @@
1
+ import { getCurrentBackendType } from '../backend/config.js';
2
+ import { BackendType, getBackend } from '../backend/index.js';
1
3
  import { InfrastructureType } from '../infrastructure/common.js';
2
4
  import { resolvePackage } from '../lib/package/index.js';
3
5
  export class DelegatingExecutor {
@@ -36,7 +38,33 @@ export class DelegatingExecutor {
36
38
  if (pkg.startsWith('local/')) {
37
39
  return this.localExecutor;
38
40
  }
39
- // Resolve package to check infra type
41
+ // Cloud-backend short-circuit: read `infra` from the registry rather than
42
+ // cloning the package repo just to discover the infra type. This avoids
43
+ // requiring GitHub credentials on the user's local machine when the remote
44
+ // executor will handle all package fetching and provisioning server-side.
45
+ try {
46
+ const backendType = await getCurrentBackendType();
47
+ if (backendType === BackendType.Cloud) {
48
+ const backend = await getBackend();
49
+ const { packageName, version } = parsePackageSpec(pkg);
50
+ let registryResult;
51
+ if (version && backend.getPackageByVersion) {
52
+ registryResult = await backend.getPackageByVersion(packageName, version);
53
+ }
54
+ else if (backend.getPackageLatest) {
55
+ registryResult = await backend.getPackageLatest(packageName);
56
+ }
57
+ if (registryResult?.success) {
58
+ return registryResult.package.infra === InfrastructureType.local
59
+ ? this.localExecutor
60
+ : this.remoteExecutor;
61
+ }
62
+ }
63
+ }
64
+ catch {
65
+ // Fall through to legacy resolvePackage path on any failure
66
+ }
67
+ // Fallback: resolve package metadata via the legacy code path.
40
68
  try {
41
69
  const resolved = await resolvePackage({
42
70
  package: pkg,
@@ -52,3 +80,13 @@ export class DelegatingExecutor {
52
80
  return this.localExecutor;
53
81
  }
54
82
  }
83
+ // Parse package spec into name and version (mirrors the helper in
84
+ // `src/lib/package/index.ts`). `latest` is treated as no version.
85
+ function parsePackageSpec(spec) {
86
+ const match = spec.match(/^([^@]+)(?:@(.+))?$/);
87
+ if (!match) {
88
+ return { packageName: spec };
89
+ }
90
+ const [, packageName, version] = match;
91
+ return { packageName, version: version === 'latest' ? undefined : version };
92
+ }
package/dist/iac/cdk.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { CloudFormationClient, DescribeStacksCommand } from '@aws-sdk/client-cloudformation';
2
2
  import { readdir, readFile } from 'node:fs/promises';
3
3
  import path from 'node:path';
4
+ import { paramToEnvString } from '../lib/object-utils.js';
4
5
  import { runShell } from '../lib/shell.js';
5
6
  export class Cdk {
6
7
  async apply(input) {
@@ -58,7 +59,7 @@ export class Cdk {
58
59
  await runShell('npm', ['install'], { directory: workDir });
59
60
  await runShell('npx', ['aws-cdk', 'synth'], {
60
61
  directory: workDir,
61
- env: { ...input.env, ...input.parameters },
62
+ env: serializeEnvForProcess({ ...input.env, ...input.parameters }),
62
63
  logger: input.logger,
63
64
  });
64
65
  // Read template from cdk.out/ (reliable) instead of parsing stdout (fragile)
@@ -96,14 +97,23 @@ export class Cdk {
96
97
  const parameterNames = await this.getParameterNames(input);
97
98
  const serializedParameters = Object.entries(input.parameters ?? {})
98
99
  .filter(([key]) => parameterNames.includes(key))
99
- .flatMap(([key, value]) => ['--parameters', `${key}=${value}`]);
100
+ .flatMap(([key, value]) => ['--parameters', `${key}=${paramToEnvString(value)}`]);
100
101
  const serializedWorkspaceEnv = Object.entries(input.env)
101
102
  .filter(([key]) => parameterNames.includes(key))
102
- .flatMap(([key, value]) => ['--parameters', `${key}=${value}`]);
103
- const remainingEnv = Object.fromEntries(Object.entries({
103
+ .flatMap(([key, value]) => ['--parameters', `${key}=${paramToEnvString(value)}`]);
104
+ const remainingEnv = serializeEnvForProcess(Object.fromEntries(Object.entries({
104
105
  ...input.env,
105
106
  ...input.parameters,
106
- }).filter(([key]) => !parameterNames.includes(key)));
107
+ }).filter(([key]) => !parameterNames.includes(key))));
107
108
  return { remainingEnv, serializedParameters, serializedWorkspaceEnv };
108
109
  }
109
110
  }
111
+ /**
112
+ * Apply `paramToEnvString` to every value in an env-like record so the
113
+ * resulting map is safe to spread into `child_process.spawn`'s `env`.
114
+ * Arrays/objects become JSON; numbers/booleans become plain strings;
115
+ * null/undefined become empty strings.
116
+ */
117
+ function serializeEnvForProcess(env) {
118
+ return Object.fromEntries(Object.entries(env).map(([key, value]) => [key, paramToEnvString(value)]));
119
+ }
@@ -4,7 +4,7 @@ import os from 'node:os';
4
4
  import path from 'node:path';
5
5
  import { pipeline } from 'node:stream/promises';
6
6
  import { Extract as decompress } from 'unzip-stream';
7
- import { mapObject } from '../lib/object-utils.js';
7
+ import { mapObject, paramToEnvString } from '../lib/object-utils.js';
8
8
  import { runShell } from '../lib/shell.js';
9
9
  export class Terraform {
10
10
  async apply(input) {
@@ -46,12 +46,12 @@ export class Terraform {
46
46
  env: {
47
47
  ...mapObject(input.env ?? {}, (key, value) => [
48
48
  `TF_VAR_${key}`,
49
- typeof value === 'object' ? JSON.stringify(value) : value,
49
+ paramToEnvString(value),
50
50
  ]),
51
51
  ...input.env,
52
52
  ...mapObject(input.parameters ?? {}, (key, value) => [
53
53
  `TF_VAR_${key}`,
54
- typeof value === 'object' ? JSON.stringify(value) : value,
54
+ paramToEnvString(value),
55
55
  ]),
56
56
  },
57
57
  logger: input.logger,
@@ -61,12 +61,12 @@ export class Terraform {
61
61
  env: {
62
62
  ...mapObject(input.env ?? {}, (key, value) => [
63
63
  `TF_VAR_${key}`,
64
- typeof value === 'object' ? JSON.stringify(value) : value,
64
+ paramToEnvString(value),
65
65
  ]),
66
66
  ...input.env,
67
67
  ...mapObject(input.parameters ?? {}, (key, value) => [
68
68
  `TF_VAR_${key}`,
69
- typeof value === 'object' ? JSON.stringify(value) : value,
69
+ paramToEnvString(value),
70
70
  ]),
71
71
  },
72
72
  logger: input.logger,
@@ -124,12 +124,12 @@ export class Terraform {
124
124
  env: {
125
125
  ...mapObject(input.env ?? {}, (key, value) => [
126
126
  `TF_VAR_${key}`,
127
- typeof value === 'object' ? JSON.stringify(value) : value,
127
+ paramToEnvString(value),
128
128
  ]),
129
129
  ...input.env,
130
130
  ...mapObject(input.parameters ?? {}, (key, value) => [
131
131
  `TF_VAR_${key}`,
132
- typeof value === 'object' ? JSON.stringify(value) : value,
132
+ paramToEnvString(value),
133
133
  ]),
134
134
  },
135
135
  logger: input.logger,
@@ -140,12 +140,12 @@ export class Terraform {
140
140
  env: {
141
141
  ...mapObject(input.env ?? {}, (key, value) => [
142
142
  `TF_VAR_${key}`,
143
- typeof value === 'object' ? JSON.stringify(value) : value,
143
+ paramToEnvString(value),
144
144
  ]),
145
145
  ...input.env,
146
146
  ...mapObject(input.parameters ?? {}, (key, value) => [
147
147
  `TF_VAR_${key}`,
148
- typeof value === 'object' ? JSON.stringify(value) : value,
148
+ paramToEnvString(value),
149
149
  ]),
150
150
  },
151
151
  logger: input.logger,
@@ -1,4 +1,24 @@
1
1
  export declare function mapObject(obj: object, fn: (key: string, value: any) => [string, any]): object;
2
+ /**
3
+ * Coerce a parameter value (as parsed from a hereyavars YAML file or
4
+ * forwarded through the executor) into the string form expected by the
5
+ * package's CDK/Terraform process when injected as an environment variable
6
+ * or CLI argument.
7
+ *
8
+ * - Strings (including pre-stringified JSON) pass through unchanged so the
9
+ * existing "stringify it yourself" workaround keeps working.
10
+ * - Numbers and booleans become their plain string representation
11
+ * (matching the previous behavior of `String(value)`).
12
+ * - Arrays and objects are JSON-encoded so the receiving package can
13
+ * `JSON.parse(process.env.foo)` instead of receiving "[object Object]"
14
+ * or a comma-joined `Array.prototype.toString()`.
15
+ * - `null` and `undefined` become an empty string.
16
+ *
17
+ * Intended to be applied at the single boundary where the env map for the
18
+ * package process is built — not earlier in the pipeline, so the parsed
19
+ * YAML can stay structured everywhere else in the CLI.
20
+ */
21
+ export declare function paramToEnvString(value: unknown): string;
2
22
  export declare function arrayOfStringToObject(arr: string[], keyValueSeparator?: string): {
3
23
  [k: string]: string;
4
24
  };
@@ -1,6 +1,36 @@
1
1
  export function mapObject(obj, fn) {
2
2
  return Object.fromEntries(Object.entries(obj).map(([key, value]) => fn(key, value)));
3
3
  }
4
+ /**
5
+ * Coerce a parameter value (as parsed from a hereyavars YAML file or
6
+ * forwarded through the executor) into the string form expected by the
7
+ * package's CDK/Terraform process when injected as an environment variable
8
+ * or CLI argument.
9
+ *
10
+ * - Strings (including pre-stringified JSON) pass through unchanged so the
11
+ * existing "stringify it yourself" workaround keeps working.
12
+ * - Numbers and booleans become their plain string representation
13
+ * (matching the previous behavior of `String(value)`).
14
+ * - Arrays and objects are JSON-encoded so the receiving package can
15
+ * `JSON.parse(process.env.foo)` instead of receiving "[object Object]"
16
+ * or a comma-joined `Array.prototype.toString()`.
17
+ * - `null` and `undefined` become an empty string.
18
+ *
19
+ * Intended to be applied at the single boundary where the env map for the
20
+ * package process is built — not earlier in the pipeline, so the parsed
21
+ * YAML can stay structured everywhere else in the CLI.
22
+ */
23
+ export function paramToEnvString(value) {
24
+ if (value === null || value === undefined)
25
+ return '';
26
+ if (typeof value === 'string')
27
+ return value;
28
+ if (typeof value === 'number' || typeof value === 'boolean') {
29
+ return String(value);
30
+ }
31
+ // Objects/arrays -> JSON. Round-trippable and what package authors expect.
32
+ return JSON.stringify(value);
33
+ }
4
34
  export function arrayOfStringToObject(arr, keyValueSeparator = '=') {
5
35
  return Object.fromEntries(arr.map((item) => {
6
36
  const [key, value] = item.split(keyValueSeparator);
@@ -63,33 +63,32 @@
63
63
  "index.js"
64
64
  ]
65
65
  },
66
- "clone": {
66
+ "bootstrap": {
67
67
  "aliases": [],
68
68
  "args": {
69
- "project": {
70
- "description": "project name",
71
- "name": "project",
69
+ "infrastructureType": {
70
+ "description": "infrastructure to bootstrap. Options are local, aws",
71
+ "name": "infrastructureType",
72
72
  "required": true
73
73
  }
74
74
  },
75
- "description": "Clone an existing template-based project to the local machine.",
75
+ "description": "Install necessary resources for hereya operations in an infrastructure.",
76
76
  "examples": [
77
- "<%= config.bin %> <%= command.id %> myProject",
78
- "<%= config.bin %> <%= command.id %> myProject --chdir=./myProject"
77
+ "<%= config.bin %> <%= command.id %> aws",
78
+ "<%= config.bin %> <%= command.id %> local"
79
79
  ],
80
80
  "flags": {
81
- "chdir": {
82
- "description": "directory to clone into",
83
- "name": "chdir",
84
- "required": false,
85
- "hasDynamicHelp": false,
86
- "multiple": false,
87
- "type": "option"
81
+ "force": {
82
+ "char": "f",
83
+ "description": "redeploy hereya resources if already deployed",
84
+ "name": "force",
85
+ "allowNo": false,
86
+ "type": "boolean"
88
87
  }
89
88
  },
90
89
  "hasDynamicHelp": false,
91
90
  "hiddenAliases": [],
92
- "id": "clone",
91
+ "id": "bootstrap",
93
92
  "pluginAlias": "hereya-cli",
94
93
  "pluginName": "hereya-cli",
95
94
  "pluginType": "core",
@@ -99,36 +98,37 @@
99
98
  "relativePath": [
100
99
  "dist",
101
100
  "commands",
102
- "clone",
101
+ "bootstrap",
103
102
  "index.js"
104
103
  ]
105
104
  },
106
- "bootstrap": {
105
+ "clone": {
107
106
  "aliases": [],
108
107
  "args": {
109
- "infrastructureType": {
110
- "description": "infrastructure to bootstrap. Options are local, aws",
111
- "name": "infrastructureType",
108
+ "project": {
109
+ "description": "project name",
110
+ "name": "project",
112
111
  "required": true
113
112
  }
114
113
  },
115
- "description": "Install necessary resources for hereya operations in an infrastructure.",
114
+ "description": "Clone an existing template-based project to the local machine.",
116
115
  "examples": [
117
- "<%= config.bin %> <%= command.id %> aws",
118
- "<%= config.bin %> <%= command.id %> local"
116
+ "<%= config.bin %> <%= command.id %> myProject",
117
+ "<%= config.bin %> <%= command.id %> myProject --chdir=./myProject"
119
118
  ],
120
119
  "flags": {
121
- "force": {
122
- "char": "f",
123
- "description": "redeploy hereya resources if already deployed",
124
- "name": "force",
125
- "allowNo": false,
126
- "type": "boolean"
120
+ "chdir": {
121
+ "description": "directory to clone into",
122
+ "name": "chdir",
123
+ "required": false,
124
+ "hasDynamicHelp": false,
125
+ "multiple": false,
126
+ "type": "option"
127
127
  }
128
128
  },
129
129
  "hasDynamicHelp": false,
130
130
  "hiddenAliases": [],
131
- "id": "bootstrap",
131
+ "id": "clone",
132
132
  "pluginAlias": "hereya-cli",
133
133
  "pluginName": "hereya-cli",
134
134
  "pluginType": "core",
@@ -138,7 +138,7 @@
138
138
  "relativePath": [
139
139
  "dist",
140
140
  "commands",
141
- "bootstrap",
141
+ "clone",
142
142
  "index.js"
143
143
  ]
144
144
  },
@@ -1042,37 +1042,41 @@
1042
1042
  "index.js"
1043
1043
  ]
1044
1044
  },
1045
- "undeploy": {
1045
+ "uninit": {
1046
1046
  "aliases": [],
1047
- "args": {},
1048
- "description": "Undeploy a hereya project by removing all resources.",
1047
+ "args": {
1048
+ "project": {
1049
+ "description": "project name",
1050
+ "name": "project",
1051
+ "required": true
1052
+ }
1053
+ },
1054
+ "description": "Destroy template infrastructure and uninitialize a project.",
1049
1055
  "examples": [
1050
- "<%= config.bin %> <%= command.id %>"
1056
+ "<%= config.bin %> <%= command.id %> myProject -w dev",
1057
+ "<%= config.bin %> <%= command.id %> myProject -w dev -p prodWorkspace=prod"
1051
1058
  ],
1052
1059
  "flags": {
1053
1060
  "chdir": {
1054
- "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 ",
1061
+ "description": "directory to run command in",
1055
1062
  "name": "chdir",
1056
1063
  "required": false,
1057
1064
  "hasDynamicHelp": false,
1058
1065
  "multiple": false,
1059
1066
  "type": "option"
1060
1067
  },
1061
- "debug": {
1062
- "description": "enable debug mode",
1063
- "name": "debug",
1064
- "allowNo": false,
1065
- "type": "boolean"
1066
- },
1067
- "local": {
1068
- "description": "force local execution (skip remote executor)",
1069
- "name": "local",
1070
- "allowNo": false,
1071
- "type": "boolean"
1068
+ "parameter": {
1069
+ "char": "p",
1070
+ "description": "parameter for the template, in the form of 'key=value'. Overrides saved parameters.",
1071
+ "name": "parameter",
1072
+ "default": [],
1073
+ "hasDynamicHelp": false,
1074
+ "multiple": true,
1075
+ "type": "option"
1072
1076
  },
1073
1077
  "workspace": {
1074
1078
  "char": "w",
1075
- "description": "name of the workspace to undeploy the packages for",
1079
+ "description": "workspace used during init",
1076
1080
  "name": "workspace",
1077
1081
  "required": true,
1078
1082
  "hasDynamicHelp": false,
@@ -1082,7 +1086,7 @@
1082
1086
  },
1083
1087
  "hasDynamicHelp": false,
1084
1088
  "hiddenAliases": [],
1085
- "id": "undeploy",
1089
+ "id": "uninit",
1086
1090
  "pluginAlias": "hereya-cli",
1087
1091
  "pluginName": "hereya-cli",
1088
1092
  "pluginType": "core",
@@ -1092,45 +1096,41 @@
1092
1096
  "relativePath": [
1093
1097
  "dist",
1094
1098
  "commands",
1095
- "undeploy",
1099
+ "uninit",
1096
1100
  "index.js"
1097
1101
  ]
1098
1102
  },
1099
- "uninit": {
1103
+ "undeploy": {
1100
1104
  "aliases": [],
1101
- "args": {
1102
- "project": {
1103
- "description": "project name",
1104
- "name": "project",
1105
- "required": true
1106
- }
1107
- },
1108
- "description": "Destroy template infrastructure and uninitialize a project.",
1105
+ "args": {},
1106
+ "description": "Undeploy a hereya project by removing all resources.",
1109
1107
  "examples": [
1110
- "<%= config.bin %> <%= command.id %> myProject -w dev",
1111
- "<%= config.bin %> <%= command.id %> myProject -w dev -p prodWorkspace=prod"
1108
+ "<%= config.bin %> <%= command.id %>"
1112
1109
  ],
1113
1110
  "flags": {
1114
1111
  "chdir": {
1115
- "description": "directory to run command in",
1112
+ "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 ",
1116
1113
  "name": "chdir",
1117
1114
  "required": false,
1118
1115
  "hasDynamicHelp": false,
1119
1116
  "multiple": false,
1120
1117
  "type": "option"
1121
1118
  },
1122
- "parameter": {
1123
- "char": "p",
1124
- "description": "parameter for the template, in the form of 'key=value'. Overrides saved parameters.",
1125
- "name": "parameter",
1126
- "default": [],
1127
- "hasDynamicHelp": false,
1128
- "multiple": true,
1129
- "type": "option"
1119
+ "debug": {
1120
+ "description": "enable debug mode",
1121
+ "name": "debug",
1122
+ "allowNo": false,
1123
+ "type": "boolean"
1124
+ },
1125
+ "local": {
1126
+ "description": "force local execution (skip remote executor)",
1127
+ "name": "local",
1128
+ "allowNo": false,
1129
+ "type": "boolean"
1130
1130
  },
1131
1131
  "workspace": {
1132
1132
  "char": "w",
1133
- "description": "workspace used during init",
1133
+ "description": "name of the workspace to undeploy the packages for",
1134
1134
  "name": "workspace",
1135
1135
  "required": true,
1136
1136
  "hasDynamicHelp": false,
@@ -1140,7 +1140,7 @@
1140
1140
  },
1141
1141
  "hasDynamicHelp": false,
1142
1142
  "hiddenAliases": [],
1143
- "id": "uninit",
1143
+ "id": "undeploy",
1144
1144
  "pluginAlias": "hereya-cli",
1145
1145
  "pluginName": "hereya-cli",
1146
1146
  "pluginType": "core",
@@ -1150,7 +1150,7 @@
1150
1150
  "relativePath": [
1151
1151
  "dist",
1152
1152
  "commands",
1153
- "uninit",
1153
+ "undeploy",
1154
1154
  "index.js"
1155
1155
  ]
1156
1156
  },
@@ -2022,42 +2022,42 @@
2022
2022
  "index.js"
2023
2023
  ]
2024
2024
  },
2025
- "executor:start": {
2025
+ "env:set": {
2026
2026
  "aliases": [],
2027
- "args": {},
2028
- "description": "Start the remote executor process (polls for jobs from hereya cloud).\n\nJobs are executed in parallel up to the concurrency limit (default: 10). Use --concurrency to adjust.\n\nSet the HEREYA_TOKEN environment variable to authenticate without running `hereya login`.\nSet the HEREYA_CLOUD_URL environment variable to target a specific hereya cloud instance (defaults to https://cloud.hereya.dev).",
2027
+ "args": {
2028
+ "name": {
2029
+ "description": "name of the environment variable to set",
2030
+ "name": "name"
2031
+ }
2032
+ },
2033
+ "description": "Set an user-defined environment variable for the project",
2029
2034
  "examples": [
2030
- "<%= config.bin %> <%= command.id %> -w my-workspace",
2031
- "<%= config.bin %> <%= command.id %> -w my-workspace --concurrency 5",
2032
- "HEREYA_TOKEN=<token> <%= config.bin %> <%= command.id %> -w my-workspace",
2033
- "HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com <%= config.bin %> <%= command.id %> -w my-workspace"
2035
+ "<%= config.bin %> <%= command.id %> FOO -v bar",
2036
+ "<%= config.bin %> <%= command.id %> FOO -v bar -w dev"
2034
2037
  ],
2035
2038
  "flags": {
2036
- "concurrency": {
2037
- "char": "c",
2038
- "description": "maximum number of parallel jobs",
2039
- "name": "concurrency",
2040
- "default": 10,
2039
+ "chdir": {
2040
+ "description": "project root directory",
2041
+ "name": "chdir",
2042
+ "required": false,
2041
2043
  "hasDynamicHelp": false,
2042
2044
  "multiple": false,
2043
2045
  "type": "option"
2044
2046
  },
2045
- "idleTimeout": {
2046
- "aliases": [
2047
- "idle-timeout"
2048
- ],
2049
- "char": "i",
2050
- "description": "seconds idle before exit; omit to keep running indefinitely",
2051
- "name": "idleTimeout",
2047
+ "value": {
2048
+ "char": "v",
2049
+ "description": "value of the environment variable",
2050
+ "name": "value",
2051
+ "required": true,
2052
2052
  "hasDynamicHelp": false,
2053
2053
  "multiple": false,
2054
2054
  "type": "option"
2055
2055
  },
2056
2056
  "workspace": {
2057
2057
  "char": "w",
2058
- "description": "name of the workspace to poll jobs for",
2058
+ "description": "name of the workspace to print the env vars for",
2059
2059
  "name": "workspace",
2060
- "required": true,
2060
+ "required": false,
2061
2061
  "hasDynamicHelp": false,
2062
2062
  "multiple": false,
2063
2063
  "type": "option"
@@ -2065,7 +2065,7 @@
2065
2065
  },
2066
2066
  "hasDynamicHelp": false,
2067
2067
  "hiddenAliases": [],
2068
- "id": "executor:start",
2068
+ "id": "env:set",
2069
2069
  "pluginAlias": "hereya-cli",
2070
2070
  "pluginName": "hereya-cli",
2071
2071
  "pluginType": "core",
@@ -2075,47 +2075,47 @@
2075
2075
  "relativePath": [
2076
2076
  "dist",
2077
2077
  "commands",
2078
- "executor",
2079
- "start",
2078
+ "env",
2079
+ "set",
2080
2080
  "index.js"
2081
2081
  ]
2082
2082
  },
2083
- "env:set": {
2083
+ "executor:start": {
2084
2084
  "aliases": [],
2085
- "args": {
2086
- "name": {
2087
- "description": "name of the environment variable to set",
2088
- "name": "name"
2089
- }
2090
- },
2091
- "description": "Set an user-defined environment variable for the project",
2085
+ "args": {},
2086
+ "description": "Start the remote executor process (polls for jobs from hereya cloud).\n\nJobs are executed in parallel up to the concurrency limit (default: 10). Use --concurrency to adjust.\n\nSet the HEREYA_TOKEN environment variable to authenticate without running `hereya login`.\nSet the HEREYA_CLOUD_URL environment variable to target a specific hereya cloud instance (defaults to https://cloud.hereya.dev).",
2092
2087
  "examples": [
2093
- "<%= config.bin %> <%= command.id %> FOO -v bar",
2094
- "<%= config.bin %> <%= command.id %> FOO -v bar -w dev"
2088
+ "<%= config.bin %> <%= command.id %> -w my-workspace",
2089
+ "<%= config.bin %> <%= command.id %> -w my-workspace --concurrency 5",
2090
+ "HEREYA_TOKEN=<token> <%= config.bin %> <%= command.id %> -w my-workspace",
2091
+ "HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com <%= config.bin %> <%= command.id %> -w my-workspace"
2095
2092
  ],
2096
2093
  "flags": {
2097
- "chdir": {
2098
- "description": "project root directory",
2099
- "name": "chdir",
2100
- "required": false,
2094
+ "concurrency": {
2095
+ "char": "c",
2096
+ "description": "maximum number of parallel jobs",
2097
+ "name": "concurrency",
2098
+ "default": 10,
2101
2099
  "hasDynamicHelp": false,
2102
2100
  "multiple": false,
2103
2101
  "type": "option"
2104
2102
  },
2105
- "value": {
2106
- "char": "v",
2107
- "description": "value of the environment variable",
2108
- "name": "value",
2109
- "required": true,
2103
+ "idleTimeout": {
2104
+ "aliases": [
2105
+ "idle-timeout"
2106
+ ],
2107
+ "char": "i",
2108
+ "description": "seconds idle before exit; omit to keep running indefinitely",
2109
+ "name": "idleTimeout",
2110
2110
  "hasDynamicHelp": false,
2111
2111
  "multiple": false,
2112
2112
  "type": "option"
2113
2113
  },
2114
2114
  "workspace": {
2115
2115
  "char": "w",
2116
- "description": "name of the workspace to print the env vars for",
2116
+ "description": "name of the workspace to poll jobs for",
2117
2117
  "name": "workspace",
2118
- "required": false,
2118
+ "required": true,
2119
2119
  "hasDynamicHelp": false,
2120
2120
  "multiple": false,
2121
2121
  "type": "option"
@@ -2123,7 +2123,7 @@
2123
2123
  },
2124
2124
  "hasDynamicHelp": false,
2125
2125
  "hiddenAliases": [],
2126
- "id": "env:set",
2126
+ "id": "executor:start",
2127
2127
  "pluginAlias": "hereya-cli",
2128
2128
  "pluginName": "hereya-cli",
2129
2129
  "pluginType": "core",
@@ -2133,8 +2133,8 @@
2133
2133
  "relativePath": [
2134
2134
  "dist",
2135
2135
  "commands",
2136
- "env",
2137
- "set",
2136
+ "executor",
2137
+ "start",
2138
2138
  "index.js"
2139
2139
  ]
2140
2140
  },
@@ -3409,5 +3409,5 @@
3409
3409
  ]
3410
3410
  }
3411
3411
  },
3412
- "version": "0.100.4"
3412
+ "version": "0.100.6"
3413
3413
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.100.4",
4
+ "version": "0.100.6",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.cjs"