# nodus create token

> Mint a ServiceAccount API key (printed once)

Source: https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_create_token/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

## nodus create token

Mint a ServiceAccount API key (printed once)

```plaintext
nodus create token sa/NAME [flags]
```

### Examples

```plaintext
  nodus create token sa/ci --duration 720h --scope jobs:write
```

### Options

```plaintext
      --duration duration   Lifetime of the key, such as 720h (default the server's 90 days; at most 8760h)
  -h, --help                help for token
      --scope stringArray   Scope such as jobs:write (repeatable; default the ServiceAccount's)
```

### Options inherited from parent commands

```plaintext
      --context string   Context from the config file to use
      --org string       Organization (selects the context for that org)
  -p, --project string   Project to work in
  -v, --verbose          Log each API request (never credentials)
```

### SEE ALSO

* [nodus create](https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_create/) - Create resources from manifests or with a typed generator

### Tested examples

These invocations run in CI against the CLI’s fake API.

Terminal window

```sh
nodus create token sa/ci --duration 720h --scope jobs:write
nodus create token sa/ci
```
