Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Add new tokens command for managing API tokens #170

Merged
merged 8 commits into from
Nov 3, 2020
Merged

Add new tokens command for managing API tokens #170

merged 8 commits into from
Nov 3, 2020

Conversation

cmoog
Copy link
Contributor

@cmoog cmoog commented Nov 3, 2020

$ coder tokens
Create and manage API Tokens for authenticating the CLI.
Statically authenticate using the token value with the `CODER_TOKEN` and `CODER_URL` environment variables.

Usage:
  coder tokens [command]

Available Commands:
  create      create generates a new API token and prints it to stdout
  ls          show the user's active API tokens
  regen       regenerate an API token by its unique ID and print the new token to stdout
  rm          remove an API token by its unique ID

Flags:
  -h, --help   help for tokens

Global Flags:
  -v, --verbose   show verbose output

Use "coder tokens [command] --help" for more information about a command.

@cmoog
Copy link
Contributor Author

cmoog commented Nov 3, 2020

This will require a very pointed help desk article showing how the CLI can be authenticated for CI.

@cmoog
Copy link
Contributor Author

cmoog commented Nov 3, 2020

As shown in the integration tests, this is currently blocked by https://github.com/cdr/c/pull/5891

@cmoog
Copy link
Contributor Author

cmoog commented Nov 3, 2020

Merging as hidden until the permissions issue is resolved for coder tokens ls

@cmoog cmoog merged commit 7a9addf into master Nov 3, 2020
@cmoog cmoog deleted the tokens-cmd branch November 3, 2020 17:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant