# 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).
