hereya-cli 0.73.3 → 0.73.4

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.73.3 linux-x64 node-v24.14.0
24
+ hereya-cli/0.73.4 linux-x64 node-v24.14.0
25
25
  $ hereya --help [COMMAND]
26
26
  USAGE
27
27
  $ hereya COMMAND
@@ -117,7 +117,7 @@ EXAMPLES
117
117
  $ hereya add cloudy/docker_postgres
118
118
  ```
119
119
 
120
- _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/add/index.ts)_
120
+ _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/add/index.ts)_
121
121
 
122
122
  ## `hereya bootstrap INFRASTRUCTURETYPE`
123
123
 
@@ -142,7 +142,7 @@ EXAMPLES
142
142
  $ hereya bootstrap local
143
143
  ```
144
144
 
145
- _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/bootstrap/index.ts)_
145
+ _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/bootstrap/index.ts)_
146
146
 
147
147
  ## `hereya config export-backend [FILE]`
148
148
 
@@ -164,7 +164,7 @@ EXAMPLES
164
164
  $ hereya config export-backend ./path/to/export.json
165
165
  ```
166
166
 
167
- _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/config/export-backend/index.ts)_
167
+ _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/config/export-backend/index.ts)_
168
168
 
169
169
  ## `hereya config get-backend`
170
170
 
@@ -181,7 +181,7 @@ EXAMPLES
181
181
  $ hereya config get-backend
182
182
  ```
183
183
 
184
- _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/config/get-backend/index.ts)_
184
+ _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/config/get-backend/index.ts)_
185
185
 
186
186
  ## `hereya config import-backend FILE`
187
187
 
@@ -201,7 +201,7 @@ EXAMPLES
201
201
  $ hereya config import-backend ./path/to/cloud-backend.json
202
202
  ```
203
203
 
204
- _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/config/import-backend/index.ts)_
204
+ _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/config/import-backend/index.ts)_
205
205
 
206
206
  ## `hereya config use-backend TYPE`
207
207
 
@@ -223,7 +223,7 @@ EXAMPLES
223
223
  $ hereya config use-backend local
224
224
  ```
225
225
 
226
- _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/config/use-backend/index.ts)_
226
+ _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/config/use-backend/index.ts)_
227
227
 
228
228
  ## `hereya delete-state`
229
229
 
@@ -249,7 +249,7 @@ EXAMPLES
249
249
  $ hereya delete-state --workspace staging
250
250
  ```
251
251
 
252
- _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/delete-state/index.ts)_
252
+ _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/delete-state/index.ts)_
253
253
 
254
254
  ## `hereya deploy`
255
255
 
@@ -274,7 +274,7 @@ EXAMPLES
274
274
  $ hereya deploy
275
275
  ```
276
276
 
277
- _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/deploy/index.ts)_
277
+ _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/deploy/index.ts)_
278
278
 
279
279
  ## `hereya devenv config`
280
280
 
@@ -294,7 +294,7 @@ EXAMPLES
294
294
  $ hereya devenv config -w my-workspace
295
295
  ```
296
296
 
297
- _See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/devenv/config/index.ts)_
297
+ _See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/devenv/config/index.ts)_
298
298
 
299
299
  ## `hereya devenv install`
300
300
 
@@ -319,7 +319,7 @@ EXAMPLES
319
319
  $ hereya devenv install -w my-workspace -p instanceType=t3.large
320
320
  ```
321
321
 
322
- _See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/devenv/install/index.ts)_
322
+ _See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/devenv/install/index.ts)_
323
323
 
324
324
  ## `hereya devenv project init PROJECT`
325
325
 
@@ -350,7 +350,7 @@ EXAMPLES
350
350
  $ hereya devenv project init my-app -w my-workspace -t acme/node-starter -p region=us-east-1
