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