File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,15 @@ See the help docs for
51
51
52
52
### Generate a long-lived API token on behalf of another user
53
53
54
- Today, you must use the REST API to generate a token on behalf of another user.
55
- You must have the ` Owner ` role to do this. Use our API reference for more
56
- information:
57
- [ Create token API key] ( https://coder.com/docs/reference/api/users#create-token-api-key )
54
+ As of Coder v2.17+, you can create long-lived tokens on behalf of other users if
55
+ your account is ` Owner ` . Use the following command:
56
+
57
+ ``` sh
58
+ coder tokens create my-token --user < username>
59
+ ```
60
+
61
+ > See the full API reference for
62
+ > [ ` coder tokens create ` ] ( ../../reference/cli/tokens_create.md )
58
63
59
64
### Set max token length
60
65
You can’t perform that action at this time.
0 commit comments