hereya-cli 0.62.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 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.62.0 linux-x64 node-v24.13.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
@@ -103,7 +103,7 @@ EXAMPLES
103
103
  $ hereya add cloudy/docker_postgres
104
104
  ```
105
105
 
106
- _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/add/index.ts)_
106
+ _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/add/index.ts)_
107
107
 
108
108
  ## `hereya bootstrap INFRASTRUCTURETYPE`
109
109
 
@@ -128,7 +128,7 @@ EXAMPLES
128
128
  $ hereya bootstrap local
129
129
  ```
130
130
 
131
- _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/bootstrap/index.ts)_
131
+ _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/bootstrap/index.ts)_
132
132
 
133
133
  ## `hereya config export-backend [FILE]`
134
134
 
@@ -150,7 +150,7 @@ EXAMPLES
150
150
  $ hereya config export-backend ./path/to/export.json
151
151
  ```
152
152
 
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
+ _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)_
154
154
 
155
155
  ## `hereya config get-backend`
156
156
 
@@ -167,7 +167,7 @@ EXAMPLES
167
167
  $ hereya config get-backend
168
168
  ```
169
169
 
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
+ _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)_
171
171
 
172
172
  ## `hereya config import-backend FILE`
173
173
 
@@ -187,7 +187,7 @@ EXAMPLES
187
187
  $ hereya config import-backend ./path/to/cloud-backend.json
188
188
  ```
189
189
 
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
+ _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)_
191
191
 
192
192
  ## `hereya config use-backend TYPE`
193
193
 
@@ -209,7 +209,7 @@ EXAMPLES
209
209
  $ hereya config use-backend local
210
210
  ```
211
211
 
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
+ _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)_
213
213
 
214
214
  ## `hereya delete-state`
215
215
 
@@ -235,7 +235,7 @@ EXAMPLES
235
235
  $ hereya delete-state --workspace staging
236
236
  ```
237
237
 
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
+ _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/delete-state/index.ts)_
239
239
 
240
240
  ## `hereya deploy`
241
241
 
@@ -260,7 +260,7 @@ EXAMPLES
260
260
  $ hereya deploy
261
261
  ```
262
262
 
263
- _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/deploy/index.ts)_
263
+ _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/deploy/index.ts)_
264
264
 
265
265
  ## `hereya doc PACKAGE`
266
266
 
@@ -293,7 +293,7 @@ EXAMPLES
293
293
  $ hereya doc my-package --no-doc
294
294
  ```
295
295
 
296
- _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/doc/index.ts)_
296
+ _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/doc/index.ts)_
297
297
 
298
298
  ## `hereya down`
299
299
 
@@ -320,7 +320,7 @@ EXAMPLES
320
320
  $ hereya down
321
321
  ```
322
322
 
323
- _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/down/index.ts)_
323
+ _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/down/index.ts)_
324
324
 
325
325
  ## `hereya env [NAME]`
326
326
 
@@ -351,7 +351,7 @@ EXAMPLES
351
351
  $ hereya env -w dev -l
352
352
  ```
353
353
 
354
- _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/env/index.ts)_
354
+ _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/env/index.ts)_
355
355
 
356
356
  ## `hereya env set [NAME]`
357
357
 
@@ -378,7 +378,7 @@ EXAMPLES
378
378
  $ hereya env set FOO -v bar -w dev
379
379
  ```
380
380
 
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
+ _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/env/set/index.ts)_
382
382
 
383
383
  ## `hereya flow add PACKAGE`
384
384
 
@@ -416,7 +416,7 @@ EXAMPLES
416
416
  $ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
417
417
  ```
418
418
 
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
+ _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/flow/add/index.ts)_
420
420
 
421
421
  ## `hereya flow down`
422
422
 
@@ -450,7 +450,7 @@ EXAMPLES
450
450
  $ hereya flow down --pin
451
451
  ```
452
452
 
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
+ _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/flow/down/index.ts)_
454
454
 
455
455
  ## `hereya flow env [NAME]`
456
456
 
@@ -484,7 +484,7 @@ EXAMPLES
484
484
  $ hereya flow env -l
485
485
  ```
486
486
 
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)_
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
488
 
489
489
  ## `hereya flow provid PACKAGE`
490
490
 
@@ -513,7 +513,7 @@ EXAMPLES
513
513
  $ hereya flow provid hereya/postgres --pin
514
514
  ```
515
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)_
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)_
517
517
 
518
518
  ## `hereya flow remove PACKAGE`
519
519
 
@@ -543,7 +543,7 @@ EXAMPLES
543
543
  $ hereya flow remove cloudy/docker_postgres --profile staging
544
544
  ```
545
545
 
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)_
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)_
547
547
 
548
548
  ## `hereya flow run CMD`
549
549
 
@@ -572,7 +572,7 @@ EXAMPLES
572
572
  $ hereya flow run --pin -- npm test
573
573
  ```
574
574
 
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)_
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)_
576
576
 
577
577
  ## `hereya flow up`
578
578
 
