hereya-cli 0.65.0 → 0.66.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 CHANGED
@@ -20,7 +20,7 @@ $ npm install -g hereya-cli
20
20
  $ hereya COMMAND
21
21
  running command...
22
22
  $ hereya (--version)
23
- hereya-cli/0.65.0 linux-x64 node-v24.14.0
23
+ hereya-cli/0.66.1 linux-x64 node-v24.14.0
24
24
  $ hereya --help [COMMAND]
25
25
  USAGE
26
26
  $ hereya COMMAND
@@ -109,7 +109,7 @@ EXAMPLES
109
109
  $ hereya add cloudy/docker_postgres
110
110
  ```
111
111
 
112
- _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/add/index.ts)_
112
+ _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/add/index.ts)_
113
113
 
114
114
  ## `hereya bootstrap INFRASTRUCTURETYPE`
115
115
 
@@ -134,7 +134,7 @@ EXAMPLES
134
134
  $ hereya bootstrap local
135
135
  ```
136
136
 
137
- _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/bootstrap/index.ts)_
137
+ _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/bootstrap/index.ts)_
138
138
 
139
139
  ## `hereya config export-backend [FILE]`
140
140
 
@@ -156,7 +156,7 @@ EXAMPLES
156
156
  $ hereya config export-backend ./path/to/export.json
157
157
  ```
158
158
 
159
- _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/config/export-backend/index.ts)_
159
+ _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/config/export-backend/index.ts)_
160
160
 
161
161
  ## `hereya config get-backend`
162
162
 
@@ -173,7 +173,7 @@ EXAMPLES
173
173
  $ hereya config get-backend
174
174
  ```
175
175
 
176
- _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/config/get-backend/index.ts)_
176
+ _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/config/get-backend/index.ts)_
177
177
 
178
178
  ## `hereya config import-backend FILE`
179
179
 
@@ -193,7 +193,7 @@ EXAMPLES
193
193
  $ hereya config import-backend ./path/to/cloud-backend.json
194
194
  ```
195
195
 
196
- _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/config/import-backend/index.ts)_
196
+ _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/config/import-backend/index.ts)_
197
197
 
198
198
  ## `hereya config use-backend TYPE`
199
199
 
@@ -215,7 +215,7 @@ EXAMPLES
215
215
  $ hereya config use-backend local
216
216
  ```
217
217
 
218
- _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/config/use-backend/index.ts)_
218
+ _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/config/use-backend/index.ts)_
219
219
 
220
220
  ## `hereya delete-state`
221
221
 
@@ -241,7 +241,7 @@ EXAMPLES
241
241
  $ hereya delete-state --workspace staging
242
242
  ```
243
243
 
244
- _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/delete-state/index.ts)_
244
+ _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/delete-state/index.ts)_
245
245
 
246
246
  ## `hereya deploy`
247
247
 
@@ -266,7 +266,7 @@ EXAMPLES
266
266
  $ hereya deploy
267
267
  ```
268
268
 
269
- _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/deploy/index.ts)_
269
+ _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/deploy/index.ts)_
270
270
 
271
271
  ## `hereya doc PACKAGE`
272
272
 
@@ -299,7 +299,7 @@ EXAMPLES
299
299
  $ hereya doc my-package --no-doc
300
300
  ```
301
301
 
302
- _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/doc/index.ts)_
302
+ _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/doc/index.ts)_
303
303
 
304
304
  ## `hereya docker run IMAGE`
305
305
 
@@ -330,7 +330,7 @@ EXAMPLES
330
330
  $ hereya docker run myapp:latest -- --rm -v ./data:/data
331
331
  ```
332
332
 
333
- _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/docker/run/index.ts)_
333
+ _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/docker/run/index.ts)_
334
334
 
335
335
  ## `hereya down`
336
336
 
@@ -357,7 +357,7 @@ EXAMPLES
357
357
  $ hereya down
