2026-08-11 11:22:55 -04:00
|
|
|
---
|
|
|
|
|
# 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:
|
|
|
|
|
|
2025-01-03 18:12:59 +05:00
|
|
|
* 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:
|
|
|
|
|
|
2023-09-07 17:28:22 -04:00
|
|
|
$ coder tokens create
|
2023-03-23 17:42:20 -05:00
|
|
|
|
|
|
|
|
- List your tokens:
|
|
|
|
|
|
2023-09-07 17:28:22 -04:00
|
|
|
$ coder tokens ls
|
2023-03-23 17:42:20 -05:00
|
|
|
|
2025-10-27 17:07:25 +01: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:
|
|
|
|
|
|
2023-09-07 17:28:22 -04:00
|
|
|
$ coder tokens rm WuoWs4ZsMX
|
2023-03-23 17:42:20 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Subcommands
|
|
|
|
|
|
2025-10-27 17:07:25 +01:00
|
|
|
| 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 |
|
2026-02-17 13:16:46 +00:00
|
|
|
| [<code>remove</code>](./tokens_remove.md) | Expire or delete a token |
|