hereya-cli 0.74.0 → 0.75.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
@@ -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.74.0 linux-x64 node-v24.14.0
24
+ hereya-cli/0.75.0 linux-x64 node-v24.14.0
25
25
  $ hereya --help [COMMAND]
26
26
  USAGE
27
27
  $ hereya COMMAND
@@ -72,6 +72,7 @@ USAGE
72
72
  * [`hereya undeploy`](#hereya-undeploy)
73
73
  * [`hereya uninit PROJECT`](#hereya-uninit-project)
74
74
  * [`hereya up`](#hereya-up)
75
+ * [`hereya update [VERSION]`](#hereya-update-version)
75
76
  * [`hereya workspace create NAME`](#hereya-workspace-create-name)
76
77
  * [`hereya workspace delete NAME`](#hereya-workspace-delete-name)
77
78
  * [`hereya workspace env [NAME]`](#hereya-workspace-env-name)
@@ -117,7 +118,7 @@ EXAMPLES
117
118
  $ hereya add cloudy/docker_postgres
118
119
  ```
119
120
 
120
- _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/add/index.ts)_
121
+ _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/add/index.ts)_
121
122
 
122
123
  ## `hereya bootstrap INFRASTRUCTURETYPE`
123
124
 
@@ -142,7 +143,7 @@ EXAMPLES
142
143
  $ hereya bootstrap local
143
144
  ```
144
145
 
145
- _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/bootstrap/index.ts)_
146
+ _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/bootstrap/index.ts)_
146
147
 
147
148
  ## `hereya config export-backend [FILE]`
148
149
 
@@ -164,7 +165,7 @@ EXAMPLES
164
165
  $ hereya config export-backend ./path/to/export.json
165
166
  ```
166
167
 
167
- _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/config/export-backend/index.ts)_
168
+ _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/config/export-backend/index.ts)_
168
169
 
169
170
  ## `hereya config get-backend`
170
171
 
@@ -181,7 +182,7 @@ EXAMPLES
181
182
  $ hereya config get-backend
182
183
  ```
183
184
 
184
- _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/config/get-backend/index.ts)_
185
+ _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/config/get-backend/index.ts)_
185
186
 
186
187
  ## `hereya config import-backend FILE`
187
188
 
@@ -201,7 +202,7 @@ EXAMPLES
201
202
  $ hereya config import-backend ./path/to/cloud-backend.json
202
203
  ```
203
204
 
204
- _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/config/import-backend/index.ts)_
205
+ _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/config/import-backend/index.ts)_
205
206
 
206
207
  ## `hereya config use-backend TYPE`
207
208
 
@@ -223,7 +224,7 @@ EXAMPLES
223
224
  $ hereya config use-backend local
224
225
  ```
225
226
 
226
- _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/config/use-backend/index.ts)_
227
+ _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/config/use-backend/index.ts)_
227
228
 
228
229
  ## `hereya delete-state`
229
230
 
@@ -249,7 +250,7 @@ EXAMPLES
249
250
  $ hereya delete-state --workspace staging
250
251
  ```
251
252
 
252
- _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/delete-state/index.ts)_
253
+ _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/delete-state/index.ts)_
253
254
 
254
255
  ## `hereya deploy`
255
256
 
@@ -274,7 +275,7 @@ EXAMPLES
274
275
  $ hereya deploy
275
276
  ```
276
277
 
277
- _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/deploy/index.ts)_
278
+ _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/deploy/index.ts)_
278
279
 
279
280
  ## `hereya devenv config`
280
281
 
@@ -294,7 +295,7 @@ EXAMPLES
294
295
  $ hereya devenv config -w my-workspace
295
296
  ```
296
297
 
297
- _See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/config/index.ts)_
298
+ _See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/config/index.ts)_
298
299
 
299
300
  ## `hereya devenv install`
300
301
 
@@ -319,7 +320,7 @@ EXAMPLES
319
320
  $ hereya devenv install -w my-workspace -p instanceType=t3.large
320
321
  ```
