Skip to content

Commit a3d15ef

Browse files
author
Katie Horne
committed
condense instructions
1 parent 9d35477 commit a3d15ef

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

cli/installation.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,29 +56,19 @@ Generate a static authentication token with the following command:
5656
coder tokens create my-token
5757
```
5858

59-
### Automatic Update (Linux, Mac, Windows)
59+
## Update
6060

61-
As of version `v1.23`, Coder CLI supports automatically updating itself.
62-
63-
This works by querying the version of the currently logged in Coder instance,
64-
downloading the corresponding version from GitHub, extracting it, and updating
65-
the running binary in-place.
66-
67-
You will be asked for confirmation before any changes are performed.
68-
69-
To update `coder` to the version corresponding to your currently authenticated
70-
Coder session, just run:
61+
To update the CLI to the version corresponding to your current Coder deployment,
62+
run (you will be asked to confirm all changes before they're performed):
7163

7264
```console
7365
coder update
7466
```
7567

7668
The `coder update` command accepts the following arguments:
7769

78-
- `--coder` argument allows you to specify the exact Coder instance from which
79-
to query the version.
80-
- `--version` allows you to manually specify a given verison of Coder CLI to
81-
download.
82-
- `--force` causes Coder CLI to not ask for confirmation.
70+
- `--coder`: specify the Coder instance the CLI should use to query the version
71+
- `--version`: specify the version that the CLI should download and upgrade to
72+
- `--force`: omit prompts asking for change confirmations
8373

84-
**Note:** Coder CLI will refuse to auto-update if it is under certain paths.
74+
**Note:** Coder CLI will not update if it is under certain paths.

0 commit comments

Comments
 (0)