hereya-cli 0.61.0 → 0.62.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 +70 -40
- package/dist/commands/flow/provid/index.d.ts +14 -0
- package/dist/commands/flow/provid/index.js +64 -0
- package/dist/lib/parameter/index.js +12 -2
- package/oclif.manifest.json +59 -1
- package/package.json +1 -1
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.
|
|
23
|
+
hereya-cli/0.62.1 linux-x64 node-v24.13.0
|
|
24
24
|
$ hereya --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ hereya COMMAND
|
|
@@ -44,6 +44,7 @@ USAGE
|
|
|
44
44
|
* [`hereya flow add PACKAGE`](#hereya-flow-add-package)
|
|
45
45
|
* [`hereya flow down`](#hereya-flow-down)
|
|
46
46
|
* [`hereya flow env [NAME]`](#hereya-flow-env-name)
|
|
47
|
+
* [`hereya flow provid PACKAGE`](#hereya-flow-provid-package)
|
|
47
48
|
* [`hereya flow remove PACKAGE`](#hereya-flow-remove-package)
|
|
48
49
|
* [`hereya flow run CMD`](#hereya-flow-run-cmd)
|
|
49
50
|
* [`hereya flow up`](#hereya-flow-up)
|
|
@@ -102,7 +103,7 @@ EXAMPLES
|
|
|
102
103
|
$ hereya add cloudy/docker_postgres
|
|
103
104
|
```
|
|
104
105
|
|
|
105
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
106
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/add/index.ts)_
|
|
106
107
|
|
|
107
108
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
108
109
|
|
|
@@ -127,7 +128,7 @@ EXAMPLES
|
|
|
127
128
|
$ hereya bootstrap local
|
|
128
129
|
```
|
|
129
130
|
|
|
130
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
131
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/bootstrap/index.ts)_
|
|
131
132
|
|
|
132
133
|
## `hereya config export-backend [FILE]`
|
|
133
134
|
|
|
@@ -149,7 +150,7 @@ EXAMPLES
|
|
|
149
150
|
$ hereya config export-backend ./path/to/export.json
|
|
150
151
|
```
|
|
151
152
|
|
|
152
|
-
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
153
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/config/export-backend/index.ts)_
|
|
153
154
|
|
|
154
155
|
## `hereya config get-backend`
|
|
155
156
|
|
|
@@ -166,7 +167,7 @@ EXAMPLES
|
|
|
166
167
|
$ hereya config get-backend
|
|
167
168
|
```
|
|
168
169
|
|
|
169
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
170
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/config/get-backend/index.ts)_
|
|
170
171
|
|
|
171
172
|
## `hereya config import-backend FILE`
|
|
172
173
|
|
|
@@ -186,7 +187,7 @@ EXAMPLES
|
|
|
186
187
|
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
187
188
|
```
|
|
188
189
|
|
|
189
|
-
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
190
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/config/import-backend/index.ts)_
|
|
190
191
|
|
|
191
192
|
## `hereya config use-backend TYPE`
|
|
192
193
|
|
|
@@ -208,7 +209,7 @@ EXAMPLES
|
|
|
208
209
|
$ hereya config use-backend local
|
|
209
210
|
```
|
|
210
211
|
|
|
211
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
212
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/config/use-backend/index.ts)_
|
|
212
213
|
|
|
213
214
|
## `hereya delete-state`
|
|
214
215
|
|
|
@@ -234,7 +235,7 @@ EXAMPLES
|
|
|
234
235
|
$ hereya delete-state --workspace staging
|
|
235
236
|
```
|
|
236
237
|
|
|
237
|
-
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
238
|
+
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/delete-state/index.ts)_
|
|
238
239
|
|
|
239
240
|
## `hereya deploy`
|
|
240
241
|
|
|
@@ -259,7 +260,7 @@ EXAMPLES
|
|
|
259
260
|
$ hereya deploy
|
|
260
261
|
```
|
|
261
262
|
|
|
262
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
263
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/deploy/index.ts)_
|
|
263
264
|
|
|
264
265
|
## `hereya doc PACKAGE`
|
|
265
266
|
|
|
@@ -292,7 +293,7 @@ EXAMPLES
|
|
|
292
293
|
$ hereya doc my-package --no-doc
|
|
293
294
|
```
|
|
294
295
|
|
|
295
|
-
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
296
|
+
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/doc/index.ts)_
|
|
296
297
|
|
|
297
298
|
## `hereya down`
|
|
298
299
|
|
|
@@ -319,7 +320,7 @@ EXAMPLES
|
|
|
319
320
|
$ hereya down
|
|
320
321
|
```
|
|
321
322
|
|
|
322
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
323
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/down/index.ts)_
|
|
323
324
|
|
|
324
325
|
## `hereya env [NAME]`
|
|
325
326
|
|
|
@@ -350,7 +351,7 @@ EXAMPLES
|
|
|
350
351
|
$ hereya env -w dev -l
|
|
351
352
|
```
|
|
352
353
|
|
|
353
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
354
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/env/index.ts)_
|
|
354
355
|
|
|
355
356
|
## `hereya env set [NAME]`
|
|
356
357
|
|
|
@@ -377,7 +378,7 @@ EXAMPLES
|
|
|
377
378
|
$ hereya env set FOO -v bar -w dev
|
|
378
379
|
```
|
|
379
380
|
|
|
380
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
381
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/env/set/index.ts)_
|
|
381
382
|
|
|
382
383
|
## `hereya flow add PACKAGE`
|
|
383
384
|
|
|
@@ -415,7 +416,7 @@ EXAMPLES
|
|
|
415
416
|
$ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
|
|
416
417
|
```
|
|
417
418
|
|
|
418
|
-
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
419
|
+
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/flow/add/index.ts)_
|
|
419
420
|
|
|
420
421
|
## `hereya flow down`
|
|
421
422
|
|
|
@@ -449,7 +450,7 @@ EXAMPLES
|
|
|
449
450
|
$ hereya flow down --pin
|
|
450
451
|
```
|
|
451
452
|
|
|
452
|
-
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
453
|
+
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/flow/down/index.ts)_
|
|
453
454
|
|
|
454
455
|
## `hereya flow env [NAME]`
|
|
455
456
|
|
|
@@ -483,7 +484,36 @@ EXAMPLES
|
|
|
483
484
|
$ hereya flow env -l
|
|
484
485
|
```
|
|
485
486
|
|
|
486
|
-
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
487
|
+
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/flow/env/index.ts)_
|
|
488
|
+
|
|
489
|
+
## `hereya flow provid PACKAGE`
|
|
490
|
+
|
|
491
|
+
Display the provisioning ID for a package in a git branch-based workspace
|
|
492
|
+
|
|
493
|
+
```
|
|
494
|
+
USAGE
|
|
495
|
+
$ hereya flow provid PACKAGE [-C <value>] [--pin] [--profile <value>]
|
|
496
|
+
|
|
497
|
+
ARGUMENTS
|
|
498
|
+
PACKAGE Package name (e.g., hereya/postgres)
|
|
499
|
+
|
|
500
|
+
FLAGS
|
|
501
|
+
-C, --chdir=<value> Project root directory
|
|
502
|
+
--pin Append git commit SHA to workspace name for commit-specific isolation
|
|
503
|
+
--profile=<value> Profile to use for the workspace (will be appended to workspace name)
|
|
504
|
+
|
|
505
|
+
DESCRIPTION
|
|
506
|
+
Display the provisioning ID for a package in a git branch-based workspace
|
|
507
|
+
|
|
508
|
+
EXAMPLES
|
|
509
|
+
$ hereya flow provid hereya/postgres
|
|
510
|
+
|
|
511
|
+
$ hereya flow provid hereya/postgres --profile staging
|
|
512
|
+
|
|
513
|
+
$ hereya flow provid hereya/postgres --pin
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/flow/provid/index.ts)_
|
|
487
517
|
|
|
488
518
|
## `hereya flow remove PACKAGE`
|
|
489
519
|
|
|
@@ -513,7 +543,7 @@ EXAMPLES
|
|
|
513
543
|
$ hereya flow remove cloudy/docker_postgres --profile staging
|
|
514
544
|
```
|
|
515
545
|
|
|
516
|
-
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
546
|
+
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/flow/remove/index.ts)_
|
|
517
547
|
|
|
518
548
|
## `hereya flow run CMD`
|
|
519
549
|
|
|
@@ -542,7 +572,7 @@ EXAMPLES
|
|
|
542
572
|
$ hereya flow run --pin -- npm test
|
|
543
573
|
```
|
|
544
574
|
|
|
545
|
-
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
575
|
+
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/flow/run/index.ts)_
|
|
546
576
|
|
|
547
577
|
## `hereya flow up`
|
|
548
578
|
|
|
@@ -576,7 +606,7 @@ EXAMPLES
|
|
|
576
606
|
$ hereya flow up --pin
|
|
577
607
|
```
|
|
578
608
|
|
|
579
|
-
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
609
|
+
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/flow/up/index.ts)_
|
|
580
610
|
|
|
581
611
|
## `hereya help [COMMAND]`
|
|
582
612
|
|
|
@@ -633,7 +663,7 @@ EXAMPLES
|
|
|
633
663
|
$ hereya import org/my-package -f state.tfstate -w my-workspace
|
|
634
664
|
```
|
|
635
665
|
|
|
636
|
-
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
666
|
+
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/import/index.ts)_
|
|
637
667
|
|
|
638
668
|
## `hereya init PROJECT`
|
|
639
669
|
|
|
@@ -659,7 +689,7 @@ EXAMPLES
|
|
|
659
689
|
$ hereya init myProject -w=defaultWorkspace --chdir=./myProject
|
|
660
690
|
```
|
|
661
691
|
|
|
662
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
692
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/init/index.ts)_
|
|
663
693
|
|
|
664
694
|
## `hereya login [URL]`
|
|
665
695
|
|
|
@@ -688,7 +718,7 @@ EXAMPLES
|
|
|
688
718
|
$ hereya login --token=your-token https://cloud.hereya.dev
|
|
689
719
|
```
|
|
690
720
|
|
|
691
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
721
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/login/index.ts)_
|
|
692
722
|
|
|
693
723
|
## `hereya logout`
|
|
694
724
|
|
|
@@ -705,7 +735,7 @@ EXAMPLES
|
|
|
705
735
|
$ hereya logout
|
|
706
736
|
```
|
|
707
737
|
|
|
708
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
738
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/logout/index.ts)_
|
|
709
739
|
|
|
710
740
|
## `hereya provid PACKAGE`
|
|
711
741
|
|
|
@@ -733,7 +763,7 @@ EXAMPLES
|
|
|
733
763
|
$ hereya provid hereya/postgres --workspace staging
|
|
734
764
|
```
|
|
735
765
|
|
|
736
|
-
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
766
|
+
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/provid/index.ts)_
|
|
737
767
|
|
|
738
768
|
## `hereya publish`
|
|
739
769
|
|
|
@@ -756,7 +786,7 @@ EXAMPLES
|
|
|
756
786
|
$ hereya publish --chdir=/path/to/package
|
|
757
787
|
```
|
|
758
788
|
|
|
759
|
-
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
789
|
+
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/publish/index.ts)_
|
|
760
790
|
|
|
761
791
|
## `hereya remove PACKAGE`
|
|
762
792
|
|
|
@@ -784,7 +814,7 @@ EXAMPLES
|
|
|
784
814
|
$ hereya remove cloudy/docker_postgres
|
|
785
815
|
```
|
|
786
816
|
|
|
787
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
817
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/remove/index.ts)_
|
|
788
818
|
|
|
789
819
|
## `hereya run CMD`
|
|
790
820
|
|
|
@@ -810,7 +840,7 @@ EXAMPLES
|
|
|
810
840
|
$ hereya run -w uat -- node index.js
|
|
811
841
|
```
|
|
812
842
|
|
|
813
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
843
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/run/index.ts)_
|
|
814
844
|
|
|
815
845
|
## `hereya search QUERY`
|
|
816
846
|
|
|
@@ -841,7 +871,7 @@ EXAMPLES
|
|
|
841
871
|
$ hereya search database --json
|
|
842
872
|
```
|
|
843
873
|
|
|
844
|
-
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
874
|
+
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/search/index.ts)_
|
|
845
875
|
|
|
846
876
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
847
877
|
|
|
@@ -866,7 +896,7 @@ EXAMPLES
|
|
|
866
896
|
$ hereya unbootstrap local
|
|
867
897
|
```
|
|
868
898
|
|
|
869
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
899
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/unbootstrap/index.ts)_
|
|
870
900
|
|
|
871
901
|
## `hereya undeploy`
|
|
872
902
|
|
|
@@ -891,7 +921,7 @@ EXAMPLES
|
|
|
891
921
|
$ hereya undeploy
|
|
892
922
|
```
|
|
893
923
|
|
|
894
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
924
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/undeploy/index.ts)_
|
|
895
925
|
|
|
896
926
|
## `hereya up`
|
|
897
927
|
|
|
@@ -918,7 +948,7 @@ EXAMPLES
|
|
|
918
948
|
$ hereya up
|
|
919
949
|
```
|
|
920
950
|
|
|
921
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
951
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/up/index.ts)_
|
|
922
952
|
|
|
923
953
|
## `hereya workspace create NAME`
|
|
924
954
|
|
|
@@ -943,7 +973,7 @@ EXAMPLES
|
|
|
943
973
|
$ hereya workspace create dev
|
|
944
974
|
```
|
|
945
975
|
|
|
946
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
976
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/workspace/create/index.ts)_
|
|
947
977
|
|
|
948
978
|
## `hereya workspace delete NAME`
|
|
949
979
|
|
|
@@ -963,7 +993,7 @@ EXAMPLES
|
|
|
963
993
|
$ hereya workspace delete dev
|
|
964
994
|
```
|
|
965
995
|
|
|
966
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
996
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/workspace/delete/index.ts)_
|
|
967
997
|
|
|
968
998
|
## `hereya workspace env [NAME]`
|
|
969
999
|
|
|
@@ -989,7 +1019,7 @@ EXAMPLES
|
|
|
989
1019
|
$ hereya workspace env myEnv -w dev
|
|
990
1020
|
```
|
|
991
1021
|
|
|
992
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1022
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/workspace/env/index.ts)_
|
|
993
1023
|
|
|
994
1024
|
## `hereya workspace env set`
|
|
995
1025
|
|
|
@@ -1013,7 +1043,7 @@ EXAMPLES
|
|
|
1013
1043
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
1014
1044
|
```
|
|
1015
1045
|
|
|
1016
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1046
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/workspace/env/set/index.ts)_
|
|
1017
1047
|
|
|
1018
1048
|
## `hereya workspace env unset`
|
|
1019
1049
|
|
|
@@ -1034,7 +1064,7 @@ EXAMPLES
|
|
|
1034
1064
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
1035
1065
|
```
|
|
1036
1066
|
|
|
1037
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1067
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/workspace/env/unset/index.ts)_
|
|
1038
1068
|
|
|
1039
1069
|
## `hereya workspace install PACKAGE`
|
|
1040
1070
|
|
|
@@ -1061,7 +1091,7 @@ EXAMPLES
|
|
|
1061
1091
|
$ hereya workspace install hereya/aws-cognito
|
|
1062
1092
|
```
|
|
1063
1093
|
|
|
1064
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1094
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/workspace/install/index.ts)_
|
|
1065
1095
|
|
|
1066
1096
|
## `hereya workspace list`
|
|
1067
1097
|
|
|
@@ -1078,7 +1108,7 @@ EXAMPLES
|
|
|
1078
1108
|
$ hereya workspace list
|
|
1079
1109
|
```
|
|
1080
1110
|
|
|
1081
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1111
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/workspace/list/index.ts)_
|
|
1082
1112
|
|
|
1083
1113
|
## `hereya workspace set-profile PROFILE`
|
|
1084
1114
|
|
|
@@ -1102,7 +1132,7 @@ EXAMPLES
|
|
|
1102
1132
|
$ hereya workspace set-profile prod-profile -w production
|
|
1103
1133
|
```
|
|
1104
1134
|
|
|
1105
|
-
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1135
|
+
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/workspace/set-profile/index.ts)_
|
|
1106
1136
|
|
|
1107
1137
|
## `hereya workspace uninstall PACKAGE`
|
|
1108
1138
|
|
|
@@ -1129,5 +1159,5 @@ EXAMPLES
|
|
|
1129
1159
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
1130
1160
|
```
|
|
1131
1161
|
|
|
1132
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
1162
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/workspace/uninstall/index.ts)_
|
|
1133
1163
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class FlowProvid extends Command {
|
|
3
|
+
static args: {
|
|
4
|
+
package: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
static description: string;
|
|
7
|
+
static examples: string[];
|
|
8
|
+
static flags: {
|
|
9
|
+
chdir: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
pin: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
profile: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Args, Command, Flags } from '@oclif/core';
|
|
2
|
+
import { getBackend } from '../../../backend/index.js';
|
|
3
|
+
import { getConfigManager } from '../../../lib/config/index.js';
|
|
4
|
+
import { buildFlowWorkspaceName } from '../../../lib/flow-utils.js';
|
|
5
|
+
import { validateFlowCommand } from '../../../lib/workspace-validation.js';
|
|
6
|
+
import Provid from '../../provid/index.js';
|
|
7
|
+
export default class FlowProvid extends Command {
|
|
8
|
+
static args = {
|
|
9
|
+
package: Args.string({
|
|
10
|
+
description: 'Package name (e.g., hereya/postgres)',
|
|
11
|
+
required: true,
|
|
12
|
+
}),
|
|
13
|
+
};
|
|
14
|
+
static description = 'Display the provisioning ID for a package in a git branch-based workspace';
|
|
15
|
+
static examples = [
|
|
16
|
+
'<%= config.bin %> <%= command.id %> hereya/postgres',
|
|
17
|
+
'<%= config.bin %> <%= command.id %> hereya/postgres --profile staging',
|
|
18
|
+
'<%= config.bin %> <%= command.id %> hereya/postgres --pin',
|
|
19
|
+
];
|
|
20
|
+
static flags = {
|
|
21
|
+
chdir: Flags.string({
|
|
22
|
+
char: 'C',
|
|
23
|
+
description: 'Project root directory',
|
|
24
|
+
required: false,
|
|
25
|
+
}),
|
|
26
|
+
pin: Flags.boolean({
|
|
27
|
+
description: 'Append git commit SHA to workspace name for commit-specific isolation',
|
|
28
|
+
required: false,
|
|
29
|
+
}),
|
|
30
|
+
profile: Flags.string({
|
|
31
|
+
description: 'Profile to use for the workspace (will be appended to workspace name)',
|
|
32
|
+
required: false,
|
|
33
|
+
}),
|
|
34
|
+
};
|
|
35
|
+
async run() {
|
|
36
|
+
const { args, flags } = await this.parse(FlowProvid);
|
|
37
|
+
const projectRootDir = flags.chdir || process.env.HEREYA_PROJECT_ROOT_DIR;
|
|
38
|
+
// Load project config
|
|
39
|
+
const configManager = getConfigManager();
|
|
40
|
+
const loadConfigOutput = await configManager.loadConfig({ projectRootDir });
|
|
41
|
+
if (!loadConfigOutput.found) {
|
|
42
|
+
this.error("Project not initialized. Run 'hereya init' first.");
|
|
43
|
+
}
|
|
44
|
+
// Build workspace name using flow utility
|
|
45
|
+
const workspaceName = await buildFlowWorkspaceName({
|
|
46
|
+
pin: flags.pin,
|
|
47
|
+
profile: flags.profile,
|
|
48
|
+
project: loadConfigOutput.config.project,
|
|
49
|
+
projectRootDir,
|
|
50
|
+
});
|
|
51
|
+
// Validate that if workspace exists, it's not a deployment workspace
|
|
52
|
+
const backend = await getBackend();
|
|
53
|
+
const validation = await validateFlowCommand(workspaceName, backend);
|
|
54
|
+
if (!validation.isValid) {
|
|
55
|
+
this.error(validation.message);
|
|
56
|
+
}
|
|
57
|
+
// Build args for provid command
|
|
58
|
+
const providArgs = [args.package, '--workspace', workspaceName];
|
|
59
|
+
// Pass through chdir flag
|
|
60
|
+
if (flags.chdir)
|
|
61
|
+
providArgs.push('--chdir', flags.chdir);
|
|
62
|
+
await Provid.run(providArgs);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { getAnyPath } from '../filesystem.js';
|
|
3
|
+
import { fileExists, getAnyPath } from '../filesystem.js';
|
|
4
4
|
import { getPackageCanonicalName } from '../package/index.js';
|
|
5
5
|
import { load, parseYaml, save } from '../yaml-utils.js';
|
|
6
6
|
export class ParameterManager {
|
|
@@ -45,7 +45,17 @@ export class ParameterManager {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
const pkgName = getPackageCanonicalName(input.package);
|
|
48
|
-
const
|
|
48
|
+
const paramsFolder = await this.getParametersFolder(input.projectRootDir);
|
|
49
|
+
const filePath = path.join(paramsFolder, `${pkgName}.yaml`);
|
|
50
|
+
// Check if file already exists - don't overwrite user's existing parameters
|
|
51
|
+
const yamlExists = await fileExists(filePath);
|
|
52
|
+
const ymlExists = await fileExists(path.join(paramsFolder, `${pkgName}.yml`));
|
|
53
|
+
if (yamlExists || ymlExists) {
|
|
54
|
+
return {
|
|
55
|
+
filePath: null,
|
|
56
|
+
saved: false,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
49
59
|
await save(input.parameters, filePath);
|
|
50
60
|
return {
|
|
51
61
|
filePath,
|
package/oclif.manifest.json
CHANGED
|
@@ -1346,6 +1346,64 @@
|
|
|
1346
1346
|
"index.js"
|
|
1347
1347
|
]
|
|
1348
1348
|
},
|
|
1349
|
+
"flow:provid": {
|
|
1350
|
+
"aliases": [],
|
|
1351
|
+
"args": {
|
|
1352
|
+
"package": {
|
|
1353
|
+
"description": "Package name (e.g., hereya/postgres)",
|
|
1354
|
+
"name": "package",
|
|
1355
|
+
"required": true
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
"description": "Display the provisioning ID for a package in a git branch-based workspace",
|
|
1359
|
+
"examples": [
|
|
1360
|
+
"<%= config.bin %> <%= command.id %> hereya/postgres",
|
|
1361
|
+
"<%= config.bin %> <%= command.id %> hereya/postgres --profile staging",
|
|
1362
|
+
"<%= config.bin %> <%= command.id %> hereya/postgres --pin"
|
|
1363
|
+
],
|
|
1364
|
+
"flags": {
|
|
1365
|
+
"chdir": {
|
|
1366
|
+
"char": "C",
|
|
1367
|
+
"description": "Project root directory",
|
|
1368
|
+
"name": "chdir",
|
|
1369
|
+
"required": false,
|
|
1370
|
+
"hasDynamicHelp": false,
|
|
1371
|
+
"multiple": false,
|
|
1372
|
+
"type": "option"
|
|
1373
|
+
},
|
|
1374
|
+
"pin": {
|
|
1375
|
+
"description": "Append git commit SHA to workspace name for commit-specific isolation",
|
|
1376
|
+
"name": "pin",
|
|
1377
|
+
"required": false,
|
|
1378
|
+
"allowNo": false,
|
|
1379
|
+
"type": "boolean"
|
|
1380
|
+
},
|
|
1381
|
+
"profile": {
|
|
1382
|
+
"description": "Profile to use for the workspace (will be appended to workspace name)",
|
|
1383
|
+
"name": "profile",
|
|
1384
|
+
"required": false,
|
|
1385
|
+
"hasDynamicHelp": false,
|
|
1386
|
+
"multiple": false,
|
|
1387
|
+
"type": "option"
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
"hasDynamicHelp": false,
|
|
1391
|
+
"hiddenAliases": [],
|
|
1392
|
+
"id": "flow:provid",
|
|
1393
|
+
"pluginAlias": "hereya-cli",
|
|
1394
|
+
"pluginName": "hereya-cli",
|
|
1395
|
+
"pluginType": "core",
|
|
1396
|
+
"strict": true,
|
|
1397
|
+
"enableJsonFlag": false,
|
|
1398
|
+
"isESM": true,
|
|
1399
|
+
"relativePath": [
|
|
1400
|
+
"dist",
|
|
1401
|
+
"commands",
|
|
1402
|
+
"flow",
|
|
1403
|
+
"provid",
|
|
1404
|
+
"index.js"
|
|
1405
|
+
]
|
|
1406
|
+
},
|
|
1349
1407
|
"flow:remove": {
|
|
1350
1408
|
"aliases": [],
|
|
1351
1409
|
"args": {
|
|
@@ -1987,5 +2045,5 @@
|
|
|
1987
2045
|
]
|
|
1988
2046
|
}
|
|
1989
2047
|
},
|
|
1990
|
-
"version": "0.
|
|
2048
|
+
"version": "0.62.1"
|
|
1991
2049
|
}
|