hereya-cli 0.61.0 → 0.62.0

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.61.0 linux-x64 node-v24.13.0
23
+ hereya-cli/0.62.0 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.61.0/src/commands/add/index.ts)_
106
+ _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/bootstrap/index.ts)_
131
+ _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/config/export-backend/index.ts)_
153
+ _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/config/get-backend/index.ts)_
170
+ _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/config/import-backend/index.ts)_
190
+ _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/config/use-backend/index.ts)_
212
+ _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/delete-state/index.ts)_
238
+ _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/deploy/index.ts)_
263
+ _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/doc/index.ts)_
296
+ _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/down/index.ts)_
323
+ _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/env/index.ts)_
354
+ _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/env/set/index.ts)_
381
+ _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/flow/add/index.ts)_
419
+ _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/flow/down/index.ts)_
453
+ _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/flow/env/index.ts)_
487
+ _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.0/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.61.0/src/commands/flow/remove/index.ts)_
546
+ _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/flow/run/index.ts)_
575
+ _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/flow/up/index.ts)_
609
+ _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/import/index.ts)_
666
+ _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/init/index.ts)_
692
+ _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/login/index.ts)_
721
+ _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/logout/index.ts)_
738
+ _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/provid/index.ts)_
766
+ _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/publish/index.ts)_
789
+ _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/remove/index.ts)_
817
+ _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/run/index.ts)_
843
+ _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/search/index.ts)_
874
+ _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/unbootstrap/index.ts)_
899
+ _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/undeploy/index.ts)_
924
+ _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/up/index.ts)_
951
+ _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/workspace/create/index.ts)_
976
+ _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/workspace/delete/index.ts)_
996
+ _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/workspace/env/index.ts)_
1022
+ _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/workspace/env/set/index.ts)_
1046
+ _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/workspace/env/unset/index.ts)_
1067
+ _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/workspace/install/index.ts)_
1094
+ _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/workspace/list/index.ts)_
1111
+ _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/workspace/set-profile/index.ts)_
1135
+ _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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.61.0/src/commands/workspace/uninstall/index.ts)_
1162
+ _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/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
+ }
@@ -193,63 +193,6 @@
193
193
  "index.js"
194
194
  ]
195
195
  },
196
- "doc": {
197
- "aliases": [],
198
- "args": {
199
- "package": {
200
- "description": "Package name with optional version (e.g., my-package or my-package@1.0.0)",
201
- "name": "package",
202
- "required": true
203
- }
204
- },
205
- "description": "Display documentation for a package from the registry",
206
- "examples": [
207
- "<%= config.bin %> <%= command.id %> my-package",
208
- "<%= config.bin %> <%= command.id %> my-package@1.0.0",
209
- "<%= config.bin %> <%= command.id %> my-package --json",
210
- "<%= config.bin %> <%= command.id %> my-package --no-doc"
211
- ],
212
- "flags": {
213
- "chdir": {
214
- "char": "C",
215
- "description": "directory to run command in",
216
- "helpGroup": "global",
217
- "name": "chdir",
218
- "default": ".",
219
- "hasDynamicHelp": false,
220
- "multiple": false,
221
- "type": "option"
222
- },
223
- "json": {
224
- "char": "j",
225
- "description": "Output in JSON format",
226
- "name": "json",
227
- "allowNo": false,
228
- "type": "boolean"
229
- },
230
- "no-doc": {
231
- "description": "Show only metadata without the full documentation",
232
- "name": "no-doc",
233
- "allowNo": false,
234
- "type": "boolean"
235
- }
236
- },
237
- "hasDynamicHelp": false,
238
- "hiddenAliases": [],
239
- "id": "doc",
240
- "pluginAlias": "hereya-cli",
241
- "pluginName": "hereya-cli",
242
- "pluginType": "core",
243
- "strict": true,
244
- "enableJsonFlag": false,
245
- "isESM": true,
246
- "relativePath": [
247
- "dist",
248
- "commands",
249
- "doc",
250
- "index.js"
251
- ]
252
- },
253
196
  "down": {
254
197
  "aliases": [],
255
198
  "args": {},
@@ -314,6 +257,63 @@
314
257
  "index.js"
315
258
  ]