358
358
  ```
359
359
 
360
- _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/down/index.ts)_
360
+ _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/down/index.ts)_
361
361
 
362
362
  ## `hereya env [NAME]`
363
363
 
@@ -388,7 +388,7 @@ EXAMPLES
388
388
  $ hereya env -w dev -l
389
389
  ```
390
390
 
391
- _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/env/index.ts)_
391
+ _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/env/index.ts)_
392
392
 
393
393
  ## `hereya env set [NAME]`
394
394
 
@@ -415,7 +415,7 @@ EXAMPLES
415
415
  $ hereya env set FOO -v bar -w dev
416
416
  ```
417
417
 
418
- _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/env/set/index.ts)_
418
+ _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/env/set/index.ts)_
419
419
 
420
420
  ## `hereya executor start`
421
421
 
@@ -448,7 +448,7 @@ EXAMPLES
448
448
  HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
449
449
  ```
450
450
 
451
- _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/executor/start/index.ts)_
451
+ _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/executor/start/index.ts)_
452
452
 
453
453
  ## `hereya flow add PACKAGE`
454
454
 
@@ -486,7 +486,7 @@ EXAMPLES
486
486
  $ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
487
487
  ```
488
488
 
489
- _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/flow/add/index.ts)_
489
+ _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/flow/add/index.ts)_
490
490
 
491
491
  ## `hereya flow docker run IMAGE`
492
492
 
@@ -516,7 +516,7 @@ EXAMPLES
516
516
  $ hereya flow docker run --pin myapp:latest -- --rm
517
517
  ```
518
518
 
519
- _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/flow/docker/run/index.ts)_
519
+ _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/flow/docker/run/index.ts)_
520
520
 
521
521
  ## `hereya flow down`
522
522
 
@@ -550,7 +550,7 @@ EXAMPLES
550
550
  $ hereya flow down --pin
551
551
  ```
552
552
 
553
- _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/flow/down/index.ts)_
553
+ _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/flow/down/index.ts)_
554
554
 
555
555
  ## `hereya flow env [NAME]`
556
556
 
@@ -584,7 +584,7 @@ EXAMPLES
584
584
  $ hereya flow env -l
585
585
  ```
586
586
 
587
- _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/flow/env/index.ts)_
587
+ _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/flow/env/index.ts)_
588
588
 
589
589
  ## `hereya flow provid PACKAGE`
590
590
 
@@ -613,7 +613,7 @@ EXAMPLES
613
613
  $ hereya flow provid hereya/postgres --pin
614
614
  ```
615
615
 
616
- _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/flow/provid/index.ts)_
616
+ _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/flow/provid/index.ts)_
617
617
 
618
618
  ## `hereya flow remove PACKAGE`
619
619
 
@@ -643,7 +643,7 @@ EXAMPLES
643
643
  $ hereya flow remove cloudy/docker_postgres --profile staging
644
644
  ```
645
645
 
646
- _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/flow/remove/index.ts)_
646
+ _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/flow/remove/index.ts)_
647
647
 
648
648
  ## `hereya flow run CMD`
649
649
 
@@ -672,7 +672,7 @@ EXAMPLES
672
672
  $ hereya flow run --pin -- npm test
673
673
  ```
674
674
 
675
- _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/flow/run/index.ts)_
675
+ _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/flow/run/index.ts)_
676
676
 
677
677
  ## `hereya flow up`
678
678
 
@@ -706,7 +706,7 @@ EXAMPLES
706
706
  $ hereya flow up --pin
707
707
  ```
708
708
 
709
- _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/flow/up/index.ts)_
709
+ _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/flow/up/index.ts)_
710
710
 
711
711
  ## `hereya help [COMMAND]`
712
712
 
@@ -763,7 +763,7 @@ EXAMPLES
763
763
  $ hereya import org/my-package -f state.tfstate -w my-workspace
764
764
  ```
765
765
 
766
- _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/import/index.ts)_
766
+ _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/import/index.ts)_
767
767
 
768
768
  ## `hereya init PROJECT`
769
769
 
@@ -789,7 +789,7 @@ EXAMPLES
789
789
  $ hereya init myProject -w=defaultWorkspace --chdir=./myProject
790
790
  ```
791
791
 
792
- _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/init/index.ts)_
792
+ _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/init/index.ts)_
793
793
 
794
794
  ## `hereya login [URL]`
795
795
 
@@ -818,7 +818,7 @@ EXAMPLES
818
818
  $ hereya login --token=your-token https://cloud.hereya.dev
819
819
  ```
820
820
 
821
- _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/login/index.ts)_
821
+ _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/login/index.ts)_
822
822
 
823
823
  ## `hereya logout`
824
824
 
@@ -835,7 +835,7 @@ EXAMPLES
835
835
  $ hereya logout
836
836
  ```
837
837
 
838
- _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/logout/index.ts)_
838
+ _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/logout/index.ts)_
839
839
 
840
840
  ## `hereya provid PACKAGE`
841
841
 
@@ -863,7 +863,7 @@ EXAMPLES
863
863
  $ hereya provid hereya/postgres --workspace staging
864
864
  ```
865
865
 
866
- _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/provid/index.ts)_
866
+ _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/provid/index.ts)_
867
867
 
868
868
  ## `hereya publish`
869
869
 
@@ -886,7 +886,7 @@ EXAMPLES
886
886
  $ hereya publish --chdir=/path/to/package
887
887
  ```
888
888
 
889
- _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/publish/index.ts)_
889
+ _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/publish/index.ts)_
890
890
 
891
891
  ## `hereya remove PACKAGE`
892
892
 
@@ -914,7 +914,7 @@ EXAMPLES
914
914
  $ hereya remove cloudy/docker_postgres
915
915
  ```
916
916
 
917
- _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/remove/index.ts)_
917
+ _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/remove/index.ts)_
918
918
 
919
919
  ## `hereya run CMD`
920
920
 
@@ -940,7 +940,7 @@ EXAMPLES
940
940
  $ hereya run -w uat -- node index.js
941
941
  ```
942
942
 
943
- _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/run/index.ts)_
943
+ _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/run/index.ts)_
944
944
 
945
945
  ## `hereya search QUERY`
946
946
 
@@ -971,7 +971,7 @@ EXAMPLES
971
971
  $ hereya search database --json
972
972
  ```
973
973
 
974
- _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/search/index.ts)_
974
+ _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/search/index.ts)_
975
975
 
976
976
  ## `hereya unbootstrap INFRASTRUCTURETYPE`
977
977
 
@@ -996,7 +996,7 @@ EXAMPLES
996
996
  $ hereya unbootstrap local
997
997
  ```
998
998
 
999
- _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/unbootstrap/index.ts)_
999
+ _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/unbootstrap/index.ts)_
1000
1000
 
1001
1001
  ## `hereya undeploy`
1002
1002
 
@@ -1021,7 +1021,7 @@ EXAMPLES
1021
1021
  $ hereya undeploy
1022
1022
  ```
1023
1023
 
1024
- _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/undeploy/index.ts)_
1024
+ _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/undeploy/index.ts)_
1025
1025
 
1026
1026
  ## `hereya up`
1027
1027
 
@@ -1048,7 +1048,7 @@ EXAMPLES
1048
1048
  $ hereya up
1049
1049
  ```
1050
1050
 
1051
- _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/up/index.ts)_
1051
+ _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/up/index.ts)_
1052
1052
 
1053
1053
  ## `hereya workspace create NAME`
1054
1054
 
@@ -1073,7 +1073,7 @@ EXAMPLES
1073
1073
  $ hereya workspace create dev
1074
1074
  ```
1075
1075
 
1076
- _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/create/index.ts)_
1076
+ _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/create/index.ts)_
1077
1077
 
1078
1078
  ## `hereya workspace delete NAME`
1079
1079
 
@@ -1093,7 +1093,7 @@ EXAMPLES
1093
1093
  $ hereya workspace delete dev
1094
1094
  ```
1095
1095
 
1096
- _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/delete/index.ts)_
1096
+ _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/delete/index.ts)_
1097
1097
 
