Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 250f3c7

Browse files
docs: document local install.sh script (#16125)
Co-authored-by: Edward Angert <[email protected]>
1 parent 02d0650 commit 250f3c7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/install/cli.md

+23
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ A single CLI (`coder`) is used for both the Coder server and the client.
55
We support two release channels: mainline and stable - read the
66
[Releases](./releases.md) page to learn more about which best suits your team.
77

8+
## Download the latest release from GitHub
9+
810
<div class="tabs">
911

1012
## Linux/macOS
@@ -54,6 +56,27 @@ To log in to an existing Coder deployment:
5456
coder login https://coder.example.com
5557
```
5658

59+
## Download the CLI from your deployment
60+
61+
<blockquote class="admonition note">
62+
63+
Available in Coder 2.19 and newer.
64+
65+
</blockquote>
66+
67+
Every Coder server hosts CLI binaries for all supported platforms. You can run a
68+
script to download the appropriate CLI for your machine from your Coder
69+
deployment.
70+
71+
```sh
72+
curl -L https://coder.example.com/install.sh | sh
73+
```
74+
75+
This script works within air-gapped deployments and ensures that the version of
76+
the CLI you have installed on your machine matches the version of the server.
77+
78+
This script can be useful when authoring a template for installing the CLI.
79+
5780
### Next up
5881

5982
- [Create your first template](../tutorials/template-from-scratch.md)

0 commit comments

Comments
 (0)