Skip to content
carton
Esc
↑↓navigate↵open⌘Jpreview
On this page

Install carton

Install carton on macOS or Linux with the installer, Homebrew, or your preferred package manager.

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:

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:

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:

brew install carton

To update:

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

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, then follow the CLI quickstart.