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

Commit 9415772

Browse files
committed
docs: cli: add information about coder update
1 parent 3706fa9 commit 9415772

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

cli/installation.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,30 @@ Generate a static authentication token with the following command:
5555
```console
5656
coder tokens create my-token
5757
```
58+
59+
### Automatic Update (Linux, Mac, Windows)
60+
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:
71+
72+
```console
73+
coder update
74+
```
75+
76+
The `coder update` command accepts the following arguments:
77+
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.
83+
84+
**Note:** Coder CLI will refuse to auto-update if it is under certain paths.

0 commit comments

Comments
 (0)