351
351
  ```
352
352
 
353
- _See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/devenv/project/init/index.ts)_
353
+ _See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/devenv/project/init/index.ts)_
354
354
 
355
355
  ## `hereya devenv project uninit PROJECT`
356
356
 
@@ -376,7 +376,7 @@ EXAMPLES
376
376
  $ hereya devenv project uninit my-app -w my-workspace --force
377
377
  ```
378
378
 
379
- _See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/devenv/project/uninit/index.ts)_
379
+ _See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/devenv/project/uninit/index.ts)_
380
380
 
381
381
  ## `hereya devenv ssh`
382
382
 
@@ -396,7 +396,7 @@ EXAMPLES
396
396
  $ hereya devenv ssh -w my-workspace
397
397
  ```
398
398
 
399
- _See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/devenv/ssh/index.ts)_
399
+ _See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/devenv/ssh/index.ts)_
400
400
 
401
401
  ## `hereya devenv uninstall`
402
402
 
@@ -417,7 +417,7 @@ EXAMPLES
417
417
  $ hereya devenv uninstall -w my-workspace
418
418
  ```
419
419
 
420
- _See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/devenv/uninstall/index.ts)_
420
+ _See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/devenv/uninstall/index.ts)_
421
421
 
422
422
  ## `hereya doc PACKAGE`
423
423
 
@@ -450,7 +450,7 @@ EXAMPLES
450
450
  $ hereya doc my-package --no-doc
451
451
  ```
452
452
 
453
- _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/doc/index.ts)_
453
+ _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/doc/index.ts)_
454
454
 
455
455
  ## `hereya docker run IMAGE`
456
456
 
@@ -481,7 +481,7 @@ EXAMPLES
481
481
  $ hereya docker run myapp:latest -- --rm -v ./data:/data
482
482
  ```
483
483
 
484
- _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/docker/run/index.ts)_
484
+ _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/docker/run/index.ts)_
485
485
 
486
486
  ## `hereya down`
487
487
 
@@ -508,7 +508,7 @@ EXAMPLES
508
508
  $ hereya down
509
509
  ```
510
510
 
511
- _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/down/index.ts)_
511
+ _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/down/index.ts)_
512
512
 
513
513
  ## `hereya env [NAME]`
514
514
 
@@ -539,7 +539,7 @@ EXAMPLES
539
539
  $ hereya env -w dev -l
540
540
  ```
541
541
 
542
- _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/env/index.ts)_
542
+ _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/env/index.ts)_
543
543
 
544
544
  ## `hereya env set [NAME]`
545
545
 
@@ -566,7 +566,7 @@ EXAMPLES
566
566
  $ hereya env set FOO -v bar -w dev
567
567
  ```
568
568
 
569
- _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/env/set/index.ts)_
569
+ _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/env/set/index.ts)_
570
570
 
571
571
  ## `hereya executor start`
572
572
 
@@ -599,7 +599,7 @@ EXAMPLES
599
599
  HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
600
600
  ```
601
601
 
602
- _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/executor/start/index.ts)_
602
+ _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/executor/start/index.ts)_
603
603
 
604
604
  ## `hereya flow add PACKAGE`
605
605
 
@@ -637,7 +637,7 @@ EXAMPLES
637
637
  $ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
638
638
  ```
639
639
 
640
- _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/flow/add/index.ts)_
640
+ _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/flow/add/index.ts)_
641
641
 
642
642
  ## `hereya flow docker run IMAGE`
643
643
 
@@ -667,7 +667,7 @@ EXAMPLES
667
667
  $ hereya flow docker run --pin myapp:latest -- --rm
668
668
  ```
669
669
 
670
- _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/flow/docker/run/index.ts)_
670
+ _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/flow/docker/run/index.ts)_
671
671
 
672
672
  ## `hereya flow down`
673
673
 
@@ -701,7 +701,7 @@ EXAMPLES
701
701
  $ hereya flow down --pin
702
702
  ```
703
703
 
704
- _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/flow/down/index.ts)_
704
+ _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/flow/down/index.ts)_
705
705
 
706
706
  ## `hereya flow env [NAME]`
707
707
 
@@ -735,7 +735,7 @@ EXAMPLES
735
735
  $ hereya flow env -l
736
736
  ```
