kosa8 cloud tokens create
Make a capability token; its secret is shown once
Usage#
kosa8 cloud tokens create --scope SCOPE [--sandbox ID] [--label key=value]
Options#
| Flag | Type | What it does | Default |
|---|---|---|---|
-l, --label | stringArray | only sandboxes with this label, key=value (repeatable) | [] |
--name | string | a name to know it by | — |
-q, --quiet | bool | print only the secret | — |
--sandbox | stringArray | only this sandbox (repeatable, up to 100) | [] |
--scope | stringArray | what it may do: sandboxes:read, sandboxes:write or functions:invoke (repeatable) | [] |
--ttl | duration | how long it lives, 1m to 24h (default 1h) | 0s |
Example#
kosa8 cloud tokens create --scope sandboxes:write --sandbox sbx_abc --ttl 30m kosa8 cloud tokens create --scope sandboxes:read --label student=ada -q