@@ -56,29 +56,19 @@ Generate a static authentication token with the following command:
56
56
coder tokens create my-token
57
57
```
58
58
59
- ### Automatic Update (Linux, Mac, Windows)
59
+ ## Update
60
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:
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):
71
63
72
64
``` console
73
65
coder update
74
66
```
75
67
76
68
The ` coder update ` command accepts the following arguments:
77
69
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
83
73
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