2023-03-23 17:42:20 -05:00
|
|
|
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
|
|
|
|
# tokens create
|
|
|
|
|
|
|
|
|
|
Create a token
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
coder tokens create [flags]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
|
|
### --lifetime
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|-------------|------------------------------------|
|
2024-10-16 17:02:56 +02:00
|
|
|
| Type | <code>string</code> |
|
2023-03-23 17:42:20 -05:00
|
|
|
| Environment | <code>$CODER_TOKEN_LIFETIME</code> |
|
|
|
|
|
|
|
|
|
|
Specify a duration for the lifetime of the token.
|
|
|
|
|
|
|
|
|
|
### -n, --name
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|-------------|--------------------------------|
|
2023-03-23 17:42:20 -05:00
|
|
|
| Type | <code>string</code> |
|
|
|
|
|
| Environment | <code>$CODER_TOKEN_NAME</code> |
|
|
|
|
|
|
|
|
|
|
Specify a human-readable name.
|
2024-10-01 01:45:28 +05:30
|
|
|
|
|
|
|
|
### -u, --user
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|-------------|--------------------------------|
|
2024-10-01 01:45:28 +05:30
|
|
|
| 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).
|