hereya-cli 0.86.3 → 0.87.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.86.3 linux-x64 node-v24.14.1
24
+ hereya-cli/0.87.0 linux-x64 node-v24.14.1
25
25
  $ hereya --help [COMMAND]
26
26
  USAGE
27
27
  $ hereya COMMAND
@@ -66,6 +66,7 @@ USAGE
66
66
  * [`hereya flow remove PACKAGE`](#hereya-flow-remove-package)
67
67
  * [`hereya flow run CMD`](#hereya-flow-run-cmd)
68
68
  * [`hereya flow up`](#hereya-flow-up)
69
+ * [`hereya git`](#hereya-git)
69
70
  * [`hereya help [COMMAND]`](#hereya-help-command)
70
71
  * [`hereya import PACKAGE`](#hereya-import-package)
71
72
  * [`hereya init PROJECT`](#hereya-init-project)
@@ -127,7 +128,7 @@ EXAMPLES
127
128
  $ hereya add cloudy/docker_postgres
128
129
  ```
129
130
 
130
- _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/add/index.ts)_
131
+ _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/add/index.ts)_
131
132
 
132
133
  ## `hereya app deploy NAME`
133
134
 
@@ -165,7 +166,7 @@ EXAMPLES
165
166
  $ hereya app deploy my-org/my-app -w prod -p organizationId=org-123
166
167
  ```
167
168
 
168
- _See code: [src/commands/app/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/app/deploy/index.ts)_
169
+ _See code: [src/commands/app/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/app/deploy/index.ts)_
169
170
 
170
171
  ## `hereya app deployments NAME`
171
172
 
@@ -189,7 +190,7 @@ EXAMPLES
189
190
  $ hereya app deployments my-org/my-app
190
191
  ```
191
192
 
192
- _See code: [src/commands/app/deployments/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/app/deployments/index.ts)_
193
+ _See code: [src/commands/app/deployments/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/app/deployments/index.ts)_
193
194
 
194
195
  ## `hereya app destroy NAME`
195
196
 
@@ -221,7 +222,7 @@ EXAMPLES
221
222
  $ hereya app destroy my-org/my-app -w my-workspace
222
223
  ```
223
224
 
224
- _See code: [src/commands/app/destroy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/app/destroy/index.ts)_
225
+ _See code: [src/commands/app/destroy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/app/destroy/index.ts)_
225
226
 
226
227
  ## `hereya app env NAME [KEY]`
227
228
 
@@ -250,7 +251,7 @@ EXAMPLES
250
251
  $ hereya app env my-org/my-app -w my-workspace DATABASE_URL
251
252
  ```
252
253
 
253
- _See code: [src/commands/app/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/app/env/index.ts)_
254
+ _See code: [src/commands/app/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/app/env/index.ts)_
254
255
 
255
256
  ## `hereya app list`
256
257
 
@@ -271,7 +272,7 @@ EXAMPLES
271
272
  $ hereya app list
272
273
  ```
273
274
 
274
- _See code: [src/commands/app/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/app/list/index.ts)_
275
+ _See code: [src/commands/app/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/app/list/index.ts)_
275
276
 
276
277
  ## `hereya app new DIRNAME`
277
278
 
@@ -297,7 +298,7 @@ EXAMPLES
297
298
  $ hereya app new ./my-app -n my-org/my-app --description "An ai-app-builder app"
298
299
  ```
299
300
 
300
- _See code: [src/commands/app/new/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/app/new/index.ts)_
301
+ _See code: [src/commands/app/new/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/app/new/index.ts)_
301
302
 
302
303
  ## `hereya app status NAME`
303
304
 
@@ -323,7 +324,7 @@ EXAMPLES
323
324
  $ hereya app status my-org/my-app -w my-workspace
324
325
  ```
325
326
 
326
- _See code: [src/commands/app/status/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/app/status/index.ts)_
327
+ _See code: [src/commands/app/status/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/app/status/index.ts)_
327
328
 
328
329
  ## `hereya bootstrap INFRASTRUCTURETYPE`
329
330
 
@@ -348,7 +349,7 @@ EXAMPLES
348
349
  $ hereya bootstrap local
349
350
  ```
350
351
 
351
- _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/bootstrap/index.ts)_
352
+ _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/bootstrap/index.ts)_
352
353
 
353
354
  ## `hereya clone PROJECT`
354
355
 
@@ -373,7 +374,7 @@ EXAMPLES
373
374
  $ hereya clone myProject --chdir=./myProject
374
375
  ```
375
376
 
376
- _See code: [src/commands/clone/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/clone/index.ts)_
377
+ _See code: [src/commands/clone/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/clone/index.ts)_
377
378
 
378
379
  ## `hereya config export-backend [FILE]`
379
380
 
@@ -395,7 +396,7 @@ EXAMPLES
395
396
  $ hereya config export-backend ./path/to/export.json
396
397
  ```
397
398
 
398
- _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/config/export-backend/index.ts)_
399
+ _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/config/export-backend/index.ts)_
399
400
 
400
401
  ## `hereya config get-backend`
401
402
 
@@ -412,7 +413,7 @@ EXAMPLES
412
413
  $ hereya config get-backend
413
414
  ```
414
415
 
415
- _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/config/get-backend/index.ts)_
416
+ _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/config/get-backend/index.ts)_
416
417
 
417
418
  ## `hereya config import-backend FILE`
418
419
 
@@ -432,7 +433,7 @@ EXAMPLES
432
433
  $ hereya config import-backend ./path/to/cloud-backend.json
433
434
  ```
434
435
 
435
- _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/config/import-backend/index.ts)_
436
+ _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/config/import-backend/index.ts)_
436
437
 
437
438
  ## `hereya config use-backend TYPE`
438
439
 
@@ -454,7 +455,7 @@ EXAMPLES
454
455
  $ hereya config use-backend local
455
456
  ```
456
457
 
457
- _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/config/use-backend/index.ts)_
458
+ _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/config/use-backend/index.ts)_
458
459
 
459
460
  ## `hereya delete-state`
460
461
 
@@ -480,7 +481,7 @@ EXAMPLES
480
481
  $ hereya delete-state --workspace staging
481
482
  ```
482
483
 
483
- _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/delete-state/index.ts)_
484
+ _See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/delete-state/index.ts)_
484
485
 
485
486
  ## `hereya deploy`
486
487
 
@@ -509,7 +510,7 @@ EXAMPLES
509
510
  $ hereya deploy
510
511
  ```
511
512
 
512
- _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/deploy/index.ts)_
513
+ _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/deploy/index.ts)_
513
514
 
514
515
  ## `hereya devenv config`
515
516
 
@@ -529,7 +530,7 @@ EXAMPLES
529
530
  $ hereya devenv config -w my-workspace
530
531
  ```
531
532
 
532
- _See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/devenv/config/index.ts)_
533
+ _See code: [src/commands/devenv/config/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/devenv/config/index.ts)_
533
534
 
534
535
  ## `hereya devenv install`
535
536
 
@@ -554,7 +555,7 @@ EXAMPLES
554
555
  $ hereya devenv install -w my-workspace -p instanceType=t3.large
555
556
  ```
556
557
 
557
- _See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/devenv/install/index.ts)_
558
+ _See code: [src/commands/devenv/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/devenv/install/index.ts)_
558
559
 