737
737
 
738
- _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/flow/env/index.ts)_
738
+ _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/flow/env/index.ts)_
739
739
 
740
740
  ## `hereya flow provid PACKAGE`
741
741
 
@@ -764,7 +764,7 @@ EXAMPLES
764
764
  $ hereya flow provid hereya/postgres --pin
765
765
  ```
766
766
 
767
- _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/flow/provid/index.ts)_
767
+ _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/flow/provid/index.ts)_
768
768
 
769
769
  ## `hereya flow remove PACKAGE`
770
770
 
@@ -794,7 +794,7 @@ EXAMPLES
794
794
  $ hereya flow remove cloudy/docker_postgres --profile staging
795
795
  ```
796
796
 
797
- _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/flow/remove/index.ts)_
797
+ _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/flow/remove/index.ts)_
798
798
 
799
799
  ## `hereya flow run CMD`
800
800
 
@@ -823,7 +823,7 @@ EXAMPLES
823
823
  $ hereya flow run --pin -- npm test
824
824
  ```
825
825
 
826
- _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/flow/run/index.ts)_
826
+ _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/flow/run/index.ts)_
827
827
 
828
828
  ## `hereya flow up`
829
829
 
@@ -857,7 +857,7 @@ EXAMPLES
857
857
  $ hereya flow up --pin
858
858
  ```
859
859
 
860
- _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/flow/up/index.ts)_
860
+ _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/flow/up/index.ts)_
861
861
 
862
862
  ## `hereya help [COMMAND]`
863
863
 
@@ -914,7 +914,7 @@ EXAMPLES
914
914
  $ hereya import org/my-package -f state.tfstate -w my-workspace
915
915
  ```
916
916
 
917
- _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/import/index.ts)_
917
+ _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/import/index.ts)_
918
918
 
919
919
  ## `hereya init PROJECT`
920
920
 
@@ -947,7 +947,7 @@ EXAMPLES
947
947
  $ hereya init myProject -w=dev -t=acme/node-starter -p region=us-east-1
948
948
  ```
949
949
 
950
- _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/init/index.ts)_
950
+ _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/init/index.ts)_
951
951
 
952
952
  ## `hereya login [URL]`
953
953
 
@@ -976,7 +976,7 @@ EXAMPLES
976
976
  $ hereya login --token=your-token https://cloud.hereya.dev
977
977
  ```
978
978
 
979
- _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/login/index.ts)_
979
+ _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/login/index.ts)_
980
980
 
981
981
  ## `hereya logout`
982
982
 
@@ -993,7 +993,7 @@ EXAMPLES
993
993
  $ hereya logout
994
994
  ```
995
995
 
996
- _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/logout/index.ts)_
996
+ _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/logout/index.ts)_
997
997
 
998
998
  ## `hereya provid PACKAGE`
999
999
 
@@ -1021,7 +1021,7 @@ EXAMPLES
1021
1021
  $ hereya provid hereya/postgres --workspace staging
1022
1022
  ```
1023
1023
 
1024
- _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/provid/index.ts)_
1024
+ _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/provid/index.ts)_
1025
1025
 
1026
1026
  ## `hereya publish`
1027
1027
 
@@ -1044,7 +1044,7 @@ EXAMPLES
1044
1044
  $ hereya publish --chdir=/path/to/package
1045
1045
  ```
1046
1046
 
1047
- _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/publish/index.ts)_
1047
+ _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/publish/index.ts)_
1048
1048
 
1049
1049
  ## `hereya remove PACKAGE`
1050
1050
 
@@ -1072,7 +1072,7 @@ EXAMPLES
1072
1072
  $ hereya remove cloudy/docker_postgres
1073
1073
  ```
1074
1074
 
1075
- _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/remove/index.ts)_
1075
+ _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/remove/index.ts)_
1076
1076
 
1077
1077
  ## `hereya run CMD`
1078
1078
 
@@ -1098,7 +1098,7 @@ EXAMPLES
1098
1098
  $ hereya run -w uat -- node index.js
1099
1099
  ```