321
322
 
322
- _See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/install/index.ts)_
323
+ _See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/install/index.ts)_
323
324
 
324
325
  ## `hereya devenv project init PROJECT`
325
326
 
@@ -351,7 +352,7 @@ EXAMPLES
351
352
  $ hereya devenv project init my-app -w my-workspace -t acme/node-starter -p region=us-east-1
352
353
  ```
353
354
 
354
- _See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/project/init/index.ts)_
355
+ _See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/project/init/index.ts)_
355
356
 
356
357
  ## `hereya devenv project uninit PROJECT`
357
358
 
@@ -377,7 +378,7 @@ EXAMPLES
377
378
  $ hereya devenv project uninit my-app -w my-workspace --force
378
379
  ```
379
380
 
380
- _See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/project/uninit/index.ts)_
381
+ _See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/project/uninit/index.ts)_
381
382
 
382
383
  ## `hereya devenv ssh`
383
384
 
@@ -397,7 +398,7 @@ EXAMPLES
397
398
  $ hereya devenv ssh -w my-workspace
398
399
  ```
399
400
 
400
- _See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/ssh/index.ts)_
401
+ _See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/ssh/index.ts)_
401
402
 
402
403
  ## `hereya devenv uninstall`
403
404
 
@@ -418,7 +419,7 @@ EXAMPLES
418
419
  $ hereya devenv uninstall -w my-workspace
419
420
  ```
420
421
 
421
- _See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/devenv/uninstall/index.ts)_
422
+ _See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/devenv/uninstall/index.ts)_
422
423
 
423
424
  ## `hereya doc PACKAGE`
424
425
 
@@ -451,7 +452,7 @@ EXAMPLES
451
452
  $ hereya doc my-package --no-doc
452
453
  ```
453
454
 
454
- _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/doc/index.ts)_
455
+ _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/doc/index.ts)_
455
456
 
456
457
  ## `hereya docker run IMAGE`
457
458
 
@@ -482,7 +483,7 @@ EXAMPLES
482
483
  $ hereya docker run myapp:latest -- --rm -v ./data:/data
483
484
  ```
484
485
 
485
- _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/docker/run/index.ts)_
486
+ _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/docker/run/index.ts)_
486
487
 
487
488
  ## `hereya down`
488
489
 
@@ -509,7 +510,7 @@ EXAMPLES
509
510
  $ hereya down
510
511
  ```
511
512
 
512
- _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/down/index.ts)_
513
+ _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/down/index.ts)_
513
514
 
514
515
  ## `hereya env [NAME]`
515
516
 
@@ -540,7 +541,7 @@ EXAMPLES
540
541
  $ hereya env -w dev -l
541
542
  ```
542
543
 
543
- _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/env/index.ts)_
544
+ _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/env/index.ts)_
544
545
 
545
546
  ## `hereya env set [NAME]`
546
547
 
@@ -567,7 +568,7 @@ EXAMPLES
567
568
  $ hereya env set FOO -v bar -w dev
568
569
  ```
569
570
 
570
- _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/env/set/index.ts)_
571
+ _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/env/set/index.ts)_
571
572
 
572
573
  ## `hereya executor start`
573
574
 
@@ -600,7 +601,7 @@ EXAMPLES
600
601
  HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
601
602
  ```
602
603
 
603
- _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/executor/start/index.ts)_
604
+ _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/executor/start/index.ts)_
604
605
 
605
606
  ## `hereya flow add PACKAGE`
606
607
 
@@ -638,7 +639,7 @@ EXAMPLES
638
639
  $ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
639
640
  ```
640
641
 
641
- _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/add/index.ts)_
642
+ _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/add/index.ts)_
642
643
 
643
644
  ## `hereya flow docker run IMAGE`
644
645
 
@@ -668,7 +669,7 @@ EXAMPLES
668
669
  $ hereya flow docker run --pin myapp:latest -- --rm
669
670
  ```