559
560
  ## `hereya devenv project init PROJECT`
560
561
 
@@ -586,7 +587,7 @@ EXAMPLES
586
587
  $ hereya devenv project init my-app -w my-workspace -t acme/node-starter -p region=us-east-1
587
588
  ```
588
589
 
589
- _See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/devenv/project/init/index.ts)_
590
+ _See code: [src/commands/devenv/project/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/devenv/project/init/index.ts)_
590
591
 
591
592
  ## `hereya devenv project uninit PROJECT`
592
593
 
@@ -612,7 +613,7 @@ EXAMPLES
612
613
  $ hereya devenv project uninit my-app -w my-workspace --force
613
614
  ```
614
615
 
615
- _See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/devenv/project/uninit/index.ts)_
616
+ _See code: [src/commands/devenv/project/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/devenv/project/uninit/index.ts)_
616
617
 
617
618
  ## `hereya devenv ssh`
618
619
 
@@ -632,7 +633,7 @@ EXAMPLES
632
633
  $ hereya devenv ssh -w my-workspace
633
634
  ```
634
635
 
635
- _See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/devenv/ssh/index.ts)_
636
+ _See code: [src/commands/devenv/ssh/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/devenv/ssh/index.ts)_
636
637
 
637
638
  ## `hereya devenv uninstall`
638
639
 
@@ -653,7 +654,7 @@ EXAMPLES
653
654
  $ hereya devenv uninstall -w my-workspace
654
655
  ```
655
656
 
656
- _See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/devenv/uninstall/index.ts)_
657
+ _See code: [src/commands/devenv/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/devenv/uninstall/index.ts)_
657
658
 
658
659
  ## `hereya doc PACKAGE`
659
660
 
@@ -686,7 +687,7 @@ EXAMPLES
686
687
  $ hereya doc my-package --no-doc
687
688
  ```
688
689
 
689
- _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/doc/index.ts)_
690
+ _See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/doc/index.ts)_
690
691
 
691
692
  ## `hereya docker run IMAGE`
692
693
 
@@ -717,7 +718,7 @@ EXAMPLES
717
718
  $ hereya docker run myapp:latest -- --rm -v ./data:/data
718
719
  ```
719
720
 
720
- _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/docker/run/index.ts)_
721
+ _See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/docker/run/index.ts)_
721
722
 
722
723
  ## `hereya down`
723
724
 
@@ -744,7 +745,7 @@ EXAMPLES
744
745
  $ hereya down
745
746
  ```
746
747
 
747
- _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/down/index.ts)_
748
+ _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/down/index.ts)_
748
749
 
749
750
  ## `hereya env [NAME]`
750
751
 
@@ -775,7 +776,7 @@ EXAMPLES
775
776
  $ hereya env -w dev -l
776
777
  ```
777
778
 
778
- _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/env/index.ts)_
779
+ _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/env/index.ts)_
779
780
 
780
781
  ## `hereya env set [NAME]`
781
782
 
@@ -802,7 +803,7 @@ EXAMPLES
802
803
  $ hereya env set FOO -v bar -w dev
803
804
  ```
804
805
 
805
- _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/env/set/index.ts)_
806
+ _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/env/set/index.ts)_
806
807
 
807
808
  ## `hereya executor start`
808
809
 
@@ -835,7 +836,7 @@ EXAMPLES
835
836
  HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
836
837
  ```
837
838
 
838
- _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/executor/start/index.ts)_
839
+ _See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/executor/start/index.ts)_
839
840
 
840
841
  ## `hereya flow add PACKAGE`
841
842
 
@@ -873,7 +874,7 @@ EXAMPLES
873
874
  $ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
874
875
  ```
875
876
 
876
- _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/flow/add/index.ts)_
877
+ _See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/flow/add/index.ts)_
877
878
 
878
879
  ## `hereya flow docker run IMAGE`
879
880
 
@@ -903,7 +904,7 @@ EXAMPLES
903
904
  $ hereya flow docker run --pin myapp:latest -- --rm
904
905
  ```
905
906
 
906
- _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/flow/docker/run/index.ts)_
907
+ _See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/flow/docker/run/index.ts)_
907
908
 
908
909
  ## `hereya flow down`
909
910
 
@@ -937,7 +938,7 @@ EXAMPLES
937
938
  $ hereya flow down --pin
