# Installing Coder

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](/beta-docs/install/releases/) page to learn more about which best suits your team.

## Download the latest release from GitHub [#download-the-latest-release-from-github]

<OSTab items="[&#x22;Linux&#x22;, &#x22;macOS&#x22;, &#x22;Windows&#x22;]">
  <Tab value="Linux">
    Our install script is the fastest way to install Coder on Linux/macOS:

    ```sh
    curl -L https://coder.com/install.sh | sh
    ```

    Refer to [GitHub releases](https://github.com/coder/coder/releases) for
    alternate installation methods (e.g. standalone binaries, system packages).

    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](/beta-docs/install/rpm/).
  </Tab>

  <Tab value="macOS">
    Our install script is the fastest way to install Coder on Linux/macOS:

    ```sh
    curl -L https://coder.com/install.sh | sh
    ```

    Refer to [GitHub releases](https://github.com/coder/coder/releases) for
    alternate installation methods (e.g. standalone binaries, system packages).

    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](/beta-docs/install/rpm/).
  </Tab>

  <Tab value="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.

    Use [GitHub releases](https://github.com/coder/coder/releases) to download the
    Windows installer (`.msi`) or standalone binary (`.exe`).

    ![Windows setup wizard](/beta-docs/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:

    ```ps1
    winget install Coder.Coder
    ```
  </Tab>
</OSTab>

To start the Coder server:

```sh
coder server
```

![Coder install](/beta-docs/images/screenshots/welcome-create-admin-user.png)

To log in to an existing Coder deployment:

```sh
coder login https://coder.example.com
```

## Download the CLI from your deployment [#download-the-cli-from-your-deployment]

<Callout type="info" title="Note">
  Available in Coder 2.19 and newer on macOS and Linux clients only.
</Callout>

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.

![Install Coder binary from your deployment](/beta-docs/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 server.

This script can be useful when authoring a template for installing the CLI.

### Next up [#next-up]

* [Create your first template](/beta-docs/tutorials/template-from-scratch/)
* [Control plane configuration](/beta-docs/admin/setup/)