670
671
 
671
- _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/docker/run/index.ts)_
672
+ _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/docker/run/index.ts)_
672
673
 
673
674
  ## `hereya flow down`
674
675
 
@@ -702,7 +703,7 @@ EXAMPLES
702
703
  $ hereya flow down --pin
703
704
  ```
704
705
 
705
- _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/down/index.ts)_
706
+ _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/down/index.ts)_
706
707
 
707
708
  ## `hereya flow env [NAME]`
708
709
 
@@ -736,7 +737,7 @@ EXAMPLES
736
737
  $ hereya flow env -l
737
738
  ```
738
739
 
739
- _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/env/index.ts)_
740
+ _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/env/index.ts)_
740
741
 
741
742
  ## `hereya flow provid PACKAGE`
742
743
 
@@ -765,7 +766,7 @@ EXAMPLES
765
766
  $ hereya flow provid hereya/postgres --pin
766
767
  ```
767
768
 
768
- _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/provid/index.ts)_
769
+ _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/provid/index.ts)_
769
770
 
770
771
  ## `hereya flow remove PACKAGE`
771
772
 
@@ -795,7 +796,7 @@ EXAMPLES
795
796
  $ hereya flow remove cloudy/docker_postgres --profile staging
796
797
  ```
797
798
 
798
- _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/remove/index.ts)_
799
+ _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/remove/index.ts)_
799
800
 
800
801
  ## `hereya flow run CMD`
801
802
 
@@ -824,7 +825,7 @@ EXAMPLES
824
825
  $ hereya flow run --pin -- npm test
825
826
  ```
826
827
 
827
- _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/run/index.ts)_
828
+ _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/run/index.ts)_
828
829
 
829
830
  ## `hereya flow up`
830
831
 
@@ -858,7 +859,7 @@ EXAMPLES
858
859
  $ hereya flow up --pin
859
860
  ```
860
861
 
861
- _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/flow/up/index.ts)_
862
+ _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/flow/up/index.ts)_
862
863
 
863
864
  ## `hereya help [COMMAND]`
864
865
 
@@ -915,7 +916,7 @@ EXAMPLES
915
916
  $ hereya import org/my-package -f state.tfstate -w my-workspace
916
917
  ```
917
918
 
918
- _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/import/index.ts)_
919
+ _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/import/index.ts)_
919
920
 
920
921
  ## `hereya init PROJECT`
921
922
 
@@ -949,7 +950,7 @@ EXAMPLES
949
950
  $ hereya init myProject -w=dev -t=acme/node-starter -d=prod -p region=us-east-1
950
951
  ```
951
952
 
952
- _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/init/index.ts)_
953
+ _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/init/index.ts)_
953
954
 
954
955
  ## `hereya login [URL]`
955
956
 
@@ -978,7 +979,7 @@ EXAMPLES
978
979
  $ hereya login --token=your-token https://cloud.hereya.dev
979
980
  ```
980
981
 
981
- _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/login/index.ts)_
982
+ _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/login/index.ts)_
982
983
 
983
984
  ## `hereya logout`
984
985
 
@@ -995,7 +996,7 @@ EXAMPLES
995
996
  $ hereya logout
996
997
  ```
997
998
 
998
- _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/logout/index.ts)_
999
+ _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/logout/index.ts)_
999
1000
 
1000
1001
  ## `hereya provid PACKAGE`
1001
1002
 
@@ -1023,7 +1024,7 @@ EXAMPLES
1023
1024
  $ hereya provid hereya/postgres --workspace staging
1024
1025
  ```
1025
1026
 
1026
- _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/provid/index.ts)_
1027
+ _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/provid/index.ts)_
1027
1028
 
1028
1029
  ## `hereya publish`
1029
1030
 
@@ -1046,7 +1047,7 @@ EXAMPLES
1046
1047
  $ hereya publish --chdir=/path/to/package
1047
1048
  ```
1048
1049
 
