Skip to content

docs: cli: add information about coder update command (#606) #610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2021
Merged
Changes from all commits
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
17 changes: 17 additions & 0 deletions cli/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,20 @@ Generate a static authentication token with the following command:
```console
coder tokens create my-token
```

## Update

To update the CLI to the version corresponding to your current Coder deployment,
run (you will be asked to confirm all changes before they're performed):

```console
coder update
```

The `coder update` command accepts the following arguments:

- `--coder`: specify the Coder instance the CLI should use to query the version
- `--version`: specify the version that the CLI should download and upgrade to
- `--force`: omit prompts asking for change confirmations

**Note:** Coder CLI will not update if it is located under `/var/tmp/coder` or `C:\Windows`.