hereya-cli 0.64.1 → 0.64.3
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 +133 -43
- package/dist/backend/cloud/cloud-backend.d.ts +70 -0
- package/dist/backend/cloud/cloud-backend.js +96 -0
- package/dist/backend/common.d.ts +4 -0
- package/dist/backend/common.js +1 -0
- package/dist/backend/index.d.ts +5 -1
- package/dist/backend/index.js +62 -22
- package/dist/commands/add/index.js +109 -2
- package/dist/commands/deploy/index.js +8 -2
- package/dist/commands/docker/run/index.js +1 -0
- package/dist/commands/down/index.js +111 -3
- package/dist/commands/env/index.js +1 -0
- package/dist/commands/executor/start/index.d.ts +11 -0
- package/dist/commands/executor/start/index.js +176 -0
- package/dist/commands/remove/index.js +138 -4
- package/dist/commands/run/index.js +1 -0
- package/dist/commands/undeploy/index.js +4 -1
- package/dist/commands/up/index.js +102 -5
- package/dist/commands/workspace/executor/install/index.d.ts +9 -0
- package/dist/commands/workspace/executor/install/index.js +110 -0
- package/dist/commands/workspace/executor/token/index.d.ts +8 -0
- package/dist/commands/workspace/executor/token/index.js +40 -0
- package/dist/commands/workspace/executor/uninstall/index.d.ts +9 -0
- package/dist/commands/workspace/executor/uninstall/index.js +102 -0
- package/dist/executor/context.d.ts +2 -0
- package/dist/executor/context.js +39 -0
- package/dist/executor/delegating.d.ts +15 -0
- package/dist/executor/delegating.js +50 -0
- package/dist/executor/index.d.ts +12 -3
- package/dist/executor/index.js +13 -2
- package/dist/executor/remote.d.ts +16 -0
- package/dist/executor/remote.js +168 -0
- package/dist/infrastructure/index.js +55 -22
- package/dist/lib/config/common.d.ts +5 -0
- package/dist/lib/config/simple.js +43 -24
- package/dist/lib/env/index.d.ts +9 -0
- package/dist/lib/env/index.js +101 -15
- package/dist/lib/package/index.d.ts +12 -0
- package/dist/lib/package/index.js +4 -0
- package/oclif.manifest.json +183 -25
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g hereya-cli
|
|
|
20
20
|
$ hereya COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ hereya (--version)
|
|
23
|
-
hereya-cli/0.64.
|
|
23
|
+
hereya-cli/0.64.3 linux-x64 node-v24.14.0
|
|
24
24
|
$ hereya --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ hereya COMMAND
|
|
@@ -42,6 +42,7 @@ USAGE
|
|
|
42
42
|
* [`hereya down`](#hereya-down)
|
|
43
43
|
* [`hereya env [NAME]`](#hereya-env-name)
|
|
44
44
|
* [`hereya env set [NAME]`](#hereya-env-set-name)
|
|
45
|
+
* [`hereya executor start`](#hereya-executor-start)
|
|
45
46
|
* [`hereya flow add PACKAGE`](#hereya-flow-add-package)
|
|
46
47
|
* [`hereya flow docker run IMAGE`](#hereya-flow-docker-run-image)
|
|
47
48
|
* [`hereya flow down`](#hereya-flow-down)
|
|
@@ -68,6 +69,9 @@ USAGE
|
|
|
68
69
|
* [`hereya workspace env [NAME]`](#hereya-workspace-env-name)
|
|
69
70
|
* [`hereya workspace env set`](#hereya-workspace-env-set)
|
|
70
71
|
* [`hereya workspace env unset`](#hereya-workspace-env-unset)
|
|
72
|
+
* [`hereya workspace executor install`](#hereya-workspace-executor-install)
|
|
73
|
+
* [`hereya workspace executor token`](#hereya-workspace-executor-token)
|
|
74
|
+
* [`hereya workspace executor uninstall`](#hereya-workspace-executor-uninstall)
|
|
71
75
|
* [`hereya workspace install PACKAGE`](#hereya-workspace-install-package)
|
|
72
76
|
* [`hereya workspace list`](#hereya-workspace-list)
|
|
73
77
|
* [`hereya workspace set-profile PROFILE`](#hereya-workspace-set-profile-profile)
|
|
@@ -105,7 +109,7 @@ EXAMPLES
|
|
|
105
109
|
$ hereya add cloudy/docker_postgres
|
|
106
110
|
```
|
|
107
111
|
|
|
108
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
112
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/add/index.ts)_
|
|
109
113
|
|
|
110
114
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
111
115
|
|
|
@@ -130,7 +134,7 @@ EXAMPLES
|
|
|
130
134
|
$ hereya bootstrap local
|
|
131
135
|
```
|
|
132
136
|
|
|
133
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
137
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/bootstrap/index.ts)_
|
|
134
138
|
|
|
135
139
|
## `hereya config export-backend [FILE]`
|
|
136
140
|
|
|
@@ -152,7 +156,7 @@ EXAMPLES
|
|
|
152
156
|
$ hereya config export-backend ./path/to/export.json
|
|
153
157
|
```
|
|
154
158
|
|
|
155
|
-
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
159
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/config/export-backend/index.ts)_
|
|
156
160
|
|
|
157
161
|
## `hereya config get-backend`
|
|
158
162
|
|
|
@@ -169,7 +173,7 @@ EXAMPLES
|
|
|
169
173
|
$ hereya config get-backend
|
|
170
174
|
```
|
|
171
175
|
|
|
172
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
176
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/config/get-backend/index.ts)_
|
|
173
177
|
|
|
174
178
|
## `hereya config import-backend FILE`
|
|
175
179
|
|
|
@@ -189,7 +193,7 @@ EXAMPLES
|
|
|
189
193
|
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
190
194
|
```
|
|
191
195
|
|
|
192
|
-
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
196
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/config/import-backend/index.ts)_
|
|
193
197
|
|
|
194
198
|
## `hereya config use-backend TYPE`
|
|
195
199
|
|
|
@@ -211,7 +215,7 @@ EXAMPLES
|
|
|
211
215
|
$ hereya config use-backend local
|
|
212
216
|
```
|
|
213
217
|
|
|
214
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
218
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/config/use-backend/index.ts)_
|
|
215
219
|
|
|
216
220
|
## `hereya delete-state`
|
|
217
221
|
|
|
@@ -237,7 +241,7 @@ EXAMPLES
|
|
|
237
241
|
$ hereya delete-state --workspace staging
|
|
238
242
|
```
|
|
239
243
|
|
|
240
|
-
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
244
|
+
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/delete-state/index.ts)_
|
|
241
245
|
|
|
242
246
|
## `hereya deploy`
|
|
243
247
|
|
|
@@ -262,7 +266,7 @@ EXAMPLES
|
|
|
262
266
|
$ hereya deploy
|
|
263
267
|
```
|
|
264
268
|
|
|
265
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
269
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/deploy/index.ts)_
|
|
266
270
|
|
|
267
271
|
## `hereya doc PACKAGE`
|
|
268
272
|
|
|
@@ -295,7 +299,7 @@ EXAMPLES
|
|
|
295
299
|
$ hereya doc my-package --no-doc
|
|
296
300
|
```
|
|
297
301
|
|
|
298
|
-
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
302
|
+
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/doc/index.ts)_
|
|
299
303
|
|
|
300
304
|
## `hereya docker run IMAGE`
|
|
301
305
|
|
|
@@ -326,7 +330,7 @@ EXAMPLES
|
|
|
326
330
|
$ hereya docker run myapp:latest -- --rm -v ./data:/data
|
|
327
331
|
```
|
|
328
332
|
|
|
329
|
-
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
333
|
+
_See code: [src/commands/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/docker/run/index.ts)_
|
|
330
334
|
|
|
331
335
|
## `hereya down`
|
|
332
336
|
|
|
@@ -353,7 +357,7 @@ EXAMPLES
|
|
|
353
357
|
$ hereya down
|
|
354
358
|
```
|
|
355
359
|
|
|
356
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
360
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/down/index.ts)_
|
|
357
361
|
|
|
358
362
|
## `hereya env [NAME]`
|
|
359
363
|
|
|
@@ -384,7 +388,7 @@ EXAMPLES
|
|
|
384
388
|
$ hereya env -w dev -l
|
|
385
389
|
```
|
|
386
390
|
|
|
387
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
391
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/env/index.ts)_
|
|
388
392
|
|
|
389
393
|
## `hereya env set [NAME]`
|
|
390
394
|
|
|
@@ -411,7 +415,40 @@ EXAMPLES
|
|
|
411
415
|
$ hereya env set FOO -v bar -w dev
|
|
412
416
|
```
|
|
413
417
|
|
|
414
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
418
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/env/set/index.ts)_
|
|
419
|
+
|
|
420
|
+
## `hereya executor start`
|
|
421
|
+
|
|
422
|
+
Start the remote executor process (polls for jobs from hereya cloud).
|
|
423
|
+
|
|
424
|
+
```
|
|
425
|
+
USAGE
|
|
426
|
+
$ hereya executor start -w <value> [-c <value>]
|
|
427
|
+
|
|
428
|
+
FLAGS
|
|
429
|
+
-c, --concurrency=<value> [default: 10] maximum number of parallel jobs
|
|
430
|
+
-w, --workspace=<value> (required) name of the workspace to poll jobs for
|
|
431
|
+
|
|
432
|
+
DESCRIPTION
|
|
433
|
+
Start the remote executor process (polls for jobs from hereya cloud).
|
|
434
|
+
|
|
435
|
+
Jobs are executed in parallel up to the concurrency limit (default: 10). Use --concurrency to adjust.
|
|
436
|
+
|
|
437
|
+
Set the HEREYA_TOKEN environment variable to authenticate without running `hereya login`.
|
|
438
|
+
Set the HEREYA_CLOUD_URL environment variable to target a specific hereya cloud instance (defaults to
|
|
439
|
+
https://cloud.hereya.dev).
|
|
440
|
+
|
|
441
|
+
EXAMPLES
|
|
442
|
+
$ hereya executor start -w my-workspace
|
|
443
|
+
|
|
444
|
+
$ hereya executor start -w my-workspace --concurrency 5
|
|
445
|
+
|
|
446
|
+
HEREYA_TOKEN=<token> hereya executor start -w my-workspace
|
|
447
|
+
|
|
448
|
+
HEREYA_TOKEN=<token> HEREYA_CLOUD_URL=https://my-cloud.example.com hereya executor start -w my-workspace
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
_See code: [src/commands/executor/start/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/executor/start/index.ts)_
|
|
415
452
|
|
|
416
453
|
## `hereya flow add PACKAGE`
|
|
417
454
|
|
|
@@ -449,7 +486,7 @@ EXAMPLES
|
|
|
449
486
|
$ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
|
|
450
487
|
```
|
|
451
488
|
|
|
452
|
-
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
489
|
+
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/flow/add/index.ts)_
|
|
453
490
|
|
|
454
491
|
## `hereya flow docker run IMAGE`
|
|
455
492
|
|
|
@@ -479,7 +516,7 @@ EXAMPLES
|
|
|
479
516
|
$ hereya flow docker run --pin myapp:latest -- --rm
|
|
480
517
|
```
|
|
481
518
|
|
|
482
|
-
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
519
|
+
_See code: [src/commands/flow/docker/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/flow/docker/run/index.ts)_
|
|
483
520
|
|
|
484
521
|
## `hereya flow down`
|
|
485
522
|
|
|
@@ -513,7 +550,7 @@ EXAMPLES
|
|
|
513
550
|
$ hereya flow down --pin
|
|
514
551
|
```
|
|
515
552
|
|
|
516
|
-
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
553
|
+
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/flow/down/index.ts)_
|
|
517
554
|
|
|
518
555
|
## `hereya flow env [NAME]`
|
|
519
556
|
|
|
@@ -547,7 +584,7 @@ EXAMPLES
|
|
|
547
584
|
$ hereya flow env -l
|
|
548
585
|
```
|
|
549
586
|
|
|
550
|
-
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
587
|
+
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/flow/env/index.ts)_
|
|
551
588
|
|
|
552
589
|
## `hereya flow provid PACKAGE`
|
|
553
590
|
|
|
@@ -576,7 +613,7 @@ EXAMPLES
|
|
|
576
613
|
$ hereya flow provid hereya/postgres --pin
|
|
577
614
|
```
|
|
578
615
|
|
|
579
|
-
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
616
|
+
_See code: [src/commands/flow/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/flow/provid/index.ts)_
|
|
580
617
|
|
|
581
618
|
## `hereya flow remove PACKAGE`
|
|
582
619
|
|
|
@@ -606,7 +643,7 @@ EXAMPLES
|
|
|
606
643
|
$ hereya flow remove cloudy/docker_postgres --profile staging
|
|
607
644
|
```
|
|
608
645
|
|
|
609
|
-
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
646
|
+
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/flow/remove/index.ts)_
|
|
610
647
|
|
|
611
648
|
## `hereya flow run CMD`
|
|
612
649
|
|
|
@@ -635,7 +672,7 @@ EXAMPLES
|
|
|
635
672
|
$ hereya flow run --pin -- npm test
|
|
636
673
|
```
|
|
637
674
|
|
|
638
|
-
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
675
|
+
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/flow/run/index.ts)_
|
|
639
676
|
|
|
640
677
|
## `hereya flow up`
|
|
641
678
|
|
|
@@ -669,7 +706,7 @@ EXAMPLES
|
|
|
669
706
|
$ hereya flow up --pin
|
|
670
707
|
```
|
|
671
708
|
|
|
672
|
-
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
709
|
+
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/flow/up/index.ts)_
|
|
673
710
|
|
|
674
711
|
## `hereya help [COMMAND]`
|
|
675
712
|
|
|
@@ -726,7 +763,7 @@ EXAMPLES
|
|
|
726
763
|
$ hereya import org/my-package -f state.tfstate -w my-workspace
|
|
727
764
|
```
|
|
728
765
|
|
|
729
|
-
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
766
|
+
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/import/index.ts)_
|
|
730
767
|
|
|
731
768
|
## `hereya init PROJECT`
|
|
732
769
|
|
|
@@ -752,7 +789,7 @@ EXAMPLES
|
|
|
752
789
|
$ hereya init myProject -w=defaultWorkspace --chdir=./myProject
|
|
753
790
|
```
|
|
754
791
|
|
|
755
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
792
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/init/index.ts)_
|
|
756
793
|
|
|
757
794
|
## `hereya login [URL]`
|
|
758
795
|
|
|
@@ -781,7 +818,7 @@ EXAMPLES
|
|
|
781
818
|
$ hereya login --token=your-token https://cloud.hereya.dev
|
|
782
819
|
```
|
|
783
820
|
|
|
784
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
821
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/login/index.ts)_
|
|
785
822
|
|
|
786
823
|
## `hereya logout`
|
|
787
824
|
|
|
@@ -798,7 +835,7 @@ EXAMPLES
|
|
|
798
835
|
$ hereya logout
|
|
799
836
|
```
|
|
800
837
|
|
|
801
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
838
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/logout/index.ts)_
|
|
802
839
|
|
|
803
840
|
## `hereya provid PACKAGE`
|
|
804
841
|
|
|
@@ -826,7 +863,7 @@ EXAMPLES
|
|
|
826
863
|
$ hereya provid hereya/postgres --workspace staging
|
|
827
864
|
```
|
|
828
865
|
|
|
829
|
-
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
866
|
+
_See code: [src/commands/provid/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/provid/index.ts)_
|
|
830
867
|
|
|
831
868
|
## `hereya publish`
|
|
832
869
|
|
|
@@ -849,7 +886,7 @@ EXAMPLES
|
|
|
849
886
|
$ hereya publish --chdir=/path/to/package
|
|
850
887
|
```
|
|
851
888
|
|
|
852
|
-
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
889
|
+
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/publish/index.ts)_
|
|
853
890
|
|
|
854
891
|
## `hereya remove PACKAGE`
|
|
855
892
|
|
|
@@ -877,7 +914,7 @@ EXAMPLES
|
|
|
877
914
|
$ hereya remove cloudy/docker_postgres
|
|
878
915
|
```
|
|
879
916
|
|
|
880
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
917
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/remove/index.ts)_
|
|
881
918
|
|
|
882
919
|
## `hereya run CMD`
|
|
883
920
|
|
|
@@ -903,7 +940,7 @@ EXAMPLES
|
|
|
903
940
|
$ hereya run -w uat -- node index.js
|
|
904
941
|
```
|
|
905
942
|
|
|
906
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
943
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/run/index.ts)_
|
|
907
944
|
|
|
908
945
|
## `hereya search QUERY`
|
|
909
946
|
|
|
@@ -934,7 +971,7 @@ EXAMPLES
|
|
|
934
971
|
$ hereya search database --json
|
|
935
972
|
```
|
|
936
973
|
|
|
937
|
-
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
974
|
+
_See code: [src/commands/search/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/search/index.ts)_
|
|
938
975
|
|
|
939
976
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
940
977
|
|
|
@@ -959,7 +996,7 @@ EXAMPLES
|
|
|
959
996
|
$ hereya unbootstrap local
|
|
960
997
|
```
|
|
961
998
|
|
|
962
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
999
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/unbootstrap/index.ts)_
|
|
963
1000
|
|
|
964
1001
|
## `hereya undeploy`
|
|
965
1002
|
|
|
@@ -984,7 +1021,7 @@ EXAMPLES
|
|
|
984
1021
|
$ hereya undeploy
|
|
985
1022
|
```
|
|
986
1023
|
|
|
987
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1024
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/undeploy/index.ts)_
|
|
988
1025
|
|
|
989
1026
|
## `hereya up`
|
|
990
1027
|
|
|
@@ -1011,7 +1048,7 @@ EXAMPLES
|
|
|
1011
1048
|
$ hereya up
|
|
1012
1049
|
```
|
|
1013
1050
|
|
|
1014
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1051
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/up/index.ts)_
|
|
1015
1052
|
|
|
1016
1053
|
## `hereya workspace create NAME`
|
|
1017
1054
|
|
|
@@ -1036,7 +1073,7 @@ EXAMPLES
|
|
|
1036
1073
|
$ hereya workspace create dev
|
|
1037
1074
|
```
|
|
1038
1075
|
|
|
1039
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1076
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/create/index.ts)_
|
|
1040
1077
|
|
|
1041
1078
|
## `hereya workspace delete NAME`
|
|
1042
1079
|
|
|
@@ -1056,7 +1093,7 @@ EXAMPLES
|
|
|
1056
1093
|
$ hereya workspace delete dev
|
|
1057
1094
|
```
|
|
1058
1095
|
|
|
1059
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1096
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/delete/index.ts)_
|
|
1060
1097
|
|
|
1061
1098
|
## `hereya workspace env [NAME]`
|
|
1062
1099
|
|
|
@@ -1082,7 +1119,7 @@ EXAMPLES
|
|
|
1082
1119
|
$ hereya workspace env myEnv -w dev
|
|
1083
1120
|
```
|
|
1084
1121
|
|
|
1085
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1122
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/env/index.ts)_
|
|
1086
1123
|
|
|
1087
1124
|
## `hereya workspace env set`
|
|
1088
1125
|
|
|
@@ -1106,7 +1143,7 @@ EXAMPLES
|
|
|
1106
1143
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
1107
1144
|
```
|
|
1108
1145
|
|
|
1109
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1146
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/env/set/index.ts)_
|
|
1110
1147
|
|
|
1111
1148
|
## `hereya workspace env unset`
|
|
1112
1149
|
|
|
@@ -1127,7 +1164,60 @@ EXAMPLES
|
|
|
1127
1164
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
1128
1165
|
```
|
|
1129
1166
|
|
|
1130
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1167
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/env/unset/index.ts)_
|
|
1168
|
+
|
|
1169
|
+
## `hereya workspace executor install`
|
|
1170
|
+
|
|
1171
|
+
Install a remote executor into a workspace
|
|
1172
|
+
|
|
1173
|
+
```
|
|
1174
|
+
USAGE
|
|
1175
|
+
$ hereya workspace executor install -w <value> [--debug]
|
|
1176
|
+
|
|
1177
|
+
FLAGS
|
|
1178
|
+
-w, --workspace=<value> (required) name of the workspace
|
|
1179
|
+
--debug enable debug mode
|
|
1180
|
+
|
|
1181
|
+
DESCRIPTION
|
|
1182
|
+
Install a remote executor into a workspace
|
|
1183
|
+
```
|
|
1184
|
+
|
|
1185
|
+
_See code: [src/commands/workspace/executor/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/executor/install/index.ts)_
|
|
1186
|
+
|
|
1187
|
+
## `hereya workspace executor token`
|
|
1188
|
+
|
|
1189
|
+
Generate a workspace-scoped executor token for testing the remote executor locally
|
|
1190
|
+
|
|
1191
|
+
```
|
|
1192
|
+
USAGE
|
|
1193
|
+
$ hereya workspace executor token -w <value>
|
|
1194
|
+
|
|
1195
|
+
FLAGS
|
|
1196
|
+
-w, --workspace=<value> (required) name of the workspace
|
|
1197
|
+
|
|
1198
|
+
DESCRIPTION
|
|
1199
|
+
Generate a workspace-scoped executor token for testing the remote executor locally
|
|
1200
|
+
```
|
|
1201
|
+
|
|
1202
|
+
_See code: [src/commands/workspace/executor/token/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/executor/token/index.ts)_
|
|
1203
|
+
|
|
1204
|
+
## `hereya workspace executor uninstall`
|
|
1205
|
+
|
|
1206
|
+
Uninstall the remote executor from a workspace
|
|
1207
|
+
|
|
1208
|
+
```
|
|
1209
|
+
USAGE
|
|
1210
|
+
$ hereya workspace executor uninstall -w <value> [--debug]
|
|
1211
|
+
|
|
1212
|
+
FLAGS
|
|
1213
|
+
-w, --workspace=<value> (required) name of the workspace
|
|
1214
|
+
--debug enable debug mode
|
|
1215
|
+
|
|
1216
|
+
DESCRIPTION
|
|
1217
|
+
Uninstall the remote executor from a workspace
|
|
1218
|
+
```
|
|
1219
|
+
|
|
1220
|
+
_See code: [src/commands/workspace/executor/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/executor/uninstall/index.ts)_
|
|
1131
1221
|
|
|
1132
1222
|
## `hereya workspace install PACKAGE`
|
|
1133
1223
|
|
|
@@ -1154,7 +1244,7 @@ EXAMPLES
|
|
|
1154
1244
|
$ hereya workspace install hereya/aws-cognito
|
|
1155
1245
|
```
|
|
1156
1246
|
|
|
1157
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1247
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/install/index.ts)_
|
|
1158
1248
|
|
|
1159
1249
|
## `hereya workspace list`
|
|
1160
1250
|
|
|
@@ -1178,7 +1268,7 @@ EXAMPLES
|
|
|
1178
1268
|
$ hereya workspace list --org personal
|
|
1179
1269
|
```
|
|
1180
1270
|
|
|
1181
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1271
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/list/index.ts)_
|
|
1182
1272
|
|
|
1183
1273
|
## `hereya workspace set-profile PROFILE`
|
|
1184
1274
|
|
|
@@ -1202,7 +1292,7 @@ EXAMPLES
|
|
|
1202
1292
|
$ hereya workspace set-profile prod-profile -w production
|
|
1203
1293
|
```
|
|
1204
1294
|
|
|
1205
|
-
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1295
|
+
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/set-profile/index.ts)_
|
|
1206
1296
|
|
|
1207
1297
|
## `hereya workspace uninstall PACKAGE`
|
|
1208
1298
|
|
|
@@ -1229,5 +1319,5 @@ EXAMPLES
|
|
|
1229
1319
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
1230
1320
|
```
|
|
1231
1321
|
|
|
1232
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.
|
|
1322
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.64.3/src/commands/workspace/uninstall/index.ts)_
|
|
1233
1323
|
<!-- commandsstop -->
|
|
@@ -14,6 +14,33 @@ export declare class CloudBackend implements Backend {
|
|
|
14
14
|
deleteState(input: DeleteStateInput): Promise<DeleteStateOutput>;
|
|
15
15
|
deleteWorkspace(input: DeleteWorkspaceInput): Promise<DeleteWorkspaceOutput>;
|
|
16
16
|
exportBackend(): Promise<ExportBackendOutput>;
|
|
17
|
+
generateExecutorToken(input: {
|
|
18
|
+
workspace: string;
|
|
19
|
+
}): Promise<{
|
|
20
|
+
reason: string;
|
|
21
|
+
success: false;
|
|
22
|
+
} | {
|
|
23
|
+
success: true;
|
|
24
|
+
token: string;
|
|
25
|
+
}>;
|
|
26
|
+
getExecutorJobStatus(input: {
|
|
27
|
+
jobId: string;
|
|
28
|
+
lastStatus?: string;
|
|
29
|
+
poll?: boolean;
|
|
30
|
+
workspace: string;
|
|
31
|
+
}): Promise<{
|
|
32
|
+
job: {
|
|
33
|
+
id: string;
|
|
34
|
+
logs: string;
|
|
35
|
+
result: any;
|
|
36
|
+
status: string;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
};
|
|
39
|
+
success: true;
|
|
40
|
+
} | {
|
|
41
|
+
reason: string;
|
|
42
|
+
success: false;
|
|
43
|
+
}>;
|
|
17
44
|
getPackageByVersion(name: string, version: string): Promise<GetPackageOutput>;
|
|
18
45
|
getPackageLatest(name: string): Promise<GetPackageOutput>;
|
|
19
46
|
getProvisioningId(input: GetProvisioningIdInput): Promise<GetProvisioningIdOutput>;
|
|
@@ -24,12 +51,55 @@ export declare class CloudBackend implements Backend {
|
|
|
24
51
|
init(input: InitProjectInput): Promise<InitProjectOutput>;
|
|
25
52
|
listPackageVersions(name: string): Promise<ListPackageVersionsOutput>;
|
|
26
53
|
listWorkspaces(input?: ListWorkspacesInput): Promise<string[]>;
|
|
54
|
+
pollExecutorJobs(input: {
|
|
55
|
+
workspace: string;
|
|
56
|
+
}): Promise<{
|
|
57
|
+
job: null | {
|
|
58
|
+
id: string;
|
|
59
|
+
payload: any;
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
success: true;
|
|
63
|
+
} | {
|
|
64
|
+
reason: string;
|
|
65
|
+
success: false;
|
|
66
|
+
}>;
|
|
27
67
|
publishPackage(input: PublishPackageInput): Promise<PublishPackageOutput>;
|
|
28
68
|
removePackageFromWorkspace(input: RemovePackageFromWorkspaceInput): Promise<RemovePackageFromWorkspaceOutput>;
|
|
69
|
+
revokeExecutorToken(input: {
|
|
70
|
+
workspace: string;
|
|
71
|
+
}): Promise<{
|
|
72
|
+
reason: string;
|
|
73
|
+
success: false;
|
|
74
|
+
} | {
|
|
75
|
+
success: true;
|
|
76
|
+
}>;
|
|
29
77
|
saveState(config: Config, workspace?: string): Promise<void>;
|
|
30
78
|
searchPackages(input: SearchPackagesInput): Promise<SearchPackagesOutput>;
|
|
31
79
|
setEnvVar(input: SetEnvVarInput): Promise<SetEnvVarOutput>;
|
|
80
|
+
submitExecutorJob(input: {
|
|
81
|
+
payload: object;
|
|
82
|
+
type: 'destroy' | 'provision' | 'resolve-env';
|
|
83
|
+
workspace: string;
|
|
84
|
+
}): Promise<{
|
|
85
|
+
jobId: string;
|
|
86
|
+
success: true;
|
|
87
|
+
} | {
|
|
88
|
+
reason: string;
|
|
89
|
+
success: false;
|
|
90
|
+
}>;
|
|
32
91
|
unsetEnvVar(input: UnsetEnvVarInput): Promise<UnsetEnvVarOutput>;
|
|
92
|
+
updateExecutorJob(input: {
|
|
93
|
+
jobId: string;
|
|
94
|
+
logs?: string;
|
|
95
|
+
result?: object;
|
|
96
|
+
status?: 'completed' | 'failed';
|
|
97
|
+
}): Promise<{
|
|
98
|
+
reason: string;
|
|
99
|
+
success: false;
|
|
100
|
+
} | {
|
|
101
|
+
success: true;
|
|
102
|
+
}>;
|
|
33
103
|
updateWorkspace(input: UpdateWorkspaceInput): Promise<UpdateWorkspaceOutput>;
|
|
34
104
|
private convertWorkspace;
|
|
35
105
|
}
|