hereya-cli 0.34.0 → 0.36.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 +108 -23
- package/dist/backend/cloud/cloud-backend.d.ts +29 -0
- package/dist/backend/cloud/cloud-backend.js +379 -0
- package/dist/backend/cloud/login.d.ts +16 -0
- package/dist/backend/cloud/login.js +145 -0
- package/dist/backend/cloud/logout.d.ts +9 -0
- package/dist/backend/cloud/logout.js +12 -0
- package/dist/backend/cloud/utils.d.ts +3 -0
- package/dist/backend/cloud/utils.js +6 -0
- package/dist/backend/common.d.ts +21 -0
- package/dist/backend/config.d.ts +30 -3
- package/dist/backend/config.js +36 -2
- package/dist/backend/file.d.ts +3 -1
- package/dist/backend/file.js +14 -2
- package/dist/backend/index.d.ts +3 -1
- package/dist/backend/index.js +26 -3
- package/dist/backend/secrets.d.ts +5 -0
- package/dist/backend/secrets.js +66 -0
- package/dist/commands/config/export-backend/index.d.ts +9 -0
- package/dist/commands/config/export-backend/index.js +28 -0
- package/dist/commands/config/import-backend/index.d.ts +9 -0
- package/dist/commands/config/import-backend/index.js +25 -0
- package/dist/commands/init/index.js +1 -1
- package/dist/commands/login/index.d.ts +9 -0
- package/dist/commands/login/index.js +27 -0
- package/dist/commands/logout/index.d.ts +6 -0
- package/dist/commands/logout/index.js +23 -0
- package/dist/executor/local.js +3 -1
- package/dist/infrastructure/aws.js +2 -17
- package/oclif.manifest.json +119 -1
- package/package.json +5 -2
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.
|
|
23
|
+
hereya-cli/0.36.0 linux-x64 node-v22.15.0
|
|
24
24
|
$ hereya --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ hereya COMMAND
|
|
@@ -31,7 +31,9 @@ USAGE
|
|
|
31
31
|
<!-- commands -->
|
|
32
32
|
* [`hereya add PACKAGE`](#hereya-add-package)
|
|
33
33
|
* [`hereya bootstrap INFRASTRUCTURETYPE`](#hereya-bootstrap-infrastructuretype)
|
|
34
|
+
* [`hereya config export-backend [FILE]`](#hereya-config-export-backend-file)
|
|
34
35
|
* [`hereya config get-backend`](#hereya-config-get-backend)
|
|
36
|
+
* [`hereya config import-backend FILE`](#hereya-config-import-backend-file)
|
|
35
37
|
* [`hereya config use-backend TYPE`](#hereya-config-use-backend-type)
|
|
36
38
|
* [`hereya deploy`](#hereya-deploy)
|
|
37
39
|
* [`hereya down`](#hereya-down)
|
|
@@ -39,6 +41,8 @@ USAGE
|
|
|
39
41
|
* [`hereya env set [NAME]`](#hereya-env-set-name)
|
|
40
42
|
* [`hereya help [COMMAND]`](#hereya-help-command)
|
|
41
43
|
* [`hereya init PROJECT`](#hereya-init-project)
|
|
44
|
+
* [`hereya login URL`](#hereya-login-url)
|
|
45
|
+
* [`hereya logout`](#hereya-logout)
|
|
42
46
|
* [`hereya remove PACKAGE`](#hereya-remove-package)
|
|
43
47
|
* [`hereya run CMD`](#hereya-run-cmd)
|
|
44
48
|
* [`hereya unbootstrap INFRASTRUCTURETYPE`](#hereya-unbootstrap-infrastructuretype)
|
|
@@ -84,7 +88,7 @@ EXAMPLES
|
|
|
84
88
|
$ hereya add cloudy/docker_postgres
|
|
85
89
|
```
|
|
86
90
|
|
|
87
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
91
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/add/index.ts)_
|
|
88
92
|
|
|
89
93
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
90
94
|
|
|
@@ -109,7 +113,29 @@ EXAMPLES
|
|
|
109
113
|
$ hereya bootstrap local
|
|
110
114
|
```
|
|
111
115
|
|
|
112
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
116
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/bootstrap/index.ts)_
|
|
117
|
+
|
|
118
|
+
## `hereya config export-backend [FILE]`
|
|
119
|
+
|
|
120
|
+
Export the cloud backend configuration to a file
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
USAGE
|
|
124
|
+
$ hereya config export-backend [FILE]
|
|
125
|
+
|
|
126
|
+
ARGUMENTS
|
|
127
|
+
FILE Path to save the export file. Defaults to cloud-backend.json in current directory
|
|
128
|
+
|
|
129
|
+
DESCRIPTION
|
|
130
|
+
Export the cloud backend configuration to a file
|
|
131
|
+
|
|
132
|
+
EXAMPLES
|
|
133
|
+
$ hereya config export-backend
|
|
134
|
+
|
|
135
|
+
$ hereya config export-backend ./path/to/export.json
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/config/export-backend/index.ts)_
|
|
113
139
|
|
|
114
140
|
## `hereya config get-backend`
|
|
115
141
|
|
|
@@ -126,7 +152,27 @@ EXAMPLES
|
|
|
126
152
|
$ hereya config get-backend
|
|
127
153
|
```
|
|
128
154
|
|
|
129
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
155
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/config/get-backend/index.ts)_
|
|
156
|
+
|
|
157
|
+
## `hereya config import-backend FILE`
|
|
158
|
+
|
|
159
|
+
Import a backend configuration from a file
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
USAGE
|
|
163
|
+
$ hereya config import-backend FILE
|
|
164
|
+
|
|
165
|
+
ARGUMENTS
|
|
166
|
+
FILE Path to the file containing the backend configuration to import
|
|
167
|
+
|
|
168
|
+
DESCRIPTION
|
|
169
|
+
Import a backend configuration from a file
|
|
170
|
+
|
|
171
|
+
EXAMPLES
|
|
172
|
+
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/config/import-backend/index.ts)_
|
|
130
176
|
|
|
131
177
|
## `hereya config use-backend TYPE`
|
|
132
178
|
|
|
@@ -148,7 +194,7 @@ EXAMPLES
|
|
|
148
194
|
$ hereya config use-backend local
|
|
149
195
|
```
|
|
150
196
|
|
|
151
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
197
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/config/use-backend/index.ts)_
|
|
152
198
|
|
|
153
199
|
## `hereya deploy`
|
|
154
200
|
|
|
@@ -173,7 +219,7 @@ EXAMPLES
|
|
|
173
219
|
$ hereya deploy
|
|
174
220
|
```
|
|
175
221
|
|
|
176
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
222
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/deploy/index.ts)_
|
|
177
223
|
|
|
178
224
|
## `hereya down`
|
|
179
225
|
|
|
@@ -200,7 +246,7 @@ EXAMPLES
|
|
|
200
246
|
$ hereya down
|
|
201
247
|
```
|
|
202
248
|
|
|
203
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
249
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/down/index.ts)_
|
|
204
250
|
|
|
205
251
|
## `hereya env [NAME]`
|
|
206
252
|
|
|
@@ -231,7 +277,7 @@ EXAMPLES
|
|
|
231
277
|
$ hereya env -w dev -l
|
|
232
278
|
```
|
|
233
279
|
|
|
234
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
280
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/env/index.ts)_
|
|
235
281
|
|
|
236
282
|
## `hereya env set [NAME]`
|
|
237
283
|
|
|
@@ -258,7 +304,7 @@ EXAMPLES
|
|
|
258
304
|
$ hereya env set FOO -v bar -w dev
|
|
259
305
|
```
|
|
260
306
|
|
|
261
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
307
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/env/set/index.ts)_
|
|
262
308
|
|
|
263
309
|
## `hereya help [COMMAND]`
|
|
264
310
|
|
|
@@ -304,7 +350,46 @@ EXAMPLES
|
|
|
304
350
|
$ hereya init myProject -w=defaultWorkspace --chdir=./myProject
|
|
305
351
|
```
|
|
306
352
|
|
|
307
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
353
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/init/index.ts)_
|
|
354
|
+
|
|
355
|
+
## `hereya login URL`
|
|
356
|
+
|
|
357
|
+
Login to the Hereya Cloud backend
|
|
358
|
+
|
|
359
|
+
```
|
|
360
|
+
USAGE
|
|
361
|
+
$ hereya login URL
|
|
362
|
+
|
|
363
|
+
ARGUMENTS
|
|
364
|
+
URL URL of the Hereya Cloud backend
|
|
365
|
+
|
|
366
|
+
DESCRIPTION
|
|
367
|
+
Login to the Hereya Cloud backend
|
|
368
|
+
|
|
369
|
+
EXAMPLES
|
|
370
|
+
$ hereya login https://cloud.hereya.dev
|
|
371
|
+
|
|
372
|
+
$ hereya login http://localhost:5173
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/login/index.ts)_
|
|
376
|
+
|
|
377
|
+
## `hereya logout`
|
|
378
|
+
|
|
379
|
+
Logout from Hereya Cloud
|
|
380
|
+
|
|
381
|
+
```
|
|
382
|
+
USAGE
|
|
383
|
+
$ hereya logout
|
|
384
|
+
|
|
385
|
+
DESCRIPTION
|
|
386
|
+
Logout from Hereya Cloud
|
|
387
|
+
|
|
388
|
+
EXAMPLES
|
|
389
|
+
$ hereya logout
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/logout/index.ts)_
|
|
308
393
|
|
|
309
394
|
## `hereya remove PACKAGE`
|
|
310
395
|
|
|
@@ -331,7 +416,7 @@ EXAMPLES
|
|
|
331
416
|
$ hereya remove cloudy/docker_postgres
|
|
332
417
|
```
|
|
333
418
|
|
|
334
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
419
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/remove/index.ts)_
|
|
335
420
|
|
|
336
421
|
## `hereya run CMD`
|
|
337
422
|
|
|
@@ -357,7 +442,7 @@ EXAMPLES
|
|
|
357
442
|
$ hereya run -w uat -- node index.js
|
|
358
443
|
```
|
|
359
444
|
|
|
360
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
445
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/run/index.ts)_
|
|
361
446
|
|
|
362
447
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
363
448
|
|
|
@@ -382,7 +467,7 @@ EXAMPLES
|
|
|
382
467
|
$ hereya unbootstrap local
|
|
383
468
|
```
|
|
384
469
|
|
|
385
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
470
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/unbootstrap/index.ts)_
|
|
386
471
|
|
|
387
472
|
## `hereya undeploy`
|
|
388
473
|
|
|
@@ -407,7 +492,7 @@ EXAMPLES
|
|
|
407
492
|
$ hereya undeploy
|
|
408
493
|
```
|
|
409
494
|
|
|
410
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
495
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/undeploy/index.ts)_
|
|
411
496
|
|
|
412
497
|
## `hereya up`
|
|
413
498
|
|
|
@@ -434,7 +519,7 @@ EXAMPLES
|
|
|
434
519
|
$ hereya up
|
|
435
520
|
```
|
|
436
521
|
|
|
437
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
522
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/up/index.ts)_
|
|
438
523
|
|
|
439
524
|
## `hereya workspace create NAME`
|
|
440
525
|
|
|
@@ -457,7 +542,7 @@ EXAMPLES
|
|
|
457
542
|
$ hereya workspace create dev
|
|
458
543
|
```
|
|
459
544
|
|
|
460
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
545
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/workspace/create/index.ts)_
|
|
461
546
|
|
|
462
547
|
## `hereya workspace delete NAME`
|
|
463
548
|
|
|
@@ -477,7 +562,7 @@ EXAMPLES
|
|
|
477
562
|
$ hereya workspace delete dev
|
|
478
563
|
```
|
|
479
564
|
|
|
480
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
565
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/workspace/delete/index.ts)_
|
|
481
566
|
|
|
482
567
|
## `hereya workspace env [NAME]`
|
|
483
568
|
|
|
@@ -503,7 +588,7 @@ EXAMPLES
|
|
|
503
588
|
$ hereya workspace env myEnv -w dev
|
|
504
589
|
```
|
|
505
590
|
|
|
506
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
591
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/workspace/env/index.ts)_
|
|
507
592
|
|
|
508
593
|
## `hereya workspace env set`
|
|
509
594
|
|
|
@@ -527,7 +612,7 @@ EXAMPLES
|
|
|
527
612
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
528
613
|
```
|
|
529
614
|
|
|
530
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
615
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/workspace/env/set/index.ts)_
|
|
531
616
|
|
|
532
617
|
## `hereya workspace env unset`
|
|
533
618
|
|
|
@@ -548,7 +633,7 @@ EXAMPLES
|
|
|
548
633
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
549
634
|
```
|
|
550
635
|
|
|
551
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
636
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/workspace/env/unset/index.ts)_
|
|
552
637
|
|
|
553
638
|
## `hereya workspace install PACKAGE`
|
|
554
639
|
|
|
@@ -575,7 +660,7 @@ EXAMPLES
|
|
|
575
660
|
$ hereya workspace install hereya/aws-cognito
|
|
576
661
|
```
|
|
577
662
|
|
|
578
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
663
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/workspace/install/index.ts)_
|
|
579
664
|
|
|
580
665
|
## `hereya workspace list`
|
|
581
666
|
|
|
@@ -592,7 +677,7 @@ EXAMPLES
|
|
|
592
677
|
$ hereya workspace list
|
|
593
678
|
```
|
|
594
679
|
|
|
595
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
680
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/workspace/list/index.ts)_
|
|
596
681
|
|
|
597
682
|
## `hereya workspace uninstall PACKAGE`
|
|
598
683
|
|
|
@@ -619,5 +704,5 @@ EXAMPLES
|
|
|
619
704
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
620
705
|
```
|
|
621
706
|
|
|
622
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.
|
|
707
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.36.0/src/commands/workspace/uninstall/index.ts)_
|
|
623
708
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Config } from '../../lib/config/common.js';
|
|
2
|
+
import { AddPackageToWorkspaceInput, AddPackageToWorkspaceOutput, Backend, CreateWorkspaceInput, CreateWorkspaceOutput, DeleteWorkspaceInput, DeleteWorkspaceOutput, ExportBackendOutput, GetProvisioningIdInput, GetProvisioningIdOutput, GetStateInput, GetStateOutput, GetWorkspaceEnvInput, GetWorkspaceEnvOutput, GetWorkspaceOutput, ImportBackendInput, ImportBackendOutput, InitProjectInput, InitProjectOutput, RemovePackageFromWorkspaceInput, RemovePackageFromWorkspaceOutput, SetEnvVarInput, SetEnvVarOutput, UnsetEnvVarInput, UnsetEnvVarOutput } from '../common.js';
|
|
3
|
+
interface CloudBackendConfig {
|
|
4
|
+
accessToken: string;
|
|
5
|
+
clientId: string;
|
|
6
|
+
refreshToken: string;
|
|
7
|
+
url: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class CloudBackend implements Backend {
|
|
10
|
+
private readonly config;
|
|
11
|
+
constructor(config: CloudBackendConfig);
|
|
12
|
+
addPackageToWorkspace(input: AddPackageToWorkspaceInput): Promise<AddPackageToWorkspaceOutput>;
|
|
13
|
+
createWorkspace(input: CreateWorkspaceInput): Promise<CreateWorkspaceOutput>;
|
|
14
|
+
deleteWorkspace(input: DeleteWorkspaceInput): Promise<DeleteWorkspaceOutput>;
|
|
15
|
+
exportBackend(): Promise<ExportBackendOutput>;
|
|
16
|
+
getProvisioningId(input: GetProvisioningIdInput): Promise<GetProvisioningIdOutput>;
|
|
17
|
+
getState(input: GetStateInput): Promise<GetStateOutput>;
|
|
18
|
+
getWorkspace(name: string): Promise<GetWorkspaceOutput>;
|
|
19
|
+
getWorkspaceEnv(input: GetWorkspaceEnvInput): Promise<GetWorkspaceEnvOutput>;
|
|
20
|
+
importBackend(input: ImportBackendInput): Promise<ImportBackendOutput>;
|
|
21
|
+
init(input: InitProjectInput): Promise<InitProjectOutput>;
|
|
22
|
+
listWorkspaces(): Promise<string[]>;
|
|
23
|
+
removePackageFromWorkspace(input: RemovePackageFromWorkspaceInput): Promise<RemovePackageFromWorkspaceOutput>;
|
|
24
|
+
saveState(config: Config, workspace?: string): Promise<void>;
|
|
25
|
+
setEnvVar(input: SetEnvVarInput): Promise<SetEnvVarOutput>;
|
|
26
|
+
unsetEnvVar(input: UnsetEnvVarInput): Promise<UnsetEnvVarOutput>;
|
|
27
|
+
private convertWorkspace;
|
|
28
|
+
}
|
|
29
|
+
export {};
|