Files
coder/docs/reference/cli/tokens_create.md
2025-01-03 13:12:59 +00:00

40 lines
960 B
Markdown
Generated

<!-- DO NOT EDIT | GENERATED CONTENT -->
# tokens create
Create a token
## Usage
```console
coder tokens create [flags]
```
## Options
### --lifetime
| | |
|-------------|------------------------------------|
| Type | <code>string</code> |
| Environment | <code>$CODER_TOKEN_LIFETIME</code> |
Specify a duration for the lifetime of the token.
### -n, --name
| | |
|-------------|--------------------------------|
| Type | <code>string</code> |
| Environment | <code>$CODER_TOKEN_NAME</code> |
Specify a human-readable name.
### -u, --user
| | |
|-------------|--------------------------------|
| Type | <code>string</code> |
| Environment | <code>$CODER_TOKEN_USER</code> |
Specify the user to create the token for (Only works if logged in user is admin).