2023-09-08 13:21:33 -05:00
|
|
|
coder v0.0.0-devel
|
2023-03-23 17:42:20 -05:00
|
|
|
|
2023-09-14 17:48:29 -07:00
|
|
|
USAGE:
|
2023-09-08 13:21:33 -05:00
|
|
|
coder tokens create [flags]
|
2022-12-20 22:17:51 +02:00
|
|
|
|
2023-09-08 13:21:33 -05:00
|
|
|
Create a token
|
|
|
|
|
|
2023-09-14 17:48:29 -07:00
|
|
|
OPTIONS:
|
2025-10-27 17:07:25 +01:00
|
|
|
--allow allow-list
|
|
|
|
|
Repeatable allow-list entry (<type>:<uuid>, e.g. workspace:1234-...).
|
|
|
|
|
|
2024-10-16 17:02:56 +02:00
|
|
|
--lifetime string, $CODER_TOKEN_LIFETIME
|
2025-10-28 10:15:57 -05:00
|
|
|
Duration for the token lifetime. Supports standard Go duration units
|
|
|
|
|
(ns, us, ms, s, m, h) plus d (days) and y (years). Examples: 8h, 30d,
|
|
|
|
|
1y, 1d12h30m.
|
2022-12-20 22:17:51 +02:00
|
|
|
|
2023-09-14 17:48:29 -07:00
|
|
|
-n, --name string, $CODER_TOKEN_NAME
|
2023-03-23 17:42:20 -05:00
|
|
|
Specify a human-readable name.
|
2022-12-20 22:17:51 +02:00
|
|
|
|
2025-10-27 17:07:25 +01:00
|
|
|
--scope string-array
|
|
|
|
|
Repeatable scope to attach to the token (e.g. workspace:read).
|
|
|
|
|
|
2024-10-01 01:45:28 +05:30
|
|
|
-u, --user string, $CODER_TOKEN_USER
|
|
|
|
|
Specify the user to create the token for (Only works if logged in user
|
|
|
|
|
is admin).
|
|
|
|
|
|
2023-09-08 13:21:33 -05:00
|
|
|
———
|
2023-03-23 17:42:20 -05:00
|
|
|
Run `coder --help` for a list of global options.
|