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
cmoog merged 8 commits into
masterfrom
tokens-cmd
Nov 3, 2020
Merged

Add new tokens command for managing API tokens#170
cmoog merged 8 commits into
masterfrom
tokens-cmd

Conversation

@cmoog

@cmoog cmoog commented Nov 3, 2020

Copy link
Copy Markdown
Contributor
$ 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

cmoog commented Nov 3, 2020

Copy link
Copy Markdown
Contributor Author

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

@cmoog

cmoog commented Nov 3, 2020

Copy link
Copy Markdown
Contributor Author

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

@cmoog

cmoog commented Nov 3, 2020

Copy link
Copy Markdown
Contributor Author

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