Files
coder/docs/install/cli.md
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
2.4 KiB
Markdown
Raw Normal View History

---
title: Install the Coder CLI
---
2024-10-05 08:52:04 -07:00
A single CLI (`coder`) is used for both the control plane and the client.
2024-10-05 08:52:04 -07:00
We support two release channels: mainline and stable - read the [Releases](../reference/releases.md) page to learn more about which best suits your team.
2024-10-05 08:52:04 -07:00
## Download the latest release from GitHub
2024-10-05 08:52:04 -07:00
<div class="tabs">
## Linux/macOS
Our install script is the fastest way to install Coder on Linux/macOS:
```sh
curl -fsSL https://coder.com/install.sh | sh
2024-10-05 08:52:04 -07:00
```
Refer to [GitHub releases](https://github.com/coder/coder/releases) for alternate installation methods (e.g. standalone binaries, system packages).
2024-10-05 08:52:04 -07:00
To run the Coder control plane on a Red Hat Enterprise Linux host or another RHEL-family distribution, refer to [Install Coder on RHEL-family Linux](./server/rpm.md).
2024-10-05 08:52:04 -07:00
## Windows
If you plan to use the built-in PostgreSQL database, ensure that the [Visual C++ Runtime](https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist#latest-microsoft-visual-c-redistributable-version) is installed.
2024-10-05 08:52:04 -07:00
Use [GitHub releases](https://github.com/coder/coder/releases) to download the Windows installer (`.msi`) or standalone binary (`.exe`).
2024-10-05 08:52:04 -07:00
![Windows setup wizard](../images/install/windows-installer.png)
Alternatively, you can use the [`winget`](https://learn.microsoft.com/en-us/windows/package-manager/winget/#use-winget) package manager to install Coder:
2024-10-05 08:52:04 -07:00
```ps1
2024-10-05 08:52:04 -07:00
winget install Coder.Coder
```
</div>
To start the control plane:
2024-10-05 08:52:04 -07:00
```sh
coder server
```
![Coder install](../images/screenshots/welcome-create-admin-user.png)
2024-10-05 08:52:04 -07:00
To log in to an existing Coder deployment:
```sh
coder login https://coder.example.com
```
## Download the CLI from your deployment
> [!NOTE]
> Available in Coder 2.19 and newer on macOS and Linux clients only.
Every control plane hosts CLI binaries for all supported platforms.
You can run a script to download the appropriate CLI for your machine from your Coder deployment.
![Install Coder binary from your deployment](../images/install/install_from_deployment.png)
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 control plane.
This script can be useful when authoring a template for installing the CLI.
2024-10-05 08:52:04 -07:00
### Next up
- [Create your first template](../tutorials/template-from-scratch.md)
- [Control plane configuration](../admin/setup/index.md)