---
title: Install carton
description: Install carton on macOS or Linux with the installer, Homebrew, or your preferred package manager.
sidebar:
  label: Installation
---

Install carton once, then connect it to your sandbox provider.
Choose one installation method below. You do not need Docker or a Rust
toolchain to install the CLI.

## macOS and Linux

Run the installer in your terminal:

```sh
curl -fsSL https://carton.sh/install | bash
```

The installer selects the binary for your operating system and architecture.
Follow its instructions if you need to add carton to your `PATH`.

If you prefer to inspect the script before running it:

```sh
curl -fsSL https://carton.sh/install -o install-carton.sh
less install-carton.sh
bash install-carton.sh
```

## Homebrew

On macOS or Linux with Homebrew:

```sh
brew install carton
```

To update:

```sh
brew upgrade carton
```

## npm, pnpm, Yarn, or Bun

Use the package manager you already have. Each command installs the same
CLI and makes `carton` available in your terminal.

| Package manager | Install command |
| --- | --- |
| npm | `npm install --global @carton/cli` |
| pnpm | `pnpm add --global @carton/cli` |
| Yarn Classic | `yarn global add @carton/cli` |
| Bun | `bun add --global @carton/cli` |

Run your chosen command again to update to the latest release.

## Verify the installation

```sh
carton --version
carton --help
```

If your shell cannot find `carton`, open a new terminal or check that your
installation directory is on your `PATH`.

## Connect a provider

Next, [set up your provider connection](/docs/configuration), then follow the
[CLI quickstart](/docs/quickstart).

<!-- Forward-looking release copy requested by the project owner. The installer URL, Homebrew formula `carton`, and npm wrapper `@carton/cli` define the proposed publication contract. Installer behavior, package ownership, and distribution availability must be verified before launch. This change does not implement or publish them. Native Windows and distro-specific repositories are not promised here; current supported platforms are macOS and Linux. -->
