From 250f3c7aada98fe498a88f89edef13b31e18896d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B1=E3=82=A4=E3=83=A9?= Date: Tue, 21 Jan 2025 14:16:08 -0700 Subject: [PATCH] docs: document local install.sh script (#16125) Co-authored-by: Edward Angert --- docs/install/cli.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/install/cli.md b/docs/install/cli.md index 678fc7d68a..ed20d216a8 100644 --- a/docs/install/cli.md +++ b/docs/install/cli.md @@ -5,6 +5,8 @@ A single CLI (`coder`) is used for both the Coder server and the client. We support two release channels: mainline and stable - read the [Releases](./releases.md) page to learn more about which best suits your team. +## Download the latest release from GitHub +
## Linux/macOS @@ -54,6 +56,27 @@ To log in to an existing Coder deployment: coder login https://coder.example.com ``` +## Download the CLI from your deployment + +
+ +Available in Coder 2.19 and newer. + +
+ +Every Coder server hosts CLI binaries for all supported platforms. You can run a +script to download the appropriate CLI for your machine from your Coder +deployment. + +```sh +curl -L https://coder.example.com/install.sh | sh +``` + +This script works within air-gapped deployments and ensures that the version of +the CLI you have installed on your machine matches the version of the server. + +This script can be useful when authoring a template for installing the CLI. + ### Next up - [Create your first template](../tutorials/template-from-scratch.md)