1100
1100
 
1101
- _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/run/index.ts)_
1101
+ _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/run/index.ts)_
1102
1102
 
1103
1103
  ## `hereya search QUERY`
1104
1104
 
@@ -1129,7 +1129,7 @@ EXAMPLES
1129
1129
  $ hereya search database --json
1130
1130
  ```
1131
1131
 
1132
- _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/search/index.ts)_
1132
+ _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/search/index.ts)_
1133
1133
 
1134
1134
  ## `hereya unbootstrap INFRASTRUCTURETYPE`
1135
1135
 
@@ -1154,7 +1154,7 @@ EXAMPLES
1154
1154
  $ hereya unbootstrap local
1155
1155
  ```
1156
1156
 
1157
- _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/unbootstrap/index.ts)_
1157
+ _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/unbootstrap/index.ts)_
1158
1158
 
1159
1159
  ## `hereya undeploy`
1160
1160
 
@@ -1179,7 +1179,7 @@ EXAMPLES
1179
1179
  $ hereya undeploy
1180
1180
  ```
1181
1181
 
1182
- _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/undeploy/index.ts)_
1182
+ _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/undeploy/index.ts)_
1183
1183
 
1184
1184
  ## `hereya uninit PROJECT`
1185
1185
 
@@ -1187,23 +1187,27 @@ Destroy template infrastructure and uninitialize a project.
1187
1187
 
1188
1188
  ```
1189
1189
  USAGE
1190
- $ hereya uninit PROJECT -w <value> [--chdir <value>]
1190
+ $ hereya uninit PROJECT -w <value> [--chdir <value>] [-p <value>...]
1191
1191
 
1192
1192
  ARGUMENTS
1193
1193
  PROJECT project name
1194
1194
 
1195
1195
  FLAGS
1196
- -w, --workspace=<value> (required) workspace used during init
1197
- --chdir=<value> directory to run command in
1196
+ -p, --parameter=<value>... [default: ] parameter for the template, in the form of 'key=value'. Overrides saved
1197
+ parameters.
1198
+ -w, --workspace=<value> (required) workspace used during init
1199
+ --chdir=<value> directory to run command in
1198
1200
 
1199
1201
  DESCRIPTION
1200
1202
  Destroy template infrastructure and uninitialize a project.
1201
1203
 
1202
1204
  EXAMPLES
1203
1205
  $ hereya uninit myProject -w dev
1206
+
1207
+ $ hereya uninit myProject -w dev -p prodWorkspace=prod
1204
1208
  ```
1205
1209
 
1206
- _See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/uninit/index.ts)_
1210
+ _See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/uninit/index.ts)_
1207
1211
 
1208
1212
  ## `hereya up`
1209
1213
 
@@ -1230,7 +1234,7 @@ EXAMPLES
1230
1234
  $ hereya up
1231
1235
  ```
1232
1236
 
1233
- _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/up/index.ts)_
1237
+ _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/up/index.ts)_
1234
1238
 
1235
1239
  ## `hereya workspace create NAME`
1236
1240
 
@@ -1255,7 +1259,7 @@ EXAMPLES
1255
1259
  $ hereya workspace create dev
1256
1260
  ```
1257
1261
 
1258
- _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/create/index.ts)_
1262
+ _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/create/index.ts)_
1259
1263
 
1260
1264
  ## `hereya workspace delete NAME`
1261
1265
 
@@ -1275,7 +1279,7 @@ EXAMPLES
1275
1279
  $ hereya workspace delete dev
1276
1280
  ```
1277
1281
 
1278
- _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/delete/index.ts)_
1282
+ _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/delete/index.ts)_
1279
1283
 
1280
1284
  ## `hereya workspace env [NAME]`
1281
1285
 