938
939
  ```
939
940
 
940
- _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/flow/down/index.ts)_
941
+ _See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/flow/down/index.ts)_
941
942
 
942
943
  ## `hereya flow env [NAME]`
943
944
 
@@ -971,7 +972,7 @@ EXAMPLES
971
972
  $ hereya flow env -l
972
973
  ```
973
974
 
974
- _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/flow/env/index.ts)_
975
+ _See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/flow/env/index.ts)_
975
976
 
976
977
  ## `hereya flow provid PACKAGE`
977
978
 
@@ -1000,7 +1001,7 @@ EXAMPLES
1000
1001
  $ hereya flow provid hereya/postgres --pin
1001
1002
  ```
1002
1003
 
1003
- _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/flow/provid/index.ts)_
1004
+ _See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/flow/provid/index.ts)_
1004
1005
 
1005
1006
  ## `hereya flow remove PACKAGE`
1006
1007
 
@@ -1030,7 +1031,7 @@ EXAMPLES
1030
1031
  $ hereya flow remove cloudy/docker_postgres --profile staging
1031
1032
  ```
1032
1033
 
1033
- _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/flow/remove/index.ts)_
1034
+ _See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/flow/remove/index.ts)_
1034
1035
 
1035
1036
  ## `hereya flow run CMD`
1036
1037
 
@@ -1059,7 +1060,7 @@ EXAMPLES
1059
1060
  $ hereya flow run --pin -- npm test
1060
1061
  ```
1061
1062
 
1062
- _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/flow/run/index.ts)_
1063
+ _See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/flow/run/index.ts)_
1063
1064
 
1064
1065
  ## `hereya flow up`
1065
1066
 
@@ -1093,7 +1094,39 @@ EXAMPLES
1093
1094
  $ hereya flow up --pin
1094
1095
  ```
1095
1096
 
1096
- _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/flow/up/index.ts)_
1097
+ _See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/flow/up/index.ts)_
1098
+
1099
+ ## `hereya git`
1100
+
1101
+ Run an arbitrary git command with the hereya credential helper available. Wraps `git <args...>`, propagating an ephemeral `--token` to the credential-helper grandchild via `HEREYA_EPHEMERAL_TOKEN`. After a successful `clone`, also wires the cloned repo to use the hereya credential helper for future `push`/`pull`/`fetch` operations. Use `--` to separate hereya flags from git flags so e.g. `--depth` reaches git instead of being parsed by oclif.
1102
+
1103
+ ```
1104
+ USAGE
1105
+ $ hereya git [--chdir <value>] [--token <value>]
1106
+
1107
+ FLAGS
1108
+ --chdir=<value> directory to run git in (cwd of the spawned git process)
1109
+ --token=<value> Ephemeral cloud access token used for this invocation only. Held in memory; never written to the
1110
+ keychain or `~/.hereya/secrets/`. Propagated to the git credential-helper grandchild via the
1111
+ HEREYA_EPHEMERAL_TOKEN env var. Takes precedence over the HEREYA_TOKEN environment variable.
1112
+
1113
+ DESCRIPTION
1114
+ Run an arbitrary git command with the hereya credential helper available. Wraps `git <args...>`, propagating an
1115
+ ephemeral `--token` to the credential-helper grandchild via `HEREYA_EPHEMERAL_TOKEN`. After a successful `clone`, also
1116
+ wires the cloned repo to use the hereya credential helper for future `push`/`pull`/`fetch` operations. Use `--` to
1117
+ separate hereya flags from git flags so e.g. `--depth` reaches git instead of being parsed by oclif.
1118
+
1119
+ EXAMPLES
1120
+ $ hereya git --token <token> -- push
1121
+
1122
+ $ hereya git --token <token> -- pull --rebase
1123
+
1124
+ $ hereya git --token <token> -- clone https://github.com/owner/repo my-dir
1125
+
1126
+ $ hereya git -- log --oneline -10
1127
+ ```
1128
+
1129
+ _See code: [src/commands/git/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/git/index.ts)_
1097
1130
 
1098
1131
  ## `hereya help [COMMAND]`
1099
1132
 
@@ -1150,7 +1183,7 @@ EXAMPLES
1150
1183
  $ hereya import org/my-package -f state.tfstate -w my-workspace
1151
1184
  ```
1152
1185
 
1153
- _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/import/index.ts)_
1186
+ _See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/import/index.ts)_
1154
1187
 
1155
1188
  ## `hereya init PROJECT`
1156
1189
 
@@ -1188,7 +1221,7 @@ EXAMPLES
1188
1221
  $ hereya init myProject -w=dev -t=acme/node-starter -d=prod -p region=us-east-1
1189
1222
  ```
1190
1223
 
1191
- _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/init/index.ts)_
1224
+ _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/init/index.ts)_
1192
1225
 
1193
1226
  ## `hereya list`
1194
1227
 
@@ -1205,7 +1238,7 @@ EXAMPLES
1205
1238
  $ hereya list
1206
1239
  ```
1207
1240
 
1208
- _See code: [src/commands/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/list/index.ts)_
1241
+ _See code: [src/commands/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/list/index.ts)_
1209
1242
 
1210
1243
  ## `hereya login [URL]`
1211
1244
 
@@ -1234,7 +1267,7 @@ EXAMPLES
1234
1267
  $ hereya login --token=your-token https://cloud.hereya.dev
1235
1268
  ```
1236
1269
 
1237
- _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/login/index.ts)_
1270
+ _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/login/index.ts)_
1238
1271
 
1239
1272
  ## `hereya logout`
1240
1273
 
@@ -1251,7 +1284,7 @@ EXAMPLES
1251
1284
  $ hereya logout
