# 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]
```

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--label, -l` | stringArray | only sandboxes with this label, key=value (repeatable) | `[]` |
| `--name` | string | a name to know it by |  |
| `--quiet, -q` | 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
```

---
Source: https://docs.kosa8.com/reference/cloud-tokens-create/
