- Notifications
You must be signed in to change notification settings - Fork926
Closed
Description
An Owner account should be able to create a token on behalf of another user in the CLI. Right now, you can only do it in the API:https://coder.com/docs/v2/latest/api/users#create-token-api-key
Desired state (example, doesn't have to be this flag/wording):
➜ ~ coder tokens create --helpcoder v2.10.0+a7234f6USAGE: coder tokens create [flags] Create a tokenOPTIONS: --lifetime duration, $CODER_TOKEN_LIFETIME (default: 720h0m0s) Specify a duration for the lifetime of the token. -n, --name string, $CODER_TOKEN_NAME Specify a human-readable name.+ -u, --user string, $CODER_TOKEN_USER+ Create the token on behalf of another user (Admin only)———Run `coder --help` for a list of global options.