@@ -1301,7 +1305,7 @@ EXAMPLES
1301
1305
  $ hereya workspace env myEnv -w dev
1302
1306
  ```
1303
1307
 
1304
- _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/env/index.ts)_
1308
+ _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/env/index.ts)_
1305
1309
 
1306
1310
  ## `hereya workspace env set`
1307
1311
 
@@ -1325,7 +1329,7 @@ EXAMPLES
1325
1329
  $ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
1326
1330
  ```
1327
1331
 
1328
- _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/env/set/index.ts)_
1332
+ _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/env/set/index.ts)_
1329
1333
 
1330
1334
  ## `hereya workspace env unset`
1331
1335
 
@@ -1346,7 +1350,7 @@ EXAMPLES
1346
1350
  $ hereya workspace env unset -w my-workspace -n myVar
1347
1351
  ```
1348
1352
 
1349
- _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/env/unset/index.ts)_
1353
+ _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/env/unset/index.ts)_
1350
1354
 
1351
1355
  ## `hereya workspace executor install`
1352
1356
 
@@ -1365,7 +1369,7 @@ DESCRIPTION
1365
1369
  Install a remote executor into a workspace
1366
1370
  ```
1367
1371
 
1368
- _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/executor/install/index.ts)_
1372
+ _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/executor/install/index.ts)_
1369
1373
 
1370
1374
  ## `hereya workspace executor token`
1371
1375
 
@@ -1382,7 +1386,7 @@ DESCRIPTION
1382
1386
  Generate a workspace-scoped executor token for the remote executor
1383
1387
  ```
1384
1388
 
1385
- _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/executor/token/index.ts)_
1389
+ _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/executor/token/index.ts)_
1386
1390
 
1387
1391
  ## `hereya workspace executor uninstall`
1388
1392
 
@@ -1400,7 +1404,7 @@ DESCRIPTION
1400
1404
  Uninstall the remote executor from a workspace
1401
1405
  ```
1402
1406
 
1403
- _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/executor/uninstall/index.ts)_
1407
+ _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/executor/uninstall/index.ts)_
1404
1408
 
1405
1409
  ## `hereya workspace install PACKAGE`
1406
1410
 
@@ -1427,7 +1431,7 @@ EXAMPLES
1427
1431
  $ hereya workspace install hereya/aws-cognito
1428
1432
  ```
1429
1433
 
1430
- _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/install/index.ts)_
1434
+ _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/install/index.ts)_
1431
1435
 
1432
1436
  ## `hereya workspace list`
1433
1437
 
@@ -1451,7 +1455,7 @@ EXAMPLES
1451
1455
  $ hereya workspace list --org personal
1452
1456
  ```
1453
1457
 
1454
- _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/list/index.ts)_
1458
+ _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/list/index.ts)_
1455
1459
 
1456
1460
  ## `hereya workspace set-profile PROFILE`
1457
1461
 
@@ -1475,7 +1479,7 @@ EXAMPLES
1475
1479
  $ hereya workspace set-profile prod-profile -w production
1476
1480
  ```
1477
1481
 
1478
- _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/set-profile/index.ts)_
1482
+ _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/set-profile/index.ts)_
1479
1483
 
1480
1484
  ## `hereya workspace uninstall PACKAGE`
1481
1485
 
@@ -1502,5 +1506,5 @@ EXAMPLES
1502
1506
  $ hereya workspace uninstall hereya/aws-cognito
1503
1507
  ```
1504
1508
 
1505
- _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.3/src/commands/workspace/uninstall/index.ts)_
1509
+ _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.73.4/src/commands/workspace/uninstall/index.ts)_
1506
1510
  <!-- commandsstop -->
@@ -320,6 +320,9 @@ export type ProjectMetadata = {
320
320
  env?: {
321
321
  [key: string]: string;
322
322
  };
323
+ parameters?: {
324
+ [key: string]: string;
325
+ };
323
326
  template: string;
324
327
  };