@@ -606,7 +606,7 @@ EXAMPLES
606
606
  $ hereya flow up --pin
607
607
  ```
608
608
 
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)_
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)_
610
610
 
611
611
  ## `hereya help [COMMAND]`
612
612
 
@@ -663,7 +663,7 @@ EXAMPLES
663
663
  $ hereya import org/my-package -f state.tfstate -w my-workspace
664
664
  ```
665
665
 
666
- _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/import/index.ts)_
666
+ _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/import/index.ts)_
667
667
 
668
668
  ## `hereya init PROJECT`
669
669
 
@@ -689,7 +689,7 @@ EXAMPLES
689
689
  $ hereya init myProject -w=defaultWorkspace --chdir=./myProject
690
690
  ```
691
691
 
692
- _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/init/index.ts)_
692
+ _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/init/index.ts)_
693
693
 
694
694
  ## `hereya login [URL]`
695
695
 
@@ -718,7 +718,7 @@ EXAMPLES
718
718
  $ hereya login --token=your-token https://cloud.hereya.dev
719
719
  ```
720
720
 
721
- _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/login/index.ts)_
721
+ _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/login/index.ts)_
722
722
 
723
723
  ## `hereya logout`
724
724
 
@@ -735,7 +735,7 @@ EXAMPLES
735
735
  $ hereya logout
736
736
  ```
737
737
 
738
- _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/logout/index.ts)_
738
+ _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/logout/index.ts)_
739
739
 
740
740
  ## `hereya provid PACKAGE`
741
741
 
@@ -763,7 +763,7 @@ EXAMPLES
763
763
  $ hereya provid hereya/postgres --workspace staging
764
764
  ```
765
765
 
766
- _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/provid/index.ts)_
766
+ _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/provid/index.ts)_
767
767
 
768
768
  ## `hereya publish`
769
769
 
@@ -786,7 +786,7 @@ EXAMPLES
786
786
  $ hereya publish --chdir=/path/to/package
787
787
  ```
788
788
 
789
- _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/publish/index.ts)_
789
+ _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/publish/index.ts)_
790
790
 
791
791
  ## `hereya remove PACKAGE`
792
792
 
@@ -814,7 +814,7 @@ EXAMPLES
814
814
  $ hereya remove cloudy/docker_postgres
815
815
  ```
816
816
 
817
- _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/remove/index.ts)_
817
+ _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/remove/index.ts)_
818
818
 
819
819
  ## `hereya run CMD`
820
820
 
@@ -840,7 +840,7 @@ EXAMPLES
840
840
  $ hereya run -w uat -- node index.js
841
841
  ```
842
842
 
843
- _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/run/index.ts)_
843
+ _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/run/index.ts)_
844
844
 
845
845
  ## `hereya search QUERY`
846
846
 
@@ -871,7 +871,7 @@ EXAMPLES
871
871
  $ hereya search database --json
872
872
  ```
873
873
 
874
- _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/search/index.ts)_
874
+ _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/search/index.ts)_
875
875
 
876
876
  ## `hereya unbootstrap INFRASTRUCTURETYPE`
877
877
 
@@ -896,7 +896,7 @@ EXAMPLES
896
896
  $ hereya unbootstrap local
897
897
  ```
898
898
 
899
- _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/unbootstrap/index.ts)_
899
+ _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/unbootstrap/index.ts)_
900
900
 
901
901
  ## `hereya undeploy`
902
902
 
@@ -921,7 +921,7 @@ EXAMPLES
921
921
  $ hereya undeploy
922
922
  ```
923
923
 
924
- _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/undeploy/index.ts)_
924
+ _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/undeploy/index.ts)_
925
925
 
926
926
  ## `hereya up`
927
927
 
@@ -948,7 +948,7 @@ EXAMPLES
948
948
  $ hereya up
949
949
  ```
950
950
 
951
- _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.0/src/commands/up/index.ts)_
951
+ _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.62.1/src/commands/up/index.ts)_
952
952
 
953
953
  ## `hereya workspace create NAME`
954
954
 
@@ -973,7 +973,7 @@ EXAMPLES
973
973
  $ hereya workspace create dev
974
974
  ```
975
975
 
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)_
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)_
977
977
 
978
978
  ## `hereya workspace delete NAME`
979
979
 
@@ -993,7 +993,7 @@ EXAMPLES
993
993
  $ hereya workspace delete dev
994
994
  ```
995
995
 
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)_
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)_
997
997
 
998
998
  ## `hereya workspace env [NAME]`
999
999
 
@@ -1019,7 +1019,7 @@ EXAMPLES
1019
1019
  $ hereya workspace env myEnv -w dev
1020
1020
  ```
1021
1021
 
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)_
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)_
1023
1023
 
1024
1024
  ## `hereya workspace env set`
1025
1025
 
@@ -1043,7 +1043,7 @@ EXAMPLES
1043
1043
  $ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
1044
1044
  ```
1045
1045
 
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)_
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)_
1047
1047
 
1048
1048
  ## `hereya workspace env unset`
1049
1049
 
@@ -1064,7 +1064,7 @@ EXAMPLES
1064
1064
  $ hereya workspace env unset -w my-workspace -n myVar
1065
1065
  ```
