Files
coder/docs/reference/cli/tokens.md
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.1 KiB
Markdown
Raw Normal View History

---
# Code generated by make gen. DO NOT EDIT.
title: tokens
description: Manage personal access tokens
---
2023-03-23 17:42:20 -05:00
<!-- DO NOT EDIT | GENERATED CONTENT -->
Manage personal access tokens
Aliases:
* token
2023-03-23 17:42:20 -05:00
## Usage
```console
coder tokens
```
## Description
```console
Tokens are used to authenticate automated clients to Coder.
- Create a token for automation:
$ coder tokens create
2023-03-23 17:42:20 -05:00
- List your tokens:
$ coder tokens ls
2023-03-23 17:42:20 -05:00
- Create a scoped token:
$ coder tokens create --scope workspace:read --allow workspace:<uuid>
2023-03-23 17:42:20 -05:00
- Remove a token by ID:
$ coder tokens rm WuoWs4ZsMX
2023-03-23 17:42:20 -05:00
```
## Subcommands
| Name | Purpose |
|-------------------------------------------|--------------------------------------------|
| [<code>create</code>](./tokens_create.md) | Create a token |
| [<code>list</code>](./tokens_list.md) | List tokens |
| [<code>view</code>](./tokens_view.md) | Display detailed information about a token |
| [<code>remove</code>](./tokens_remove.md) | Expire or delete a token |