hereya-cli 0.37.1 → 0.37.2
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 +27 -27
- package/dist/backend/cloud/login.js +6 -2
- package/oclif.manifest.json +1 -1
- 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.37.
|
|
23
|
+
hereya-cli/0.37.2 linux-x64 node-v22.16.0
|
|
24
24
|
$ hereya --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ hereya COMMAND
|
|
@@ -88,7 +88,7 @@ EXAMPLES
|
|
|
88
88
|
$ hereya add cloudy/docker_postgres
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
91
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/add/index.ts)_
|
|
92
92
|
|
|
93
93
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
94
94
|
|
|
@@ -113,7 +113,7 @@ EXAMPLES
|
|
|
113
113
|
$ hereya bootstrap local
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
116
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/bootstrap/index.ts)_
|
|
117
117
|
|
|
118
118
|
## `hereya config export-backend [FILE]`
|
|
119
119
|
|
|
@@ -135,7 +135,7 @@ EXAMPLES
|
|
|
135
135
|
$ hereya config export-backend ./path/to/export.json
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
138
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/config/export-backend/index.ts)_
|
|
139
139
|
|
|
140
140
|
## `hereya config get-backend`
|
|
141
141
|
|
|
@@ -152,7 +152,7 @@ EXAMPLES
|
|
|
152
152
|
$ hereya config get-backend
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
155
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/config/get-backend/index.ts)_
|
|
156
156
|
|
|
157
157
|
## `hereya config import-backend FILE`
|
|
158
158
|
|
|
@@ -172,7 +172,7 @@ EXAMPLES
|
|
|
172
172
|
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
-
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
175
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/config/import-backend/index.ts)_
|
|
176
176
|
|
|
177
177
|
## `hereya config use-backend TYPE`
|
|
178
178
|
|
|
@@ -194,7 +194,7 @@ EXAMPLES
|
|
|
194
194
|
$ hereya config use-backend local
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
197
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/config/use-backend/index.ts)_
|
|
198
198
|
|
|
199
199
|
## `hereya deploy`
|
|
200
200
|
|
|
@@ -219,7 +219,7 @@ EXAMPLES
|
|
|
219
219
|
$ hereya deploy
|
|
220
220
|
```
|
|
221
221
|
|
|
222
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
222
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/deploy/index.ts)_
|
|
223
223
|
|
|
224
224
|
## `hereya down`
|
|
225
225
|
|
|
@@ -246,7 +246,7 @@ EXAMPLES
|
|
|
246
246
|
$ hereya down
|
|
247
247
|
```
|
|
248
248
|
|
|
249
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
249
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/down/index.ts)_
|
|
250
250
|
|
|
251
251
|
## `hereya env [NAME]`
|
|
252
252
|
|
|
@@ -277,7 +277,7 @@ EXAMPLES
|
|
|
277
277
|
$ hereya env -w dev -l
|
|
278
278
|
```
|
|
279
279
|
|
|
280
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
280
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/env/index.ts)_
|
|
281
281
|
|
|
282
282
|
## `hereya env set [NAME]`
|
|
283
283
|
|
|
@@ -304,7 +304,7 @@ EXAMPLES
|
|
|
304
304
|
$ hereya env set FOO -v bar -w dev
|
|
305
305
|
```
|
|
306
306
|
|
|
307
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
307
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/env/set/index.ts)_
|
|
308
308
|
|
|
309
309
|
## `hereya help [COMMAND]`
|
|
310
310
|
|
|
@@ -350,7 +350,7 @@ EXAMPLES
|
|
|
350
350
|
$ hereya init myProject -w=defaultWorkspace --chdir=./myProject
|
|
351
351
|
```
|
|
352
352
|
|
|
353
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
353
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/init/index.ts)_
|
|
354
354
|
|
|
355
355
|
## `hereya login [URL]`
|
|
356
356
|
|
|
@@ -374,7 +374,7 @@ EXAMPLES
|
|
|
374
374
|
$ hereya login http://localhost:5173
|
|
375
375
|
```
|
|
376
376
|
|
|
377
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
377
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/login/index.ts)_
|
|
378
378
|
|
|
379
379
|
## `hereya logout`
|
|
380
380
|
|
|
@@ -391,7 +391,7 @@ EXAMPLES
|
|
|
391
391
|
$ hereya logout
|
|
392
392
|
```
|
|
393
393
|
|
|
394
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
394
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/logout/index.ts)_
|
|
395
395
|
|
|
396
396
|
## `hereya remove PACKAGE`
|
|
397
397
|
|
|
@@ -418,7 +418,7 @@ EXAMPLES
|
|
|
418
418
|
$ hereya remove cloudy/docker_postgres
|
|
419
419
|
```
|
|
420
420
|
|
|
421
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
421
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/remove/index.ts)_
|
|
422
422
|
|
|
423
423
|
## `hereya run CMD`
|
|
424
424
|
|
|
@@ -444,7 +444,7 @@ EXAMPLES
|
|
|
444
444
|
$ hereya run -w uat -- node index.js
|
|
445
445
|
```
|
|
446
446
|
|
|
447
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
447
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/run/index.ts)_
|
|
448
448
|
|
|
449
449
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
450
450
|
|
|
@@ -469,7 +469,7 @@ EXAMPLES
|
|
|
469
469
|
$ hereya unbootstrap local
|
|
470
470
|
```
|
|
471
471
|
|
|
472
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
472
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/unbootstrap/index.ts)_
|
|
473
473
|
|
|
474
474
|
## `hereya undeploy`
|
|
475
475
|
|
|
@@ -494,7 +494,7 @@ EXAMPLES
|
|
|
494
494
|
$ hereya undeploy
|
|
495
495
|
```
|
|
496
496
|
|
|
497
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
497
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/undeploy/index.ts)_
|
|
498
498
|
|
|
499
499
|
## `hereya up`
|
|
500
500
|
|
|
@@ -521,7 +521,7 @@ EXAMPLES
|
|
|
521
521
|
$ hereya up
|
|
522
522
|
```
|
|
523
523
|
|
|
524
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
524
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/up/index.ts)_
|
|
525
525
|
|
|
526
526
|
## `hereya workspace create NAME`
|
|
527
527
|
|
|
@@ -544,7 +544,7 @@ EXAMPLES
|
|
|
544
544
|
$ hereya workspace create dev
|
|
545
545
|
```
|
|
546
546
|
|
|
547
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
547
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/workspace/create/index.ts)_
|
|
548
548
|
|
|
549
549
|
## `hereya workspace delete NAME`
|
|
550
550
|
|
|
@@ -564,7 +564,7 @@ EXAMPLES
|
|
|
564
564
|
$ hereya workspace delete dev
|
|
565
565
|
```
|
|
566
566
|
|
|
567
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
567
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/workspace/delete/index.ts)_
|
|
568
568
|
|
|
569
569
|
## `hereya workspace env [NAME]`
|
|
570
570
|
|
|
@@ -590,7 +590,7 @@ EXAMPLES
|
|
|
590
590
|
$ hereya workspace env myEnv -w dev
|
|
591
591
|
```
|
|
592
592
|
|
|
593
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
593
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/workspace/env/index.ts)_
|
|
594
594
|
|
|
595
595
|
## `hereya workspace env set`
|
|
596
596
|
|
|
@@ -614,7 +614,7 @@ EXAMPLES
|
|
|
614
614
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
615
615
|
```
|
|
616
616
|
|
|
617
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
617
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/workspace/env/set/index.ts)_
|
|
618
618
|
|
|
619
619
|
## `hereya workspace env unset`
|
|
620
620
|
|
|
@@ -635,7 +635,7 @@ EXAMPLES
|
|
|
635
635
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
636
636
|
```
|
|
637
637
|
|
|
638
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
638
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/workspace/env/unset/index.ts)_
|
|
639
639
|
|
|
640
640
|
## `hereya workspace install PACKAGE`
|
|
641
641
|
|
|
@@ -662,7 +662,7 @@ EXAMPLES
|
|
|
662
662
|
$ hereya workspace install hereya/aws-cognito
|
|
663
663
|
```
|
|
664
664
|
|
|
665
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
665
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/workspace/install/index.ts)_
|
|
666
666
|
|
|
667
667
|
## `hereya workspace list`
|
|
668
668
|
|
|
@@ -679,7 +679,7 @@ EXAMPLES
|
|
|
679
679
|
$ hereya workspace list
|
|
680
680
|
```
|
|
681
681
|
|
|
682
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
682
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/workspace/list/index.ts)_
|
|
683
683
|
|
|
684
684
|
## `hereya workspace uninstall PACKAGE`
|
|
685
685
|
|
|
@@ -706,5 +706,5 @@ EXAMPLES
|
|
|
706
706
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
707
707
|
```
|
|
708
708
|
|
|
709
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.
|
|
709
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.2/src/commands/workspace/uninstall/index.ts)_
|
|
710
710
|
<!-- commandsstop -->
|
|
@@ -11,8 +11,12 @@ export async function loginToCloudBackend(url) {
|
|
|
11
11
|
}
|
|
12
12
|
const { clientId } = registerResult;
|
|
13
13
|
const codeVerifier = crypto.randomBytes(32).toString('hex');
|
|
14
|
-
const
|
|
15
|
-
|
|
14
|
+
const codeChallenge = crypto
|
|
15
|
+
.createHash('sha256')
|
|
16
|
+
.update(codeVerifier)
|
|
17
|
+
.digest('base64url');
|
|
18
|
+
// const codeChallengeRaw = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(codeVerifier))
|
|
19
|
+
// const codeChallenge = Buffer.from(codeChallengeRaw).toString('base64')
|
|
16
20
|
const availablePort = await getAvailablePort(3000);
|
|
17
21
|
const myRedirectUri = `http://localhost:${availablePort}/auth/cli/callback`;
|
|
18
22
|
const redirectUrl = `${url}/auth/cli/login?client_id=${clientId}&code_challenge=${codeChallenge}&redirect_uri=${myRedirectUri}`;
|
package/oclif.manifest.json
CHANGED