1066
1066
 
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)_
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)_
1068
1068
 
1069
1069
  ## `hereya workspace install PACKAGE`
1070
1070
 
@@ -1091,7 +1091,7 @@ EXAMPLES
1091
1091
  $ hereya workspace install hereya/aws-cognito
1092
1092
  ```
1093
1093
 
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)_
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)_
1095
1095
 
1096
1096
  ## `hereya workspace list`
1097
1097
 
@@ -1108,7 +1108,7 @@ EXAMPLES
1108
1108
  $ hereya workspace list
1109
1109
  ```
1110
1110
 
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)_
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)_
1112
1112
 
1113
1113
  ## `hereya workspace set-profile PROFILE`
1114
1114
 
@@ -1132,7 +1132,7 @@ EXAMPLES
1132
1132
  $ hereya workspace set-profile prod-profile -w production
1133
1133
  ```
1134
1134
 
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)_
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)_
1136
1136
 
1137
1137
  ## `hereya workspace uninstall PACKAGE`
1138
1138
 
@@ -1159,5 +1159,5 @@ EXAMPLES
1159
1159
  $ hereya workspace uninstall hereya/aws-cognito
1160
1160
  ```
1161
1161
 
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)_
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)_
1163
1163
  <!-- commandsstop -->
@@ -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 filePath = path.join(await this.getParametersFolder(input.projectRootDir), `${pkgName}.yaml`);
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,
@@ -193,6 +193,63 @@
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
+ },
196
253
  "down": {
197
254
  "aliases": [],
198
255
  "args": {},
@@ -257,63 +314,6 @@
257
314
  "index.js"
258
315
  ]
259
316
  },
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,6 +615,40 @@
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
+ },
618
652
  "remove": {
619
653
  "aliases": [],
620
654
  "args": {
@@ -669,40 +703,6 @@
669
703
  "index.js"
670
704
  ]
671
705
  },
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,24 +1019,23 @@
1019
1019
  "index.js"
1020
1020
  ]
1021
1021
  },
1022
- "config:use-backend": {
1022
+ "config:import-backend": {
1023
1023
  "aliases": [],
1024
1024
  "args": {
1025
- "type": {
1026
- "description": "type of backend to use. Possible values: s3, local",
1027
- "name": "type",
1025
+ "file": {
1026
+ "description": "Path to the file containing the backend configuration to import",
1027
+ "name": "file",
1028
1028
  "required": true
1029
1029
  }
1030
1030
  },
1031
- "description": "set the current backend type",
1031
+ "description": "Import a backend configuration from a file",
1032
1032
  "examples": [
1033
- "<%= config.bin %> <%= command.id %> s3",
1034
- "<%= config.bin %> <%= command.id %> local"
1033
+ "<%= config.bin %> <%= command.id %> ./path/to/cloud-backend.json"
1035
1034
  ],
1036
1035
  "flags": {},
1037
1036
  "hasDynamicHelp": false,
1038
1037
  "hiddenAliases": [],
1039
- "id": "config:use-backend",
1038
+ "id": "config:import-backend",
1040
1039
  "pluginAlias": "hereya-cli",
1041
1040
  "pluginName": "hereya-cli",
1042
1041
  "pluginType": "core",
@@ -1047,27 +1046,28 @@
1047
1046
  "dist",
1048
1047
  "commands",
1049
1048
  "config",
1050
- "use-backend",
1049
+ "import-backend",
1051
1050
  "index.js"
1052
1051
  ]
1053
1052
  },
1054
- "config:import-backend": {
1053
+ "config:use-backend": {
1055
1054
  "aliases": [],
1056
1055
  "args": {
1057
- "file": {
1058
- "description": "Path to the file containing the backend configuration to import",
1059
- "name": "file",
1056
+ "type": {
1057
+ "description": "type of backend to use. Possible values: s3, local",
1058
+ "name": "type",
1060
1059
  "required": true
1061
1060
  }
1062
1061
  },
1063
- "description": "Import a backend configuration from a file",
1062
+ "description": "set the current backend type",
1064
1063
  "examples": [
1065
- "<%= config.bin %> <%= command.id %> ./path/to/cloud-backend.json"
1064
+ "<%= config.bin %> <%= command.id %> s3",
1065
+ "<%= config.bin %> <%= command.id %> local"
1066
1066
  ],
1067
1067
  "flags": {},
1068
1068
  "hasDynamicHelp": false,
1069
1069
  "hiddenAliases": [],
1070
- "id": "config:import-backend",
1070
+ "id": "config:use-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
- "import-backend",
1081
+ "use-backend",
1082
1082
  "index.js"
1083
1083
  ]
1084
1084
  },
@@ -2045,5 +2045,5 @@
2045
2045
  ]
2046
2046
  }
2047
2047
  },
2048
- "version": "0.62.0"
2048
+ "version": "0.62.1"
2049
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.62.0",
4
+ "version": "0.62.1",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.js"