1098
1098
  ## `hereya workspace env [NAME]`
1099
1099
 
@@ -1119,7 +1119,7 @@ EXAMPLES
1119
1119
  $ hereya workspace env myEnv -w dev
1120
1120
  ```
1121
1121
 
1122
- _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/env/index.ts)_
1122
+ _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/env/index.ts)_
1123
1123
 
1124
1124
  ## `hereya workspace env set`
1125
1125
 
@@ -1143,7 +1143,7 @@ EXAMPLES
1143
1143
  $ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
1144
1144
  ```
1145
1145
 
1146
- _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/env/set/index.ts)_
1146
+ _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/env/set/index.ts)_
1147
1147
 
1148
1148
  ## `hereya workspace env unset`
1149
1149
 
@@ -1164,7 +1164,7 @@ EXAMPLES
1164
1164
  $ hereya workspace env unset -w my-workspace -n myVar
1165
1165
  ```
1166
1166
 
1167
- _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/env/unset/index.ts)_
1167
+ _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/env/unset/index.ts)_
1168
1168
 
1169
1169
  ## `hereya workspace executor install`
1170
1170
 
@@ -1182,7 +1182,7 @@ DESCRIPTION
1182
1182
  Install a remote executor into a workspace
1183
1183
  ```
1184
1184
 
1185
- _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/executor/install/index.ts)_
1185
+ _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/executor/install/index.ts)_
1186
1186
 
1187
1187
  ## `hereya workspace executor token`
1188
1188
 
@@ -1199,7 +1199,7 @@ DESCRIPTION
1199
1199
  Generate a workspace-scoped executor token for the remote executor
1200
1200
  ```
1201
1201
 
1202
- _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/executor/token/index.ts)_
1202
+ _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/executor/token/index.ts)_
1203
1203
 
1204
1204
  ## `hereya workspace executor uninstall`
1205
1205
 
@@ -1217,7 +1217,7 @@ DESCRIPTION
1217
1217
  Uninstall the remote executor from a workspace
1218
1218
  ```
1219
1219
 
1220
- _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/executor/uninstall/index.ts)_
1220
+ _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/executor/uninstall/index.ts)_
1221
1221
 
1222
1222
  ## `hereya workspace install PACKAGE`
1223
1223
 
@@ -1244,7 +1244,7 @@ EXAMPLES
1244
1244
  $ hereya workspace install hereya/aws-cognito
1245
1245
  ```
1246
1246
 
1247
- _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/install/index.ts)_
1247
+ _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/install/index.ts)_
1248
1248
 
1249
1249
  ## `hereya workspace list`
1250
1250
 
@@ -1268,7 +1268,7 @@ EXAMPLES
1268
1268
  $ hereya workspace list --org personal
1269
1269
  ```
1270
1270
 
1271
- _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/list/index.ts)_
1271
+ _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/list/index.ts)_
1272
1272
 
1273
1273
  ## `hereya workspace set-profile PROFILE`
1274
1274
 
@@ -1292,7 +1292,7 @@ EXAMPLES
1292
1292
  $ hereya workspace set-profile prod-profile -w production
1293
1293
  ```
1294
1294
 
1295
- _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/set-profile/index.ts)_
1295
+ _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/set-profile/index.ts)_
1296
1296
 
1297
1297
  ## `hereya workspace uninstall PACKAGE`
1298
1298
 
@@ -1319,5 +1319,5 @@ EXAMPLES
1319
1319
  $ hereya workspace uninstall hereya/aws-cognito
1320
1320
  ```
1321
1321
 
1322
- _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.65.0/src/commands/workspace/uninstall/index.ts)_
1322
+ _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.66.1/src/commands/workspace/uninstall/index.ts)_
1323
1323
  <!-- commandsstop -->