1049
- _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/publish/index.ts)_
1050
+ _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/publish/index.ts)_
1050
1051
 
1051
1052
  ## `hereya remove PACKAGE`
1052
1053
 
@@ -1074,7 +1075,7 @@ EXAMPLES
1074
1075
  $ hereya remove cloudy/docker_postgres
1075
1076
  ```
1076
1077
 
1077
- _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/remove/index.ts)_
1078
+ _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/remove/index.ts)_
1078
1079
 
1079
1080
  ## `hereya run CMD`
1080
1081
 
@@ -1100,7 +1101,7 @@ EXAMPLES
1100
1101
  $ hereya run -w uat -- node index.js
1101
1102
  ```
1102
1103
 
1103
- _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/run/index.ts)_
1104
+ _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/run/index.ts)_
1104
1105
 
1105
1106
  ## `hereya search QUERY`
1106
1107
 
@@ -1131,7 +1132,7 @@ EXAMPLES
1131
1132
  $ hereya search database --json
1132
1133
  ```
1133
1134
 
1134
- _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/search/index.ts)_
1135
+ _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/search/index.ts)_
1135
1136
 
1136
1137
  ## `hereya unbootstrap INFRASTRUCTURETYPE`
1137
1138
 
@@ -1156,7 +1157,7 @@ EXAMPLES
1156
1157
  $ hereya unbootstrap local
1157
1158
  ```
1158
1159
 
1159
- _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/unbootstrap/index.ts)_
1160
+ _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/unbootstrap/index.ts)_
1160
1161
 
1161
1162
  ## `hereya undeploy`
1162
1163
 
@@ -1181,7 +1182,7 @@ EXAMPLES
1181
1182
  $ hereya undeploy
1182
1183
  ```
1183
1184
 
1184
- _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/undeploy/index.ts)_
1185
+ _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/undeploy/index.ts)_
1185
1186
 
1186
1187
  ## `hereya uninit PROJECT`
1187
1188
 
@@ -1209,7 +1210,7 @@ EXAMPLES
1209
1210
  $ hereya uninit myProject -w dev -p prodWorkspace=prod
1210
1211
  ```
1211
1212
 
1212
- _See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/uninit/index.ts)_
1213
+ _See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/uninit/index.ts)_
1213
1214
 
1214
1215
  ## `hereya up`
1215
1216
 
@@ -1236,7 +1237,29 @@ EXAMPLES
1236
1237
  $ hereya up
1237
1238
  ```
1238
1239
 
1239
- _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/up/index.ts)_
1240
+ _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/up/index.ts)_
1241
+
1242
+ ## `hereya update [VERSION]`
1243
+
1244
+ Update hereya CLI to the latest or a specific version.
1245
+
1246
+ ```
1247
+ USAGE
1248
+ $ hereya update [VERSION]
1249
+
1250
+ ARGUMENTS
1251
+ VERSION [default: latest] version to update to
1252
+
1253
+ DESCRIPTION
1254
+ Update hereya CLI to the latest or a specific version.
1255
+
1256
+ EXAMPLES
1257
+ $ hereya update
1258
+
1259
+ $ hereya update 0.75.0
1260
+ ```
1261
+
1262
+ _See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/update/index.ts)_
1240
1263
 
1241
1264
  ## `hereya workspace create NAME`
1242
1265
 
@@ -1261,7 +1284,7 @@ EXAMPLES
1261
1284
  $ hereya workspace create dev
1262
1285
  ```
1263
1286
 
1264
- _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/create/index.ts)_
1287
+ _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/create/index.ts)_
1265
1288
 
1266
1289
  ## `hereya workspace delete NAME`
1267
1290
 
@@ -1281,7 +1304,7 @@ EXAMPLES
1281
1304
  $ hereya workspace delete dev
1282
1305
  ```
1283
1306
 
1284
- _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/delete/index.ts)_
1307
+ _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/delete/index.ts)_
1285
1308
 
1286
1309
  ## `hereya workspace env [NAME]`
1287
1310
 
@@ -1307,7 +1330,7 @@ EXAMPLES
1307
1330
  $ hereya workspace env myEnv -w dev
1308
1331
  ```
