@hyperscale0/cli 1.0.128 → 1.0.132
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 +13 -14
- package/hyperscale.js +34 -33
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,23 +5,22 @@ The Hyperscale developer command line.
|
|
|
5
5
|
## Start
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
hyperscale whoami --json
|
|
8
|
+
bunx @hyperscale0/cli@latest auth login --base-url https://dev.hyperscale0.ai
|
|
9
|
+
bunx @hyperscale0/cli@latest whoami --json
|
|
11
10
|
```
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
Bun runs the latest CLI without an install; every command below starts the
|
|
13
|
+
same way. Browser login requests read-only scopes through
|
|
15
14
|
portal consent. Request different scopes with `auth login --scopes <scope,...>`.
|
|
16
15
|
The login summary shows the authority actually returned by the server.
|
|
17
16
|
Headless email login uses `auth login --email founder@example.com --no-browser`
|
|
18
17
|
in sandbox or live. The password prompt requires a TTY. Passwords and temporary sessions never
|
|
19
18
|
enter files or saved replay requests. Use browser sign-in for terms.
|
|
20
|
-
Default scopes include blueprints:read for `compose check`. Creation
|
|
21
|
-
explicit reauthorization:
|
|
19
|
+
Default scopes include blueprints:read for `compose check`. Creation and the
|
|
20
|
+
key create after it require explicit reauthorization:
|
|
22
21
|
|
|
23
22
|
```sh
|
|
24
|
-
env -u HYPERSCALE_TOKEN
|
|
23
|
+
env -u HYPERSCALE_TOKEN bunx @hyperscale0/cli@latest auth login --base-url https://dev.hyperscale0.ai --environment sandbox --scopes activity:read,billing:read,blueprints:read,catalog:read,finance:read,products:read,blueprints:write,keys:write
|
|
25
24
|
```
|
|
26
25
|
|
|
27
26
|
Headless callers can use `auth login --no-browser --token <pat>`.
|
|
@@ -33,10 +32,10 @@ Use a Product API key in `HYPERSCALE_API_KEY` for object operations.
|
|
|
33
32
|
Keep Product identity in the input and omit the global `--product` flag:
|
|
34
33
|
|
|
35
34
|
```sh
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
bunx @hyperscale0/cli@latest call product.objects.discover --input '{"productId":"<product-id>"}' --json
|
|
36
|
+
bunx @hyperscale0/cli@latest call product.objects.create --input '{"productId":"<product-id>","kind":"<kind>"}' --idempotency-key object-001 --json
|
|
37
|
+
bunx @hyperscale0/cli@latest call product.objects.actions --input '{"productId":"<product-id>","kind":"<kind>","objectId":"<object-id>"}' --json
|
|
38
|
+
bunx @hyperscale0/cli@latest call product.objects.execute --input-file action.json --idempotency-key action-001 --json
|
|
40
39
|
```
|
|
41
40
|
|
|
42
41
|
Copy action.name, productBuildId, digest and target from the chosen available
|
|
@@ -53,12 +52,12 @@ Instrument creation stays internal to object attachment execution.
|
|
|
53
52
|
`ops list` discovers operations for the active credential and Product.
|
|
54
53
|
`call <operation>` calls one with `--input` or `--input-file`.
|
|
55
54
|
`compose check/plan/apply <file.hsx>` uses the server composer.
|
|
56
|
-
Run `
|
|
55
|
+
Run `bunx @hyperscale0/cli@latest help <command>` for options and examples.
|
|
57
56
|
|
|
58
57
|
## Resume
|
|
59
58
|
|
|
60
59
|
A transport failure or interrupted dispatch prints a local resume reference.
|
|
61
|
-
Then run `
|
|
60
|
+
Then run `bunx @hyperscale0/cli@latest resume <reference>`. Resume replays the same origin,
|
|
62
61
|
environment, credential, path, body bytes and idempotency key from secure local
|
|
63
62
|
storage. Body and credential overrides are refused.
|
|
64
63
|
|