> ## Documentation Index
> Fetch the complete documentation index at: https://docs.controlplane.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Install the Control Plane CLI on macOS, Linux, or Windows.

The Control Plane CLI (`cpln`) is available via npm, Homebrew, or direct binary download for all major operating systems.

## Choose your installation method

> [tab] npm
>
> Install via npm if you have Node.js **version 18** or later installed.
>
> ```bash Install theme={null}
> npm install -g @controlplane/cli
> ```
>
> ```bash Update theme={null}
> npm update -g @controlplane/cli
> ```
>
> > [!NOTE]
> >
> > Requires [Node.js](https://nodejs.org/en/download/) version 18+ (an active LTS release is recommended).

> [tab] Homebrew
>
> Install via Homebrew on macOS or Linux.
>
> ```bash Install theme={null}
> brew tap controlplane-com/cpln && brew install cpln
> ```
>
> ```bash Update theme={null}
> brew upgrade cpln
> ```
>
> > [!NOTE]
> >
> > If you don't have Homebrew installed, follow the [installation instructions](https://brew.sh/).

> [tab] Binary
>
> Download and install the binary package for your operating system.
>
> **1. Download the binary**
>
> > [tab] Browser
> >
> > > [card] [macOS (ARM64)](https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-macos-arm64.dmg)
> > >
> > > Download for Apple Silicon
> >
> > > [card] [macOS (x64)](https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-macos-x64.dmg)
> > >
> > > Download for Intel Macs
> >
> > > [card] [Linux / WSL2](https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-linux.tgz)
> > >
> > > Download for Linux (x64) or for Windows (WSL2)
> >
> > > [card] [Windows](https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-win.zip)
> > >
> > > Download for Windows 10/11
>
> > [tab] Command line
> >
> > > [tab] macOS (ARM64)
> > >
> > > ```bash theme={null}
> > > curl -LO https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-macos-arm64.dmg
> > > ```
> >
> > > [tab] macOS (x64)
> > >
> > > ```bash theme={null}
> > > curl -LO https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-macos-x64.dmg
> > > ```
> >
> > > [tab] Linux
> > >
> > > ```bash curl theme={null}
> > > curl -LO https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-linux.tgz
> > > ```
> > >
> > > ```bash wget theme={null}
> > > wget https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-linux.tgz
> > > ```
> >
> > > [tab] Windows (PowerShell)
> > >
> > > ```powershell theme={null}
> > > Invoke-WebRequest -Uri "https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-win.zip" -OutFile "cpln-win.zip"
> > > ```
> >
> > > [tab] Windows (WSL2)
> > >
> > > ```bash curl theme={null}
> > > curl -LO https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-linux.tgz
> > > ```
> > >
> > > ```bash wget theme={null}
> > > wget https://storage.googleapis.com/artifacts.cpln-build.appspot.com/binaries/cpln/3094526373-b939ed1d/cpln-linux.tgz
> > > ```
> > >
> > > > [!NOTE]
> > > >
> > > > When using WSL2, download the Linux binary, not the Windows binary.
>
> **2. Extract and add to PATH**
>
> > [tab] macOS (ARM64)
> >
> > ```bash theme={null}
> > hdiutil attach cpln-macos-arm64.dmg && \
> > cp -R /Volumes/cpln-macos-arm64/cpln /Volumes/cpln-macos-arm64/docker-credential-cpln . && \
> > hdiutil detach /Volumes/cpln-macos-arm64 && \
> > sudo mv cpln docker-credential-cpln /usr/local/bin/
> > ```
> >
> > > [!NOTE]
> > >
> > > You'll be prompted to enter your password. The `sudo` command requires administrator privileges to move files to `/usr/local/bin`.
>
> > [tab] macOS (x64)
> >
> > ```bash theme={null}
> > hdiutil attach cpln-macos-x64.dmg && \
> > cp -R /Volumes/cpln-macos-x64/cpln /Volumes/cpln-macos-x64/docker-credential-cpln . && \
> > hdiutil detach /Volumes/cpln-macos-x64 && \
> > sudo mv cpln docker-credential-cpln /usr/local/bin/
> > ```
> >
> > > [!NOTE]
> > >
> > > You'll be prompted to enter your password. The `sudo` command requires administrator privileges to move files to `/usr/local/bin`.
>
> > [tab] Linux
> >
> > ```bash theme={null}
> > tar -xvf cpln-linux.tgz && \
> > sudo mv cpln docker-credential-cpln /usr/local/bin/
> > ```
> >
> > > [!NOTE]
> > >
> > > You'll be prompted to enter your password. The `sudo` command requires administrator privileges to move files to `/usr/local/bin`.
>
> > [tab] Windows
> >
> > 1. Right-click `cpln-win.zip` and select **Extract All**
> > 2. Choose a permanent location (e.g., `C:\Program Files\cpln`)
> > 3. Add to PATH:
> >    * Press `Win + R`, type `sysdm.cpl`, and press Enter
> >    * Click the **Advanced** tab → **Environment Variables**
> >    * Under "User variables", select **Path** and click **Edit**
> >    * Click **New** and add the directory containing `cpln.exe` (e.g., `C:\Program Files\cpln`)
> >    * Click **OK** to save all dialogs
> > 4. Open a **new** Command Prompt or PowerShell window to use `cpln`
>
> > [tab] Windows (WSL2)
> >
> > ```bash theme={null}
> > tar -xvf cpln-linux.tgz && \
> > sudo mv cpln docker-credential-cpln /usr/local/bin/
> > ```
> >
> > > [!NOTE]
> > >
> > > You'll be prompted to enter your password. The `sudo` command requires administrator privileges to move files to `/usr/local/bin`.
> >
> > > [!NOTE]
> > >
> > > **Logging in from WSL2:** No browser is needed inside WSL2. `cpln login` prints a login URL and a confirmation code, so you can paste the URL into your Windows browser, sign in, and enter the code. The CLI running in WSL2 picks up the credentials on its own.
>
> > [accordion] Verify checksums
> >
> > | OS | File | SHA256 |
> > | - | - | - |
> > | macOS-arm64 | cpln-macos-arm64.dmg | c14a981504b85c680e79336cb5656dbc452997021b6e9c60cb4e5ad0eead76b3 |
> > | macOS-x64 | cpln-macos-x64.dmg | 2e167cfd74ee329308637dc9b36b598c89d96e75920dd77e42e1768d80d52422 |
> > | Linux | cpln-linux.tgz | 7d759838979ca73e91b0421e4f7b3364cb69cf50ace537ac500e2ad6f4f435f5 |
> > | Windows 10/11 | cpln-win.zip | 0fda5413c83a4b83464b3f7f98e8fddd16860d42cda7a7479bf4353344a9d314 |
>
> > [!NOTE]
> >
> > The binary package includes two executables:
> >
> > * `cpln` - The Control Plane CLI
> > * `docker-credential-cpln` - Enables Docker authentication to your org's private image registry

## Verify installation

After installing with any method, confirm the CLI is installed and accessible:

```bash theme={null}
cpln --version
```

You should see the version number printed to the console. If you see `command not found`, ensure the installation directory is in your `PATH`.

`cpln version` and `cpln -v` are aliases for `cpln --version`.

## Keep the CLI up to date

Run `cpln upgrade` to upgrade the CLI to the latest version.

## Enable shell completion (optional)

Enable tab completion for `cpln` commands, subcommands, and flags in your terminal:

```bash theme={null}
cpln misc install-completion
```

Restart your terminal after installation. For non-interactive setup and supported shells, see [Shell Completion](https://docs.controlplane.com/cli-reference/using-cli/shell-completion.md).

## Next steps

> [card] [Quickstart](https://docs.controlplane.com/cli-reference/get-started/quickstart.md)
>
> Get started with the CLI in minutes

> [card] [Authentication](https://docs.controlplane.com/cli-reference/get-started/authentication.md)
>
> Learn how to authenticate