316
259
  },
260
+ "doc": {
261
+ "aliases": [],
262
+ "args": {
263
+ "package": {
264
+ "description": "Package name with optional version (e.g., my-package or my-package@1.0.0)",
265
+ "name": "package",
266
+ "required": true
267
+ }
268
+ },
269
+ "description": "Display documentation for a package from the registry",
270
+ "examples": [
271
+ "<%= config.bin %> <%= command.id %> my-package",
272
+ "<%= config.bin %> <%= command.id %> my-package@1.0.0",
273
+ "<%= config.bin %> <%= command.id %> my-package --json",
274
+ "<%= config.bin %> <%= command.id %> my-package --no-doc"
275
+ ],
276
+ "flags": {
277
+ "chdir": {
278
+ "char": "C",
279
+ "description": "directory to run command in",
280
+ "helpGroup": "global",
281
+ "name": "chdir",
282
+ "default": ".",
283
+ "hasDynamicHelp": false,
284
+ "multiple": false,
285
+ "type": "option"
286
+ },
287
+ "json": {
288
+ "char": "j",
289
+ "description": "Output in JSON format",
290
+ "name": "json",
291
+ "allowNo": false,
292
+ "type": "boolean"
293
+ },
294
+ "no-doc": {
295
+ "description": "Show only metadata without the full documentation",
296
+ "name": "no-doc",
297
+ "allowNo": false,
298
+ "type": "boolean"
299
+ }
300
+ },
301
+ "hasDynamicHelp": false,
302
+ "hiddenAliases": [],
303
+ "id": "doc",
304
+ "pluginAlias": "hereya-cli",
305
+ "pluginName": "hereya-cli",
306
+ "pluginType": "core",
307
+ "strict": true,
308
+ "enableJsonFlag": false,
309
+ "isESM": true,
310
+ "relativePath": [
311
+ "dist",
312
+ "commands",
313
+ "doc",
314
+ "index.js"
315
+ ]
316
+ },
317
317
  "env": {
318
318
  "aliases": [],
319
319
  "args": {
@@ -615,40 +615,6 @@
615
615
  "index.js"
616
616
  ]
617
617
  },
618
- "publish": {
619
- "aliases": [],
620
- "args": {},
621
- "description": "Publish a package to the Hereya registry",
622
- "examples": [
623
- "$ hereya publish",
624
- "$ hereya publish --chdir=/path/to/package"
625
- ],
626
- "flags": {
627
- "chdir": {
628
- "description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n ",
629
- "name": "chdir",
630
- "required": false,
631
- "hasDynamicHelp": false,
632
- "multiple": false,
633
- "type": "option"
634
- }
635
- },
636
- "hasDynamicHelp": false,
637
- "hiddenAliases": [],
638
- "id": "publish",
639
- "pluginAlias": "hereya-cli",
640
- "pluginName": "hereya-cli",
641
- "pluginType": "core",
642
- "strict": true,
643
- "enableJsonFlag": false,
644
- "isESM": true,
645
- "relativePath": [
646
- "dist",
647
- "commands",
648
- "publish",
649
- "index.js"
650
- ]
651
- },
652
618
  "remove": {
653
619
  "aliases": [],
654
620
  "args": {
@@ -703,6 +669,40 @@
703
669
  "index.js"
704
670
  ]
705
671
  },
