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
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! Add new tokens command for managing API tokens
  • Loading branch information
cmoog committed Nov 3, 2020
commit 933bfd06c8be228c742d21506466b3a0f61f9224
1 change: 1 addition & 0 deletions docs/coder.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ coder provides a CLI for working with an existing Coder Enterprise installation
* [coder secrets](coder_secrets.md) - Interact with Coder Secrets
* [coder sh](coder_sh.md) - Open a shell and execute commands in a Coder environment
* [coder sync](coder_sync.md) - Establish a one way directory sync to a Coder environment
* [coder tokens](coder_tokens.md) - manage Coder API tokens for the active user
* [coder urls](coder_urls.md) - Interact with environment DevURLs
* [coder users](coder_users.md) - Interact with Coder user accounts

24 changes: 24 additions & 0 deletions docs/coder_tokens.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## coder tokens

manage Coder API tokens for the active user

### Options

```
-h, --help help for tokens
```

### Options inherited from parent commands

```
-v, --verbose show verbose output
```

### SEE ALSO

* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
* [coder tokens create](coder_tokens_create.md) - create generates a new API token and prints it to stdout
* [coder tokens ls](coder_tokens_ls.md) - show the user's active API tokens
* [coder tokens regen](coder_tokens_regen.md) - regenerate an API token by its unique ID and print the new token to stdout
* [coder tokens rm](coder_tokens_rm.md) - remove an API token by its unique ID

24 changes: 24 additions & 0 deletions docs/coder_tokens_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## coder tokens create

create generates a new API token and prints it to stdout

```
coder tokens create [token_name] [flags]
```

### Options

```
-h, --help help for create
```

### Options inherited from parent commands

```
-v, --verbose show verbose output
```

### SEE ALSO

* [coder tokens](coder_tokens.md) - manage Coder API tokens for the active user

24 changes: 24 additions & 0 deletions docs/coder_tokens_ls.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## coder tokens ls

show the user's active API tokens

```
coder tokens ls [flags]
```

### Options

```
-h, --help help for ls
```

### Options inherited from parent commands

```
-v, --verbose show verbose output
```

### SEE ALSO

* [coder tokens](coder_tokens.md) - manage Coder API tokens for the active user

24 changes: 24 additions & 0 deletions docs/coder_tokens_regen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## coder tokens regen

regenerate an API token by its unique ID and print the new token to stdout

```
coder tokens regen [token_id] [flags]
```

### Options

```
-h, --help help for regen
```

### Options inherited from parent commands

```
-v, --verbose show verbose output
```

### SEE ALSO

* [coder tokens](coder_tokens.md) - manage Coder API tokens for the active user

24 changes: 24 additions & 0 deletions docs/coder_tokens_rm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## coder tokens rm

remove an API token by its unique ID

```
coder tokens rm [token_id] [flags]
```

### Options

```
-h, --help help for rm
```

### Options inherited from parent commands

```
-v, --verbose show verbose output
```

### SEE ALSO

* [coder tokens](coder_tokens.md) - manage Coder API tokens for the active user