mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
40 lines
960 B
Markdown
Generated
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).
|