This repository was archived by the owner on Aug 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -55,3 +55,30 @@ Generate a static authentication token with the following command:
5555``` console
5656coder 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.
You can’t perform that action at this time.
0 commit comments