@@ -183,7 +183,7 @@ export default class Add extends Command {
183
183
  const configManager = getConfigManager();
184
184
  const { config } = await configManager.loadConfig({ projectRootDir });
185
185
  const devDeploy = config.devDeploy ?? {};
186
- if (Object.keys(devDeploy).length === 0) {
186
+ if (Object.keys(devDeploy).length === 0 || Boolean(ctx.provisionOutput.metadata.deploy)) {
187
187
  return;
188
188
  }
189
189
  const backend = await getBackend();
@@ -210,7 +210,7 @@ export default class Add extends Command {
210
210
  {
211
211
  skip(ctx) {
212
212
  const devDeploy = ctx.configOutput.config.devDeploy ?? {};
213
- return Object.keys(devDeploy).length === 0;
213
+ return Object.keys(devDeploy).length === 0 || Boolean(ctx.provisionOutput.metadata.deploy);
214
214
  },
215
215
  async task(ctx, task) {
216
216
  const configManager = getConfigManager();
@@ -192,13 +192,13 @@ export default class Remove extends Command {
192
192
  {
193
193
  skip(ctx) {
194
194
  const devDeploy = ctx.configOutput.config.devDeploy ?? {};
195
- return Object.keys(devDeploy).length === 0;
195
+ return Object.keys(devDeploy).length === 0 || Boolean(ctx.destroyOutput.metadata.deploy);
196
196
  },
197
197
  async task(ctx) {
198
198
  const configManager = getConfigManager();
199
199
  const { config } = await configManager.loadConfig({ projectRootDir });
200
200
  const devDeploy = config.devDeploy ?? {};
201
- if (Object.keys(devDeploy).length === 0) {
201
+ if (Object.keys(devDeploy).length === 0 || Boolean(ctx.destroyOutput.metadata.deploy)) {
202
202
  return;
203
203
  }
204
204
  const backend = await getBackend();
@@ -224,7 +224,7 @@ export default class Remove extends Command {
224
224
  {
225
225
  skip(ctx) {
226
226
  const devDeploy = ctx.configOutput.config.devDeploy ?? {};
227
- return Object.keys(devDeploy).length === 0;
227
+ return Object.keys(devDeploy).length === 0 || Boolean(ctx.destroyOutput.metadata.deploy);
228
228
  },
229
229
  async task(ctx, task) {
230
230
  const configManager = getConfigManager();
@@ -32,6 +32,10 @@ export class DelegatingExecutor {
32
32
  if (isDeploying) {
33
33
  return this.localExecutor;
34
34
  }
35
+ // Local filesystem packages always use local executor
36
+ if (pkg.startsWith('local/')) {
37
+ return this.localExecutor;
38
+ }
35
39
  // Resolve package to check infra type
36
40
  try {
37
41
  const resolved = await resolvePackage({
@@ -5,6 +5,7 @@ export class LocalExecutor {
5
5
  async destroy(input) {
6
6
  const getWorkspaceEnvOutput = await this.getWorkspaceEnv({
7
7
  project: input.project,
8
+ skipResolve: true,
8
9
  workspace: input.workspace,
9
10
  });
10
11
  if (!getWorkspaceEnvOutput.success) {
@@ -51,6 +52,7 @@ export class LocalExecutor {
51
52
  async provision(input) {
52
53
  const getWorkspaceEnvOutput = await this.getWorkspaceEnv({
53
54
  project: input.project,
55
+ skipResolve: true,
54
56
  workspace: input.workspace,
55
57
  });
56
58
  if (!getWorkspaceEnvOutput.success) {
@@ -162,7 +164,7 @@ export class LocalExecutor {
162
164
  workspace: input.workspace,
163
165
  });
164
166
  }
165
- async getWorkspaceEnv({ project, workspace, }) {
167
+ async getWorkspaceEnv({ project, skipResolve, workspace, }) {
166
168
  if (!workspace || !project) {
167
169
  return { env: {}, success: true };
168
170
  }
@@ -175,7 +177,7 @@ export class LocalExecutor {
175
177
  return { reason: result.reason, success: false };
176
178
  }
177
179
  return {
178
- env: await this.resolveEnvValues({ env: result.env }),
180
+ env: skipResolve ? result.env : await this.resolveEnvValues({ env: result.env }),
179
181
  success: true,
180
182
  };
181
183
  }
@@ -6,6 +6,7 @@ import { Infrastructure, InfrastructureType } from './common.js';
6
6
  import { LocalInfrastructure } from './local.js';
7
7
  export declare const localInfrastructure: LocalInfrastructure;
8
8
  export declare const awsInfrastructure: AwsInfrastructure;
9
+ export declare function resolveEnvValues(env: Record<string, string>): Promise<Record<string, string>>;
9
10
  export declare function getInfrastructure(input: GetInfrastructureInput): GetInfrastructureOutput;
10
11
  export declare function destroyPackage(input: DestroyPackageInput): Promise<DestroyPackageOutput>;
11
12
  export declare function provisionPackage(input: ProvisionPackageInput): Promise<ProvisionPackageOutput>;
@@ -6,6 +6,21 @@ import { InfrastructureType } from './common.js';
6
6
  import { LocalInfrastructure } from './local.js';
7
7
  export const localInfrastructure = new LocalInfrastructure();
8
8
  export const awsInfrastructure = new AwsInfrastructure();
9
+ export async function resolveEnvValues(env) {
10
+ return Object.fromEntries(await Promise.all(Object.entries(env).map(async ([key, value]) => {
11
+ const colonIndex = value.indexOf(':');
12
+ if (colonIndex === -1)
13
+ return [key, value];
14
+ const infraType = value.slice(0, colonIndex);
15
+ const infra$ = getInfrastructure({ type: infraType });
16
+ if (!infra$.supported)
17
+ return [key, value];
18
+ const { infrastructure } = infra$;
19
+ const valueWithoutInfra = value.slice(colonIndex + 1);
20
+ const { value: resolvedValue } = await infrastructure.resolveEnv({ value: valueWithoutInfra });
21
+ return [key, resolvedValue];
22
+ })));
23
+ }
9
24
  export function getInfrastructure(input) {
10
25
  switch (input.type) {
11
26
  case InfrastructureType.aws: {
@@ -57,10 +72,13 @@ export async function destroyPackage(input) {
57
72
  return { reason: id$.reason, success: false };
58
73
  }
59
74
  const { id } = id$;
75
+ const resolvedEnv = metadata.infra === InfrastructureType.local
76
+ ? (input.env ?? {})
77
+ : await resolveEnvValues(input.env ?? {});
60
78
  const destroyOutput = metadata.deploy
61
79
  ? await infrastructure.undeploy({
62
80
  canonicalName,
63
- env: input.env,
81
+ env: resolvedEnv,
64
82
  iacType: metadata.iac,
65
83
  id,
66
84
  logger: input.logger,
@@ -74,7 +92,7 @@ export async function destroyPackage(input) {
74
92
  : metadata.devDeploy
75
93
  ? await infrastructure.destroy({
76
94
  canonicalName,
77
- env: { ...input.env, ...input.projectEnv },
95
+ env: { ...resolvedEnv, ...input.projectEnv },
78
96
  iacType: metadata.iac,
79
97
  id,
80
98
  logger: input.logger,
@@ -85,7 +103,7 @@ export async function destroyPackage(input) {
85
103
  })
86
104
  : await infrastructure.destroy({
87
105
  canonicalName,
88
- env: input.env,
106
+ env: resolvedEnv,
89
107
  iacType: metadata.iac,
90
108
  id,
91
109
  logger: input.logger,
@@ -164,10 +182,13 @@ export async function provisionPackage(input) {
164
182
  return { reason: id$.reason, success: false };
165
183
  }
166
184
  const { id } = id$;
185
+ const resolvedEnv = metadata.infra === InfrastructureType.local
186
+ ? (input.env ?? {})
187
+ : await resolveEnvValues(input.env ?? {});
167
188
  const provisionOutput = metadata.deploy
168
189
  ? await infrastructure.deploy({
169
190
  canonicalName,
170
- env: { ...input.env, ...depsEnv },
191
+ env: { ...resolvedEnv, ...depsEnv },
171
192
  iacType: metadata.iac,
172
193
  id,
173
194
  logger: input.logger,
@@ -181,7 +202,7 @@ export async function provisionPackage(input) {
181
202
  : metadata.devDeploy
182
203
  ? await infrastructure.provision({
183
204
  canonicalName,
184
- env: { ...input.env, ...depsEnv, ...input.projectEnv },
205
+ env: { ...resolvedEnv, ...depsEnv, ...input.projectEnv },
185
206
  iacType: metadata.iac,
186
207
  id,
187
208
  logger: input.logger,
@@ -192,7 +213,7 @@ export async function provisionPackage(input) {
192
213
  })
193
214
  : await infrastructure.provision({
194
215
  canonicalName,
195
- env: input.env,
216
+ env: resolvedEnv,
196
217
  iacType: metadata.iac,
197
218
  id,
198
219
  logger: input.logger,
@@ -2050,6 +2050,76 @@
2050
2050
  "index.js"
2051
2051
  ]
2052
2052
  },
2053
+ "workspace:env:set": {
2054
+ "aliases": [],
2055
+ "args": {},
2056
+ "description": "set an env var for a workspace",
2057
+ "examples": [
2058
+ "<%= config.bin %> <%= command.id %> -w my-workspace -n myVar -v my-value -i aws -s"
2059
+ ],
2060
+ "flags": {
2061
+ "infra": {
2062
+ "char": "i",
2063
+ "description": "the infrastructure to store the env var in",
2064
+ "name": "infra",
2065
+ "required": true,
2066
+ "hasDynamicHelp": false,
2067
+ "multiple": false,
2068
+ "type": "option"
2069
+ },
2070
+ "name": {
2071
+ "char": "n",
2072
+ "description": "name of the env var to set",
2073
+ "name": "name",
2074
+ "required": true,
2075
+ "hasDynamicHelp": false,
2076
+ "multiple": false,
2077
+ "type": "option"
2078
+ },
2079
+ "sensitive": {
2080
+ "char": "s",
2081
+ "description": "whether the env var is sensitive",
2082
+ "name": "sensitive",
2083
+ "allowNo": false,
2084
+ "type": "boolean"
2085
+ },
2086
+ "value": {
2087
+ "char": "v",
2088
+ "description": "value of the env var to set",
2089
+ "name": "value",
2090
+ "required": true,
2091
+ "hasDynamicHelp": false,
2092
+ "multiple": false,
2093
+ "type": "option"
2094
+ },
2095
+ "workspace": {
2096
+ "char": "w",
2097
+ "description": "name of the workspace to set an env var for",
2098
+ "name": "workspace",
2099
+ "required": true,
2100
+ "hasDynamicHelp": false,
2101
+ "multiple": false,
2102
+ "type": "option"
2103
+ }
2104
+ },
2105
+ "hasDynamicHelp": false,
2106
+ "hiddenAliases": [],
2107
+ "id": "workspace:env:set",
2108
+ "pluginAlias": "hereya-cli",
2109
+ "pluginName": "hereya-cli",
2110
+ "pluginType": "core",
2111
+ "strict": true,
2112
+ "enableJsonFlag": false,
2113
+ "isESM": true,
2114
+ "relativePath": [
2115
+ "dist",
2116
+ "commands",
2117
+ "workspace",
2118
+ "env",
2119
+ "set",
2120
+ "index.js"
2121
+ ]
2122
+ },
2053
2123
  "flow:docker:run": {
2054
2124
  "aliases": [],
2055
2125
  "args": {
@@ -2118,51 +2188,20 @@
2118
2188
  "index.js"
2119
2189
  ]
2120
2190
  },
2121
- "workspace:env:set": {
2191
+ "workspace:executor:install": {
2122
2192
  "aliases": [],
2123
2193
  "args": {},
2124
- "description": "set an env var for a workspace",
2125
- "examples": [
2126
- "<%= config.bin %> <%= command.id %> -w my-workspace -n myVar -v my-value -i aws -s"
2127
- ],
2194
+ "description": "Install a remote executor into a workspace",
2128
2195
  "flags": {
2129
- "infra": {
2130
- "char": "i",
2131
- "description": "the infrastructure to store the env var in",
2132
- "name": "infra",
2133
- "required": true,
2134
- "hasDynamicHelp": false,
2135
- "multiple": false,
2136
- "type": "option"
2137
- },
2138
- "name": {
2139
- "char": "n",
2140
- "description": "name of the env var to set",
2141
- "name": "name",
2142
- "required": true,
2143
- "hasDynamicHelp": false,
2144
- "multiple": false,
2145
- "type": "option"
2146
- },
2147
- "sensitive": {
2148
- "char": "s",
2149
- "description": "whether the env var is sensitive",
2150
- "name": "sensitive",
2196
+ "debug": {
2197
+ "description": "enable debug mode",
2198
+ "name": "debug",
2151
2199
  "allowNo": false,
2152
2200
  "type": "boolean"
2153
2201
  },
2154
- "value": {
2155
- "char": "v",
2156
- "description": "value of the env var to set",
2157
- "name": "value",
2158
- "required": true,
2159
- "hasDynamicHelp": false,
2160
- "multiple": false,
2161
- "type": "option"
2162
- },
2163
2202
  "workspace": {
2164
2203
  "char": "w",
2165
- "description": "name of the workspace to set an env var for",
2204
+ "description": "name of the workspace",
2166
2205
  "name": "workspace",
2167
2206
  "required": true,
2168
2207
  "hasDynamicHelp": false,
@@ -2172,7 +2211,7 @@
2172
2211
  },
2173
2212
  "hasDynamicHelp": false,
2174
2213
  "hiddenAliases": [],
2175
- "id": "workspace:env:set",
2214
+ "id": "workspace:executor:install",
2176
2215
  "pluginAlias": "hereya-cli",
2177
2216
  "pluginName": "hereya-cli",
2178
2217
  "pluginType": "core",
@@ -2183,8 +2222,8 @@
2183
2222
  "dist",
2184
2223
  "commands",
2185
2224
  "workspace",
2186
- "env",
2187
- "set",
2225
+ "executor",
2226
+ "install",
2188
2227
  "index.js"
2189
2228
  ]
2190
2229
  },
@@ -2233,45 +2272,6 @@
2233
2272
  "index.js"
2234
2273
  ]
2235
2274
  },
2236
- "workspace:executor:install": {
2237
- "aliases": [],
2238
- "args": {},
2239
- "description": "Install a remote executor into a workspace",
2240
- "flags": {
2241
- "debug": {
2242
- "description": "enable debug mode",
2243
- "name": "debug",
2244
- "allowNo": false,
2245
- "type": "boolean"
2246
- },
2247
- "workspace": {
2248
- "char": "w",
2249
- "description": "name of the workspace",
2250
- "name": "workspace",
2251
- "required": true,
2252
- "hasDynamicHelp": false,
2253
- "multiple": false,
2254
- "type": "option"
2255
- }
2256
- },
2257
- "hasDynamicHelp": false,
2258
- "hiddenAliases": [],
2259
- "id": "workspace:executor:install",
2260
- "pluginAlias": "hereya-cli",
2261
- "pluginName": "hereya-cli",
2262
- "pluginType": "core",
2263
- "strict": true,
2264
- "enableJsonFlag": false,
2265
- "isESM": true,
2266
- "relativePath": [
2267
- "dist",
2268
- "commands",
2269
- "workspace",
2270
- "executor",
2271
- "install",
2272
- "index.js"
2273
- ]
2274
- },
2275
2275
  "workspace:executor:token": {
2276
2276
  "aliases": [],
2277
2277
  "args": {},
@@ -2345,5 +2345,5 @@
2345
2345
  ]
2346
2346
  }
2347
2347
  },
2348
- "version": "0.65.0"
2348
+ "version": "0.66.1"
2349
2349
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.65.0",
4
+ "version": "0.66.1",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.js"