hereya-cli 0.86.2 → 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 +97 -64
- package/dist/commands/git/index.d.ts +12 -0
- package/dist/commands/git/index.js +116 -0
- package/dist/lib/ephemeral-token.d.ts +9 -2
- package/dist/lib/ephemeral-token.js +56 -3
- package/oclif.manifest.json +448 -404
- package/package.json +1 -1
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
+
}
|