1252
1285
  ```
1253
1286
 
1254
- _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/logout/index.ts)_
1287
+ _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/logout/index.ts)_
1255
1288
 
1256
1289
  ## `hereya provid PACKAGE`
1257
1290
 
@@ -1279,7 +1312,7 @@ EXAMPLES
1279
1312
  $ hereya provid hereya/postgres --workspace staging
1280
1313
  ```
1281
1314
 
1282
- _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/provid/index.ts)_
1315
+ _See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/provid/index.ts)_
1283
1316
 
1284
1317
  ## `hereya publish`
1285
1318
 
@@ -1304,7 +1337,7 @@ EXAMPLES
1304
1337
  $ hereya publish --chdir=/path/to/package
1305
1338
  ```
1306
1339
 
1307
- _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/publish/index.ts)_
1340
+ _See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/publish/index.ts)_
1308
1341
 
1309
1342
  ## `hereya remove PACKAGE`
1310
1343
 
@@ -1332,7 +1365,7 @@ EXAMPLES
1332
1365
  $ hereya remove cloudy/docker_postgres
1333
1366
  ```
1334
1367
 
1335
- _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/remove/index.ts)_
1368
+ _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/remove/index.ts)_
1336
1369
 
1337
1370
  ## `hereya run CMD`
1338
1371
 
@@ -1361,7 +1394,7 @@ EXAMPLES
1361
1394
  $ hereya run -w uat -- node index.js
1362
1395
  ```
1363
1396
 
1364
- _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/run/index.ts)_
1397
+ _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/run/index.ts)_
1365
1398
 
1366
1399
  ## `hereya search QUERY`
1367
1400
 
@@ -1394,7 +1427,7 @@ EXAMPLES
1394
1427
  $ hereya search database --json
1395
1428
  ```
1396
1429
 
1397
- _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/search/index.ts)_
1430
+ _See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/search/index.ts)_
1398
1431
 
1399
1432
  ## `hereya unbootstrap INFRASTRUCTURETYPE`
1400
1433
 
@@ -1419,7 +1452,7 @@ EXAMPLES
1419
1452
  $ hereya unbootstrap local
1420
1453
  ```
1421
1454
 
1422
- _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/unbootstrap/index.ts)_
1455
+ _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/unbootstrap/index.ts)_
1423
1456
 
1424
1457
  ## `hereya undeploy`
1425
1458
 
@@ -1448,7 +1481,7 @@ EXAMPLES
1448
1481
  $ hereya undeploy
1449
1482
  ```
1450
1483
 
1451
- _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/undeploy/index.ts)_
1484
+ _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/undeploy/index.ts)_
1452
1485
 
1453
1486
  ## `hereya uninit PROJECT`
1454
1487
 
@@ -1476,7 +1509,7 @@ EXAMPLES
1476
1509
  $ hereya uninit myProject -w dev -p prodWorkspace=prod
1477
1510
  ```
1478
1511
 
1479
- _See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/uninit/index.ts)_
1512
+ _See code: [src/commands/uninit/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/uninit/index.ts)_
1480
1513
 
1481
1514
  ## `hereya up`
1482
1515
 
@@ -1506,7 +1539,7 @@ EXAMPLES
1506
1539
  $ hereya up
1507
1540
  ```
1508
1541
 
1509
- _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/up/index.ts)_
1542
+ _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/up/index.ts)_
1510
1543
 
1511
1544
  ## `hereya update [VERSION]`
1512
1545
 
@@ -1528,7 +1561,7 @@ EXAMPLES
1528
1561
  $ hereya update 0.75.0
1529
1562
  ```
1530
1563
 
1531
- _See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/update/index.ts)_
1564
+ _See code: [src/commands/update/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/update/index.ts)_
1532
1565
 
1533
1566
  ## `hereya workspace create NAME`
1534
1567
 
@@ -1553,7 +1586,7 @@ EXAMPLES
1553
1586
  $ hereya workspace create dev
1554
1587
  ```
1555
1588
 
1556
- _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/create/index.ts)_
1589
+ _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/create/index.ts)_
1557
1590
 
1558
1591
  ## `hereya workspace delete NAME`
1559
1592
 
@@ -1573,7 +1606,7 @@ EXAMPLES
1573
1606
  $ hereya workspace delete dev
1574
1607
  ```
1575
1608
 
1576
- _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/delete/index.ts)_
1609
+ _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/delete/index.ts)_
1577
1610
 
1578
1611
  ## `hereya workspace env [NAME]`
1579
1612
 
@@ -1599,7 +1632,7 @@ EXAMPLES
1599
1632
  $ hereya workspace env myEnv -w dev
1600
1633
  ```
1601
1634
 
1602
- _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/env/index.ts)_
1635
+ _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/env/index.ts)_
1603
1636
 
1604
1637
  ## `hereya workspace env set`
1605
1638
 
@@ -1623,7 +1656,7 @@ EXAMPLES
1623
1656
  $ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
1624
1657
  ```
1625
1658
 
1626
- _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/env/set/index.ts)_
1659
+ _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/env/set/index.ts)_
1627
1660
 
1628
1661
  ## `hereya workspace env unset`
1629
1662
 
@@ -1644,7 +1677,7 @@ EXAMPLES
1644
1677
  $ hereya workspace env unset -w my-workspace -n myVar
1645
1678
  ```
1646
1679
 
1647
- _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/env/unset/index.ts)_
1680
+ _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/env/unset/index.ts)_
1648
1681
 
1649
1682
  ## `hereya workspace executor install`
1650
1683
 
@@ -1666,7 +1699,7 @@ DESCRIPTION
1666
1699
  Install a remote executor into a workspace
1667
1700
  ```
1668
1701
 
1669
- _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/executor/install/index.ts)_
1702
+ _See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/executor/install/index.ts)_
1670
1703
 
1671
1704
  ## `hereya workspace executor token`
1672
1705
 
@@ -1686,7 +1719,7 @@ DESCRIPTION
1686
1719
  Generate a workspace-scoped executor token for the remote executor
1687
1720
  ```