1309
1332
 
1310
- _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/env/index.ts)_
1333
+ _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/env/index.ts)_
1311
1334
 
1312
1335
  ## `hereya workspace env set`
1313
1336
 
@@ -1331,7 +1354,7 @@ EXAMPLES
1331
1354
  $ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
1332
1355
  ```
1333
1356
 
1334
- _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/env/set/index.ts)_
1357
+ _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/env/set/index.ts)_
1335
1358
 
1336
1359
  ## `hereya workspace env unset`
1337
1360
 
@@ -1352,7 +1375,7 @@ EXAMPLES
1352
1375
  $ hereya workspace env unset -w my-workspace -n myVar
1353
1376
  ```
1354
1377
 
1355
- _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/env/unset/index.ts)_
1378
+ _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/env/unset/index.ts)_
1356
1379
 
1357
1380
  ## `hereya workspace executor install`
1358
1381
 
@@ -1371,7 +1394,7 @@ DESCRIPTION
1371
1394
  Install a remote executor into a workspace
1372
1395
  ```
1373
1396
 
1374
- _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/executor/install/index.ts)_
1397
+ _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/executor/install/index.ts)_
1375
1398
 
1376
1399
  ## `hereya workspace executor token`
1377
1400
 
@@ -1388,7 +1411,7 @@ DESCRIPTION
1388
1411
  Generate a workspace-scoped executor token for the remote executor
1389
1412
  ```
1390
1413
 
1391
- _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/executor/token/index.ts)_
1414
+ _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/executor/token/index.ts)_
1392
1415
 
1393
1416
  ## `hereya workspace executor uninstall`
1394
1417
 
@@ -1406,7 +1429,7 @@ DESCRIPTION
1406
1429
  Uninstall the remote executor from a workspace
1407
1430
  ```
1408
1431
 
1409
- _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/executor/uninstall/index.ts)_
1432
+ _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/executor/uninstall/index.ts)_
1410
1433
 
1411
1434
  ## `hereya workspace install PACKAGE`
1412
1435
 
@@ -1433,7 +1456,7 @@ EXAMPLES
1433
1456
  $ hereya workspace install hereya/aws-cognito
1434
1457
  ```
1435
1458
 
1436
- _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/install/index.ts)_
1459
+ _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/install/index.ts)_
1437
1460
 
1438
1461
  ## `hereya workspace list`
1439
1462
 
@@ -1457,7 +1480,7 @@ EXAMPLES
1457
1480
  $ hereya workspace list --org personal
1458
1481
  ```
1459
1482
 
1460
- _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/list/index.ts)_
1483
+ _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/list/index.ts)_
1461
1484
 
1462
1485
  ## `hereya workspace set-profile PROFILE`
1463
1486
 
@@ -1481,7 +1504,7 @@ EXAMPLES
1481
1504
  $ hereya workspace set-profile prod-profile -w production
1482
1505
  ```
1483
1506
 
1484
- _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/set-profile/index.ts)_
1507
+ _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/set-profile/index.ts)_
1485
1508
 
1486
1509
  ## `hereya workspace uninstall PACKAGE`
1487
1510
 
@@ -1508,5 +1531,5 @@ EXAMPLES
1508
1531
  $ hereya workspace uninstall hereya/aws-cognito