325
328
  export type GetProjectMetadataOutput = {
@@ -66,15 +66,16 @@ export default class Init extends Command {
66
66
  throw new Error(executor$.reason);
67
67
  const userParams = arrayOfStringToObject(flags.parameter);
68
68
  const tokenResult = await hereyaTokenUtils.generateHereyaToken(`Template: ${args.project}`);
69
+ ctx.parameters = {
70
+ ...userParams,
71
+ projectName: args.project,
72
+ workspace: flags.workspace,
73
+ ...(tokenResult ? { hereyaCloudUrl: tokenResult.cloudUrl, hereyaToken: tokenResult.token } : {}),
74
+ };
69
75
  const provisionOutput = await executor$.executor.provision({
70
76
  logger: getLogger(task),
71
77
  package: flags.template,
72
- parameters: {
73
- ...userParams,
74
- projectName: args.project,
75
- workspace: flags.workspace,
76
- ...(tokenResult ? { hereyaCloudUrl: tokenResult.cloudUrl, hereyaToken: tokenResult.token } : {}),
77
- },
78
+ parameters: ctx.parameters,
78
79
  project: args.project,
79
80
  workspace: flags.workspace,
80
81
  });
@@ -94,7 +95,7 @@ export default class Init extends Command {
94
95
  throw new Error('Templates require cloud backend. Run `hereya login` first.');
95
96
  }
96
97
  const result = await backend.saveProjectMetadata({
97
- metadata: { env: ctx.prefixedEnv, template: flags.template },
98
+ metadata: { env: ctx.prefixedEnv, parameters: ctx.parameters, template: flags.template },
98
99
  project: args.project,
99
100
  });
100
101
  if (!result.success)
@@ -7,6 +7,7 @@ export default class Uninit extends Command {
7
7
  static examples: string[];
8
8
  static flags: {
9
9
  chdir: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ parameter: import("@oclif/core/interfaces").OptionFlag<string[], import("@oclif/core/interfaces").CustomOptions>;
10
11
  workspace: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
11
12
  };
12
13
  run(): Promise<void>;
@@ -4,6 +4,7 @@ import { getBackend } from '../../backend/index.js';
4
4
  import { getExecutorForWorkspace } from '../../executor/context.js';
5
5
  import { getConfigManager } from '../../lib/config/index.js';
6
6
  import { getLogger, getLogPath, isDebug } from '../../lib/log.js';
7
+ import { arrayOfStringToObject } from '../../lib/object-utils.js';
7
8
  export default class Uninit extends Command {
8
9
  static args = {
9
10
  project: Args.string({ description: 'project name', required: true }),
@@ -11,12 +12,19 @@ export default class Uninit extends Command {
11
12
  static description = 'Destroy template infrastructure and uninitialize a project.';
12
13
  static examples = [
13
14
  '<%= config.bin %> <%= command.id %> myProject -w dev',
15
+ '<%= config.bin %> <%= command.id %> myProject -w dev -p prodWorkspace=prod',
14
16
  ];
15
17
  static flags = {
16
18
  chdir: Flags.string({
17
19
  description: 'directory to run command in',
18
20
  required: false,
19
21
  }),
22
+ parameter: Flags.string({
23
+ char: 'p',
24
+ default: [],
25
+ description: "parameter for the template, in the form of 'key=value'. Overrides saved parameters.",
26
+ multiple: true,
27
+ }),
20
28
  workspace: Flags.string({
21
29
  char: 'w',
22
30
  description: 'workspace used during init',
@@ -47,9 +55,13 @@ export default class Uninit extends Command {
47
55
  const executor$ = await getExecutorForWorkspace(flags.workspace, args.project);
48
56
  if (!executor$.success)
49
57
  throw new Error(executor$.reason);
58
+ // Merge saved parameters with -p overrides (overrides take precedence)
59
+ const userParams = arrayOfStringToObject(flags.parameter);
60
+ const parameters = { ...ctx.metadata.parameters, ...userParams };
50
61
  const destroyOutput = await executor$.executor.destroy({
51
62
  logger: getLogger(task),
52
63
  package: ctx.metadata.template,
64
+ parameters,
53
65
  project: args.project,
54
66
  workspace: flags.workspace,
55
67
  });
@@ -1,5 +1,44 @@
1
1
  {
2
2
  "commands": {
3
+ "bootstrap": {
4
+ "aliases": [],
5
+ "args": {
6
+ "infrastructureType": {
7
+ "description": "infrastructure to bootstrap. Options are local, aws",
8
+ "name": "infrastructureType",
9
+ "required": true
10
+ }
11
+ },
12
+ "description": "Install necessary resources for hereya operations in an infrastructure.",
13
+ "examples": [
14
+ "<%= config.bin %> <%= command.id %> aws",
15
+ "<%= config.bin %> <%= command.id %> local"
16
+ ],
17
+ "flags": {
18
+ "force": {
19
+ "char": "f",
20
+ "description": "redeploy hereya resources if already deployed",
21
+ "name": "force",
22
+ "allowNo": false,
23
+ "type": "boolean"
24
+ }
25
+ },
26
+ "hasDynamicHelp": false,
27
+ "hiddenAliases": [],
28
+ "id": "bootstrap",
29
+ "pluginAlias": "hereya-cli",
30
+ "pluginName": "hereya-cli",
31
+ "pluginType": "core",
32
+ "strict": true,
33
+ "enableJsonFlag": false,
34
+ "isESM": true,
35
+ "relativePath": [
36
+ "dist",
37
+ "commands",
38
+ "bootstrap",
39
+ "index.js"
40
+ ]
41
+ },
3
42
  "add": {
4
43
  "aliases": [],
5
44
  "args": {
@@ -63,45 +102,6 @@
63
102
  "index.js"
64
103
  ]
65
104
  },
66
- "bootstrap": {
67
- "aliases": [],
68
- "args": {
69
- "infrastructureType": {
70
- "description": "infrastructure to bootstrap. Options are local, aws",
71
- "name": "infrastructureType",
72
- "required": true
73
- }
74
- },
75
- "description": "Install necessary resources for hereya operations in an infrastructure.",
76
- "examples": [
77
- "<%= config.bin %> <%= command.id %> aws",
78
- "<%= config.bin %> <%= command.id %> local"
79
- ],
80
- "flags": {
81
- "force": {
82
- "char": "f",
83
- "description": "redeploy hereya resources if already deployed",
84
- "name": "force",
85
- "allowNo": false,
86
- "type": "boolean"
87
- }
88
- },
89
- "hasDynamicHelp": false,
90
- "hiddenAliases": [],
91
- "id": "bootstrap",
92
- "pluginAlias": "hereya-cli",
93
- "pluginName": "hereya-cli",
94
- "pluginType": "core",
95
- "strict": true,
96
- "enableJsonFlag": false,
97
- "isESM": true,
98
- "relativePath": [
99
- "dist",
100
- "commands",
101
- "bootstrap",
102
- "index.js"
103
- ]
104
- },
105
105
  "credential-helper": {
106
106
  "aliases": [],
107
107
  "args": {
@@ -130,13 +130,12 @@
130
130
  "index.js"
131
131
  ]
132
132
  },
133
- "delete-state": {
133
+ "deploy": {
134
134
  "aliases": [],
135
135
  "args": {},
136
- "description": "Delete the remote state of a project for a given workspace",
136
+ "description": "Deploy a hereya project using the project deployment package",
137
137
  "examples": [
138
- "<%= config.bin %> <%= command.id %> -w dev",
139
- "<%= config.bin %> <%= command.id %> --workspace staging"
138
+ "<%= config.bin %> <%= command.id %>"
140
139
  ],
141
140
  "flags": {
142
141
  "chdir": {
@@ -147,9 +146,15 @@
147
146
  "multiple": false,
148
147
  "type": "option"
149
148
  },
149
+ "debug": {
150
+ "description": "enable debug mode",
151
+ "name": "debug",
152
+ "allowNo": false,
153
+ "type": "boolean"
154
+ },
150
155
  "workspace": {
151
156
  "char": "w",
152
- "description": "workspace name",
157
+ "description": "name of the workspace to deploy the packages for",
153
158
  "name": "workspace",
154
159
  "required": true,
155
160
  "hasDynamicHelp": false,
@@ -159,7 +164,7 @@
159
164
  },
160
165
  "hasDynamicHelp": false,
161
166
  "hiddenAliases": [],
162
- "id": "delete-state",
167
+ "id": "deploy",
163
168
  "pluginAlias": "hereya-cli",
164
169
  "pluginName": "hereya-cli",
165
170
  "pluginType": "core",
@@ -169,16 +174,17 @@
169
174
  "relativePath": [
170
175
  "dist",
171
176
  "commands",
172
- "delete-state",
177
+ "deploy",
173
178
  "index.js"
174
179
  ]
175
180
  },
176
- "deploy": {
181
+ "delete-state": {
177
182
  "aliases": [],
178
183
  "args": {},
179
- "description": "Deploy a hereya project using the project deployment package",
184
+ "description": "Delete the remote state of a project for a given workspace",
180
185
  "examples": [
181
- "<%= config.bin %> <%= command.id %>"
186
+ "<%= config.bin %> <%= command.id %> -w dev",
187
+ "<%= config.bin %> <%= command.id %> --workspace staging"
182
188
  ],
183
189
  "flags": {
184
190
  "chdir": {
@@ -189,15 +195,9 @@
189
195
  "multiple": false,
190
196
  "type": "option"
191
197
  },
192
- "debug": {
193
- "description": "enable debug mode",
194
- "name": "debug",
195
- "allowNo": false,
196
- "type": "boolean"
197
- },
198
198
  "workspace": {
199
199
  "char": "w",
200
- "description": "name of the workspace to deploy the packages for",
200
+ "description": "workspace name",
201
201
  "name": "workspace",
202
202
  "required": true,
203
203
  "hasDynamicHelp": false,
@@ -207,7 +207,7 @@
207
207
  },
208
208
  "hasDynamicHelp": false,
209
209
  "hiddenAliases": [],
210
- "id": "deploy",
210
+ "id": "delete-state",
211
211
  "pluginAlias": "hereya-cli",
212
212
  "pluginName": "hereya-cli",
213
213
  "pluginType": "core",
@@ -217,7 +217,7 @@
217
217
  "relativePath": [
218
218
  "dist",
219
219
  "commands",
220
- "deploy",
220
+ "delete-state",
221
221
  "index.js"
222
222
  ]
223
223
  },
@@ -957,7 +957,8 @@
957
957
  },
958
958
  "description": "Destroy template infrastructure and uninitialize a project.",
959
959
  "examples": [
960
- "<%= config.bin %> <%= command.id %> myProject -w dev"
960
+ "<%= config.bin %> <%= command.id %> myProject -w dev",
961
+ "<%= config.bin %> <%= command.id %> myProject -w dev -p prodWorkspace=prod"
961
962
  ],
962
963
  "flags": {
963
964
  "chdir": {
@@ -968,6 +969,15 @@
968
969
  "multiple": false,
969
970
  "type": "option"
970
971
  },
972
+ "parameter": {
973
+ "char": "p",
974
+ "description": "parameter for the template, in the form of 'key=value'. Overrides saved parameters.",
975
+ "name": "parameter",
976
+ "default": [],
977
+ "hasDynamicHelp": false,
978
+ "multiple": true,
979
+ "type": "option"
980
+ },
971
981
  "workspace": {
972
982
  "char": "w",
973
983
  "description": "workspace used during init",
@@ -2745,5 +2755,5 @@
2745
2755
  ]
2746
2756
  }
2747
2757
  },
2748
- "version": "0.73.3"
2758
+ "version": "0.73.4"
2749
2759
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.73.3",
4
+ "version": "0.73.4",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.js"