672
+ "publish": {
673
+ "aliases": [],
674
+ "args": {},
675
+ "description": "Publish a package to the Hereya registry",
676
+ "examples": [
677
+ "$ hereya publish",
678
+ "$ hereya publish --chdir=/path/to/package"
679
+ ],
680
+ "flags": {
681
+ "chdir": {
682
+ "description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n ",
683
+ "name": "chdir",
684
+ "required": false,
685
+ "hasDynamicHelp": false,
686
+ "multiple": false,
687
+ "type": "option"
688
+ }
689
+ },
690
+ "hasDynamicHelp": false,
691
+ "hiddenAliases": [],
692
+ "id": "publish",
693
+ "pluginAlias": "hereya-cli",
694
+ "pluginName": "hereya-cli",
695
+ "pluginType": "core",
696
+ "strict": true,
697
+ "enableJsonFlag": false,
698
+ "isESM": true,
699
+ "relativePath": [
700
+ "dist",
701
+ "commands",
702
+ "publish",
703
+ "index.js"
704
+ ]
705
+ },
706
706
  "run": {
707
707
  "aliases": [],
708
708
  "args": {
@@ -1019,23 +1019,24 @@
1019
1019
  "index.js"
1020
1020
  ]
1021
1021
  },
1022
- "config:import-backend": {
1022
+ "config:use-backend": {
1023
1023
  "aliases": [],
1024
1024
  "args": {
1025
- "file": {
1026
- "description": "Path to the file containing the backend configuration to import",
1027
- "name": "file",
1025
+ "type": {
1026
+ "description": "type of backend to use. Possible values: s3, local",
1027
+ "name": "type",
1028
1028
  "required": true
1029
1029
  }
1030
1030
  },
1031
- "description": "Import a backend configuration from a file",
1031
+ "description": "set the current backend type",
1032
1032
  "examples": [
1033
- "<%= config.bin %> <%= command.id %> ./path/to/cloud-backend.json"
1033
+ "<%= config.bin %> <%= command.id %> s3",
1034
+ "<%= config.bin %> <%= command.id %> local"
1034
1035
  ],
1035
1036
  "flags": {},
1036
1037
  "hasDynamicHelp": false,
1037
1038
  "hiddenAliases": [],
1038
- "id": "config:import-backend",
1039
+ "id": "config:use-backend",
1039
1040
  "pluginAlias": "hereya-cli",
1040
1041
  "pluginName": "hereya-cli",
1041
1042
  "pluginType": "core",
@@ -1046,28 +1047,27 @@
1046
1047
  "dist",
1047
1048
  "commands",
1048
1049
  "config",
1049
- "import-backend",
1050
+ "use-backend",
1050
1051
  "index.js"
1051
1052
  ]
1052
1053
  },
1053
- "config:use-backend": {
1054
+ "config:import-backend": {
1054
1055
  "aliases": [],
1055
1056
  "args": {
1056
- "type": {
1057
- "description": "type of backend to use. Possible values: s3, local",
1058
- "name": "type",
1057
+ "file": {
1058
+ "description": "Path to the file containing the backend configuration to import",
1059
+ "name": "file",
1059
1060
  "required": true
1060
1061
  }
1061
1062
  },
1062
- "description": "set the current backend type",
1063
+ "description": "Import a backend configuration from a file",
1063
1064
  "examples": [
1064
- "<%= config.bin %> <%= command.id %> s3",
1065
- "<%= config.bin %> <%= command.id %> local"
1065
+ "<%= config.bin %> <%= command.id %> ./path/to/cloud-backend.json"
1066
1066
  ],
1067
1067
  "flags": {},
1068
1068
  "hasDynamicHelp": false,
1069
1069
  "hiddenAliases": [],
1070
- "id": "config:use-backend",
1070
+ "id": "config:import-backend",
1071
1071
  "pluginAlias": "hereya-cli",
1072
1072
  "pluginName": "hereya-cli",
1073
1073
  "pluginType": "core",
@@ -1078,7 +1078,7 @@
1078
1078
  "dist",
1079
1079
  "commands",
1080
1080
  "config",
1081
- "use-backend",
1081
+ "import-backend",
1082
1082
  "index.js"
1083
1083
  ]
1084
1084
  },
@@ -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.61.0"
2048
+ "version": "0.62.0"
1991
2049
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.61.0",
4
+ "version": "0.62.0",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.js"