1688
1721
 
1689
- _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/executor/token/index.ts)_
1722
+ _See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/executor/token/index.ts)_
1690
1723
 
1691
1724
  ## `hereya workspace executor uninstall`
1692
1725
 
@@ -1707,7 +1740,7 @@ DESCRIPTION
1707
1740
  Uninstall the remote executor from a workspace
1708
1741
  ```
1709
1742
 
1710
- _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/executor/uninstall/index.ts)_
1743
+ _See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/executor/uninstall/index.ts)_
1711
1744
 
1712
1745
  ## `hereya workspace install PACKAGE`
1713
1746
 
@@ -1734,7 +1767,7 @@ EXAMPLES
1734
1767
  $ hereya workspace install hereya/aws-cognito
1735
1768
  ```
1736
1769
 
1737
- _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/install/index.ts)_
1770
+ _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/install/index.ts)_
1738
1771
 
1739
1772
  ## `hereya workspace list`
1740
1773
 
@@ -1758,7 +1791,7 @@ EXAMPLES
1758
1791
  $ hereya workspace list --org personal
1759
1792
  ```
1760
1793
 
1761
- _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/list/index.ts)_
1794
+ _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/list/index.ts)_
1762
1795
 
1763
1796
  ## `hereya workspace set-profile PROFILE`
1764
1797
 
@@ -1782,7 +1815,7 @@ EXAMPLES
1782
1815
  $ hereya workspace set-profile prod-profile -w production
1783
1816
  ```
1784
1817
 
1785
- _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/set-profile/index.ts)_
1818
+ _See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/set-profile/index.ts)_
1786
1819
 
1787
1820
  ## `hereya workspace uninstall PACKAGE`
1788
1821
 
@@ -1809,5 +1842,5 @@ EXAMPLES
1809
1842
  $ hereya workspace uninstall hereya/aws-cognito