1509
1532
  ```
1510
1533
 
1511
- _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.74.0/src/commands/workspace/uninstall/index.ts)_
1534
+ _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.75.0/src/commands/workspace/uninstall/index.ts)_
1512
1535
  <!-- commandsstop -->
@@ -0,0 +1,9 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class Update extends Command {
3
+ static args: {
4
+ version: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
5
+ };
6
+ static description: string;
7
+ static examples: string[];
8
+ run(): Promise<void>;
9
+ }
@@ -0,0 +1,38 @@
1
+ import { Args, Command } from '@oclif/core';
2
+ import { shellUtils } from '../../lib/shell.js';
3
+ export default class Update extends Command {
4
+ static args = {
5
+ version: Args.string({
6
+ default: 'latest',
7
+ description: 'version to update to',
8
+ required: false,
9
+ }),
10
+ };
11
+ static description = 'Update hereya CLI to the latest or a specific version.';
12
+ static examples = [
13
+ '<%= config.bin %> <%= command.id %>',
14
+ '<%= config.bin %> <%= command.id %> 0.75.0',
15
+ ];
16
+ async run() {
17
+ const { args } = await this.parse(Update);
18
+ const target = args.version;
19
+ const currentVersion = this.config.version;
20
+ this.log(`Current version: ${currentVersion}`);
21
+ this.log(`Updating to ${target}...`);
22
+ try {
23
+ await shellUtils.runShell('npm', ['install', '-g', `hereya-cli@${target}`]);
24
+ // Get the new version after install
25
+ const { stdout } = await shellUtils.runShell('hereya', ['--version']);
26
+ const newVersion = stdout.trim();
27
+ if (newVersion === currentVersion && target === 'latest') {
28
+ this.log(`Already at the latest version (${currentVersion}).`);
29
+ }
30
+ else {
31
+ this.log(`Updated to ${newVersion}.`);
32
+ }
33
+ }
34
+ catch (error) {
35
+ this.error(`Failed to update: ${error.message}`);
36
+ }
37
+ }
38
+ }
@@ -13,4 +13,7 @@ export declare function runShell(cmd: string, args: string[], options?: RunShell
13
13
  stderr: string;
14
14
  stdout: string;
15
15
  }>;
16
+ export declare const shellUtils: {
17
+ runShell: typeof runShell;
18
+ };
16
19
  export declare function delay(ms: number): Promise<unknown> | undefined;
package/dist/lib/shell.js CHANGED
@@ -57,6 +57,10 @@ export async function runShell(cmd, args, options = {}) {
57
57
  });
58
58
  });
59
59
  }
60
+ // Stubbable wrapper around runShell for use in tests.
61
+ export const shellUtils = {
62
+ runShell,
63
+ };
60
64
  export function delay(ms) {
61
65
  if (process.env.NODE_ENV === 'test') {
62
66
  return;
@@ -1077,6 +1077,38 @@
1077
1077
  "index.js"
1078
1078
  ]
1079
1079
  },
1080
+ "update": {
1081
+ "aliases": [],
1082
+ "args": {
1083
+ "version": {
1084
+ "default": "latest",
1085
+ "description": "version to update to",
1086
+ "name": "version",
1087
+ "required": false
1088
+ }
1089
+ },
1090
+ "description": "Update hereya CLI to the latest or a specific version.",
1091
+ "examples": [
1092
+ "<%= config.bin %> <%= command.id %>",
1093
+ "<%= config.bin %> <%= command.id %> 0.75.0"
1094
+ ],
1095
+ "flags": {},
1096
+ "hasDynamicHelp": false,
1097
+ "hiddenAliases": [],
1098
+ "id": "update",
1099
+ "pluginAlias": "hereya-cli",
1100
+ "pluginName": "hereya-cli",
1101
+ "pluginType": "core",
1102
+ "strict": true,
1103
+ "enableJsonFlag": false,
1104
+ "isESM": true,
1105
+ "relativePath": [
1106
+ "dist",
1107
+ "commands",
1108
+ "update",
1109
+ "index.js"
1110
+ ]
1111
+ },
1080
1112
  "config:export-backend": {
1081
1113
  "aliases": [],
1082
1114
  "args": {
@@ -2773,5 +2805,5 @@
2773
2805
  ]
2774
2806
  }
2775
2807
  },
2776
- "version": "0.74.0"
2808
+ "version": "0.75.0"
2777
2809
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.74.0",
4
+ "version": "0.75.0",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.js"