1810
1843
  ```
1811
1844
 
1812
- _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.86.3/src/commands/workspace/uninstall/index.ts)_
1845
+ _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.87.0/src/commands/workspace/uninstall/index.ts)_
1813
1846
  <!-- commandsstop -->
@@ -0,0 +1,12 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class Git extends Command {
3
+ static description: string;
4
+ static examples: string[];
5
+ static flags: {
6
+ chdir: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
+ token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ };
9
+ static strict: boolean;
10
+ run(): Promise<void>;
11
+ private runInner;
12
+ }
@@ -0,0 +1,116 @@
1
+ import { Command, Flags } from '@oclif/core';
2
+ import fs from 'node:fs';
3
+ import path from 'node:path';
4
+ import { withEphemeralToken } from '../../lib/ephemeral-token.js';
5
+ import { gitUtils } from '../../lib/git-utils.js';
6
+ import { getDefaultLogger } from '../../lib/log.js';
7
+ import { shellUtils } from '../../lib/shell.js';
8
+ export default class Git extends Command {
9
+ static description = 'Run an arbitrary git command with the hereya credential helper available. Wraps `git <args...>`, propagating an ephemeral `--token` to the credential-helper grandchild via `HEREYA_EPHEMERAL_TOKEN`. After a successful `clone`, also wires the cloned repo to use the hereya credential helper for future `push`/`pull`/`fetch` operations. Use `--` to separate hereya flags from git flags so e.g. `--depth` reaches git instead of being parsed by oclif.';
10
+ static examples = [
11
+ '<%= config.bin %> <%= command.id %> --token <token> -- push',
12
+ '<%= config.bin %> <%= command.id %> --token <token> -- pull --rebase',
13
+ '<%= config.bin %> <%= command.id %> --token <token> -- clone https://github.com/owner/repo my-dir',
14
+ '<%= config.bin %> <%= command.id %> -- log --oneline -10',
15
+ ];
16
+ static flags = {
17
+ chdir: Flags.string({
18
+ description: 'directory to run git in (cwd of the spawned git process)',
19
+ required: false,
20
+ }),
21
+ token: Flags.string({
22
+ description: 'Ephemeral cloud access token used for this invocation only. Held in memory; never written to the keychain or `~/.hereya/secrets/`. Propagated to the git credential-helper grandchild via the HEREYA_EPHEMERAL_TOKEN env var. Takes precedence over the HEREYA_TOKEN environment variable.',
23
+ required: false,
24
+ }),
25
+ };
26
+ static strict = false;
27
+ async run() {
28
+ const { argv, flags } = await this.parse(Git);
29
+ // Precedence: --token flag > HEREYA_TOKEN env var > keychain.
30
+ if (flags.token) {
31
+ if (process.env.HEREYA_TOKEN) {
32
+ getDefaultLogger().debug('[git] --token flag overrides HEREYA_TOKEN environment variable.');
33
+ }
34
+ return withEphemeralToken(flags.token, () => this.runInner(argv, flags));
35
+ }
36
+ return this.runInner(argv, flags);
37
+ }
38
+ async runInner(gitArgs, flags) {
39
+ if (gitArgs.length === 0) {
40
+ this.error('Missing git arguments. Example: `hereya git push --token <…>`.');
41
+ }
42
+ const cwd = path.resolve(flags.chdir ?? process.env.HEREYA_PROJECT_ROOT_DIR ?? process.cwd());
43
+ const result = await shellUtils.runShell('git', gitArgs, {
44
+ directory: cwd,
45
+ stdio: 'inherit',
46
+ });
47
+ if (result.status !== 0) {
48
+ this.error(`git ${gitArgs.join(' ')} failed (exit ${result.status})`);
49
+ }
50
+ // Auto-wire the credential helper after a successful clone so future
51
+ // git operations from inside the cloned repo find hereya's helper.
52
+ if (gitArgs[0] === 'clone') {
53
+ const target = deriveCloneTarget(gitArgs.slice(1), cwd);
54
+ if (target && fs.existsSync(path.join(target, '.git'))) {
55
+ try {
56
+ await gitUtils.setupCredentialHelper({
57
+ hereyaBinPath: process.argv[1],
58
+ projectDir: target,
59
+ });
60
+ }
61
+ catch (error) {
62
+ // Don't fail the clone if the wire-up step fails — surface as warning.
63
+ this.warn(`Cloned ${gitArgs.join(' ')} successfully, but failed to wire the hereya credential helper in ${target}: ${error.message}`);
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ /**
70
+ * Best-effort resolution of the directory `git clone` wrote to. Mirrors git's
71
+ * own behavior: if the user passed an explicit target, that's it; otherwise
72
+ * derive it from the URL's basename (stripping any trailing `.git`).
73
+ *
74
+ * Returns an absolute path or `null` if we can't tell.
75
+ */
76
+ function deriveCloneTarget(cloneArgs, cwd) {
77
+ // Walk the args, skipping flag tokens (--xxx, -x) and their values.
78
+ // This is heuristic — git's flag schema is large — but it covers the
79
+ // common cases (`-c`, `--depth`, `--branch`, `--single-branch`, ...).
80
+ // If the heuristic is wrong, the existsSync(.git) check below will skip
81
+ // wire-up rather than touching the wrong directory.
82
+ const positional = [];
83
+ for (let i = 0; i < cloneArgs.length; i++) {
84
+ const a = cloneArgs[i];
85
+ if (a.startsWith('-')) {
86
+ // --flag=value: no separate value arg.
87
+ if (a.includes('='))
88
+ continue;
89
+ // -c key=value, --depth 1, etc.: skip the next arg as a value if it
90
+ // doesn't look like another flag.
91
+ if (i + 1 < cloneArgs.length && !cloneArgs[i + 1].startsWith('-')) {
92
+ i++;
93
+ }
94
+ continue;
95
+ }
96
+ positional.push(a);
97
+ }
98
+ // First positional is the URL; second (optional) is the target.
99
+ if (positional.length >= 2) {
100
+ return path.resolve(cwd, positional[1]);
101
+ }
102
+ if (positional.length === 1) {
103
+ const url = positional[0];
104
+ // Equivalent to Array.findLast(Boolean) but without requiring ES2023 lib.
105
+ const parts = url.replace(/\.git$/, '').split(/[/\\:]/);
106
+ let basename = '';
107
+ for (let i = parts.length - 1; i >= 0; i--) {
108
+ if (parts[i]) {
109
+ basename = parts[i];
110
+ break;
111
+ }
112
+ }
113
+ return basename ? path.resolve(cwd, basename) : null;
114
+ }
115
+ return null;
116
+ }
@@ -455,6 +455,50 @@
455
455
  "index.js"
456
456
  ]
457
457
  },
458
+ "git": {
459
+ "aliases": [],
460
+ "args": {},
461
+ "description": "Run an arbitrary git command with the hereya credential helper available. Wraps `git <args...>`, propagating an ephemeral `--token` to the credential-helper grandchild via `HEREYA_EPHEMERAL_TOKEN`. After a successful `clone`, also wires the cloned repo to use the hereya credential helper for future `push`/`pull`/`fetch` operations. Use `--` to separate hereya flags from git flags so e.g. `--depth` reaches git instead of being parsed by oclif.",
462
+ "examples": [
463
+ "<%= config.bin %> <%= command.id %> --token <token> -- push",
464
+ "<%= config.bin %> <%= command.id %> --token <token> -- pull --rebase",
465
+ "<%= config.bin %> <%= command.id %> --token <token> -- clone https://github.com/owner/repo my-dir",
466
+ "<%= config.bin %> <%= command.id %> -- log --oneline -10"
467
+ ],
468
+ "flags": {
469
+ "chdir": {
470
+ "description": "directory to run git in (cwd of the spawned git process)",
471
+ "name": "chdir",
472
+ "required": false,
473
+ "hasDynamicHelp": false,
474
+ "multiple": false,
475
+ "type": "option"
476
+ },
477
+ "token": {
478
+ "description": "Ephemeral cloud access token used for this invocation only. Held in memory; never written to the keychain or `~/.hereya/secrets/`. Propagated to the git credential-helper grandchild via the HEREYA_EPHEMERAL_TOKEN env var. Takes precedence over the HEREYA_TOKEN environment variable.",
479
+ "name": "token",
480
+ "required": false,
481
+ "hasDynamicHelp": false,
482
+ "multiple": false,
483
+ "type": "option"
484
+ }
485
+ },
486
+ "hasDynamicHelp": false,
487
+ "hiddenAliases": [],
488
+ "id": "git",
489
+ "pluginAlias": "hereya-cli",
490
+ "pluginName": "hereya-cli",
491
+ "pluginType": "core",
492
+ "strict": false,
493
+ "enableJsonFlag": false,
494
+ "isESM": true,
495
+ "relativePath": [
496
+ "dist",
497
+ "commands",
498
+ "git",
499
+ "index.js"
500
+ ]
501
+ },
458
502
  "import": {
459
503
  "aliases": [],
460
504
  "args": {
@@ -1079,43 +1123,57 @@
1079
1123
  "index.js"
1080
1124
  ]
1081
1125
  },
1082
- "uninit": {
1126
+ "up": {
1083
1127
  "aliases": [],
1084
- "args": {
1085
- "project": {
1086
- "description": "project name",
1087
- "name": "project",
1088
- "required": true
1089
- }
1090
- },
1091
- "description": "Destroy template infrastructure and uninitialize a project.",
1128
+ "args": {},
1129
+ "description": "Provision all packages in the project.",
1092
1130
  "examples": [
1093
- "<%= config.bin %> <%= command.id %> myProject -w dev",
1094
- "<%= config.bin %> <%= command.id %> myProject -w dev -p prodWorkspace=prod"
1131
+ "<%= config.bin %> <%= command.id %>"
1095
1132
  ],
1096
1133
  "flags": {
1097
1134
  "chdir": {
1098
- "description": "directory to run command in",
1135
+ "description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.\n ",
1099
1136
  "name": "chdir",
1100
1137
  "required": false,
1101
1138
  "hasDynamicHelp": false,
1102
1139
  "multiple": false,
1103
1140
  "type": "option"
1104
1141
  },
1105
- "parameter": {
1106
- "char": "p",
1107
- "description": "parameter for the template, in the form of 'key=value'. Overrides saved parameters.",
1108
- "name": "parameter",
1142
+ "debug": {
1143
+ "description": "enable debug mode",
1144
+ "name": "debug",
1145
+ "allowNo": false,
1146
+ "type": "boolean"
1147
+ },
1148
+ "deploy": {
1149
+ "description": "provision deployment companion packages",
1150
+ "name": "deploy",
1151
+ "required": false,
1152
+ "allowNo": false,
1153
+ "type": "boolean"
1154
+ },
1155
+ "select": {
1156
+ "char": "s",
1157
+ "description": "select the packages to provision",
1158
+ "name": "select",
1109
1159
  "default": [],
1110
1160
  "hasDynamicHelp": false,
1111
1161
  "multiple": true,
1112
1162
  "type": "option"
1113
1163
  },
1164
+ "token": {
1165
+ "description": "Ephemeral cloud access token used for this invocation only. Held in memory; never written to the keychain or `~/.hereya/secrets/`. Takes precedence over the HEREYA_TOKEN environment variable.",
1166
+ "name": "token",
1167
+ "required": false,
1168
+ "hasDynamicHelp": false,
1169
+ "multiple": false,
1170
+ "type": "option"
1171
+ },
1114
1172
  "workspace": {
1115
1173
  "char": "w",
1116
- "description": "workspace used during init",
1174
+ "description": "name of the workspace to install the packages for",
1117
1175
  "name": "workspace",
1118
- "required": true,
1176
+ "required": false,
1119
1177
  "hasDynamicHelp": false,
1120
1178
  "multiple": false,
1121
1179
  "type": "option"
@@ -1123,7 +1181,7 @@
1123
1181
  },
1124
1182
  "hasDynamicHelp": false,
1125
1183
  "hiddenAliases": [],
1126
- "id": "uninit",
1184
+ "id": "up",
1127
1185
  "pluginAlias": "hereya-cli",
1128
1186
  "pluginName": "hereya-cli",
1129
1187
  "pluginType": "core",
@@ -1133,61 +1191,47 @@
1133
1191
  "relativePath": [
1134
1192
  "dist",
1135
1193
  "commands",
1136
- "uninit",
1194
+ "up",
1137
1195
  "index.js"
1138
1196
  ]
1139
1197
  },
1140
- "up": {
1198
+ "uninit": {
1141
1199
  "aliases": [],
1142
- "args": {},
1143
- "description": "Provision all packages in the project.",
1200
+ "args": {
1201
+ "project": {
1202
+ "description": "project name",
1203
+ "name": "project",
1204
+ "required": true
1205
+ }
1206
+ },
1207
+ "description": "Destroy template infrastructure and uninitialize a project.",
1144
1208
  "examples": [
1145
- "<%= config.bin %> <%= command.id %>"
1209
+ "<%= config.bin %> <%= command.id %> myProject -w dev",
1210
+ "<%= config.bin %> <%= command.id %> myProject -w dev -p prodWorkspace=prod"
1146
1211
  ],
1147
1212
  "flags": {
1148
1213
  "chdir": {
1149
- "description": "\n Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.\n ",
1214
+ "description": "directory to run command in",
1150
1215
  "name": "chdir",
1151
1216
  "required": false,
1152
1217
  "hasDynamicHelp": false,
1153
1218
  "multiple": false,
1154
1219
  "type": "option"
1155
1220
  },
1156
- "debug": {
1157
- "description": "enable debug mode",
1158
- "name": "debug",
1159
- "allowNo": false,
1160
- "type": "boolean"
1161
- },
1162
- "deploy": {
1163
- "description": "provision deployment companion packages",
1164
- "name": "deploy",
1165
- "required": false,
1166
- "allowNo": false,
1167
- "type": "boolean"
1168
- },
1169
- "select": {
1170
- "char": "s",
1171
- "description": "select the packages to provision",
1172
- "name": "select",
1221
+ "parameter": {
1222
+ "char": "p",
1223
+ "description": "parameter for the template, in the form of 'key=value'. Overrides saved parameters.",
1224
+ "name": "parameter",
1173
1225
  "default": [],
1174
1226
  "hasDynamicHelp": false,
1175
1227
  "multiple": true,
1176
1228
  "type": "option"
1177
1229
  },
1178
- "token": {
1179
- "description": "Ephemeral cloud access token used for this invocation only. Held in memory; never written to the keychain or `~/.hereya/secrets/`. Takes precedence over the HEREYA_TOKEN environment variable.",
1180
- "name": "token",
1181
- "required": false,
1182
- "hasDynamicHelp": false,
1183
- "multiple": false,
1184
- "type": "option"
1185
- },
1186
1230
  "workspace": {
1187
1231
  "char": "w",
1188
- "description": "name of the workspace to install the packages for",
1232
+ "description": "workspace used during init",
1189
1233
  "name": "workspace",
1190
- "required": false,
1234
+ "required": true,
1191
1235
  "hasDynamicHelp": false,
1192
1236
  "multiple": false,
1193
1237
  "type": "option"
@@ -1195,7 +1239,7 @@
1195
1239
  },
1196
1240
  "hasDynamicHelp": false,
1197
1241
  "hiddenAliases": [],
1198
- "id": "up",
1242
+ "id": "uninit",
1199
1243
  "pluginAlias": "hereya-cli",
1200
1244
  "pluginName": "hereya-cli",
1201
1245
  "pluginType": "core",
@@ -1205,7 +1249,7 @@
1205
1249
  "relativePath": [
1206
1250
  "dist",
1207
1251
  "commands",
1208
- "up",
1252
+ "uninit",
1209
1253
  "index.js"
1210
1254
  ]
1211
1255
  },
@@ -3154,26 +3198,35 @@
3154
3198
  "index.js"
3155
3199
  ]
3156
3200
  },
3157
- "workspace:env:unset": {
3201
+ "workspace:executor:install": {
3158
3202
  "aliases": [],
3159
3203
  "args": {},
3160
- "description": "unset an env var for a workspace",
3161
- "examples": [
3162
- "<%= config.bin %> <%= command.id %> -w my-workspace -n myVar"
3163
- ],
3204
+ "description": "Install a remote executor into a workspace",
3164
3205
  "flags": {
3165
- "name": {
3166
- "char": "n",
3167
- "description": "name of the env var to unset",
3168
- "name": "name",
3169
- "required": true,
3206
+ "debug": {
3207
+ "description": "enable debug mode",
3208
+ "name": "debug",
3209
+ "allowNo": false,
3210
+ "type": "boolean"
3211
+ },
3212
+ "force": {
3213
+ "char": "f",
3214
+ "description": "force reinstall even if executor is already installed",
3215
+ "name": "force",
3216
+ "allowNo": false,
3217
+ "type": "boolean"
3218
+ },
3219
+ "token": {
3220
+ "description": "Ephemeral cloud access token used for this invocation only. Held in memory; never written to the keychain or `~/.hereya/secrets/`. Takes precedence over the HEREYA_TOKEN environment variable.",
3221
+ "name": "token",
3222
+ "required": false,
3170
3223
  "hasDynamicHelp": false,
3171
3224
  "multiple": false,
3172
3225
  "type": "option"
3173
3226
  },
3174
3227
  "workspace": {
3175
3228
  "char": "w",
3176
- "description": "name of the workspace to unset an env var for",
3229
+ "description": "name of the workspace",
3177
3230
  "name": "workspace",
3178
3231
  "required": true,
3179
3232
  "hasDynamicHelp": false,
@@ -3183,7 +3236,7 @@
3183
3236
  },
3184
3237
  "hasDynamicHelp": false,
3185
3238
  "hiddenAliases": [],
3186
- "id": "workspace:env:unset",
3239
+ "id": "workspace:executor:install",
3187
3240
  "pluginAlias": "hereya-cli",
3188
3241
  "pluginName": "hereya-cli",
3189
3242
  "pluginType": "core",
@@ -3194,40 +3247,31 @@
3194
3247
  "dist",
3195
3248
  "commands",
3196
3249
  "workspace",
3197
- "env",
3198
- "unset",
3250
+ "executor",
3251
+ "install",
3199
3252
  "index.js"
3200
3253
  ]
3201
3254
  },
3202
- "workspace:executor:install": {
3255
+ "workspace:env:unset": {
3203
3256
  "aliases": [],
3204
3257
  "args": {},
3205
- "description": "Install a remote executor into a workspace",
3258
+ "description": "unset an env var for a workspace",
3259
+ "examples": [
3260
+ "<%= config.bin %> <%= command.id %> -w my-workspace -n myVar"
3261
+ ],
3206
3262
  "flags": {
3207
- "debug": {
3208
- "description": "enable debug mode",
3209
- "name": "debug",
3210
- "allowNo": false,
3211
- "type": "boolean"
3212
- },
3213
- "force": {
3214
- "char": "f",
3215
- "description": "force reinstall even if executor is already installed",
3216
- "name": "force",
3217
- "allowNo": false,
3218
- "type": "boolean"
3219
- },
3220
- "token": {
3221
- "description": "Ephemeral cloud access token used for this invocation only. Held in memory; never written to the keychain or `~/.hereya/secrets/`. Takes precedence over the HEREYA_TOKEN environment variable.",
3222
- "name": "token",
3223
- "required": false,
3263
+ "name": {
3264
+ "char": "n",
3265
+ "description": "name of the env var to unset",
3266
+ "name": "name",
3267
+ "required": true,
3224
3268
  "hasDynamicHelp": false,
3225
3269
  "multiple": false,
3226
3270
  "type": "option"
3227
3271
  },
3228
3272
  "workspace": {
3229
3273
  "char": "w",
3230
- "description": "name of the workspace",
3274
+ "description": "name of the workspace to unset an env var for",
3231
3275
  "name": "workspace",
3232
3276
  "required": true,
3233
3277
  "hasDynamicHelp": false,
@@ -3237,7 +3281,7 @@
3237
3281
  },
3238
3282
  "hasDynamicHelp": false,
3239
3283
  "hiddenAliases": [],
3240
- "id": "workspace:executor:install",
3284
+ "id": "workspace:env:unset",
3241
3285
  "pluginAlias": "hereya-cli",
3242
3286
  "pluginName": "hereya-cli",
3243
3287
  "pluginType": "core",
@@ -3248,8 +3292,8 @@
3248
3292
  "dist",
3249
3293
  "commands",
3250
3294
  "workspace",
3251
- "executor",
3252
- "install",
3295
+ "env",
3296
+ "unset",
3253
3297
  "index.js"
3254
3298
  ]
3255
3299
  },
@@ -3342,5 +3386,5 @@
3342
3386
  ]
3343
3387
  }
3344
3388
  },
3345
- "version": "0.86.3"
3389
+ "version": "0.87.0"
3346
3390
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.86.3",
4
+ "version": "0.87.0",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.js"