Installation
Supported platforms
Avocado CLI ships prebuilt binaries for the following OS / architecture combinations on every release:
| Operating system | Architecture | Target triple |
|---|---|---|
| macOS | Apple Silicon | aarch64-apple-darwin |
| macOS | Intel | x86_64-apple-darwin |
| Linux | aarch64 (static) | aarch64-unknown-linux-musl |
| Linux | x86_64 (glibc) | x86_64-unknown-linux-gnu |
| Linux | x86_64 (static) | x86_64-unknown-linux-musl |
| Windows | x86_64 | x86_64-pc-windows-msvc |
The Linux *-musl builds are statically linked, so they do not depend on the host glibc version, but they still require a compatible Linux kernel and matching architecture. The *-gnu build is dynamically linked against glibc and is suitable for mainstream Linux distributions with glibc 2.34 or newer (Debian 12+, Ubuntu 22.04+, Fedora 35+, RHEL 9+).
The install script picks the appropriate binary automatically. For manual installs, download the matching artifact from the releases page, or use Downloads, which lists every shipping build with its size and SHA-256.
Prefer a native app? Avocado Desktop ships for macOS and Linux, carrying the CLI and the cross-compilation toolchain in one install, plus the build VM on macOS. The Arch Linux package (pacman) is the exception: it links a CLI you install separately rather than bundling one.
Requirements
The CLI runs its builds in containers, so it needs a Docker Engine to talk to:
- Linux: Docker Engine running on the host, with your user able to reach it.
- macOS and Windows: the avocado VM, which
avocado vmmanages, or Docker Desktop. On Windows the VM runs under QEMU with WHPX. Its workspace share uses SMB and needs a one-time elevated setup, so treatavocado vmon Windows as a preview.
Since 1.2.0, the CLI talks to the Docker daemon itself, over the Engine API, so the docker command doesn't need to be installed. It honors DOCKER_HOST and the current docker context. The docker command is still used for avocado container dev, for --runs-on remotes, and with a --container-tool other than docker. It is also used when the daemon needs a transport the built-in client lacks: DOCKER_HOST is an ssh:// or https:// endpoint, DOCKER_TLS_VERIFY or DOCKER_TLS is set, or DOCKER_HOST is unset and the current docker context's endpoint is not a local unix:// or npipe:// socket. A plain tcp:// DOCKER_HOST, which the avocado VM sets on Windows, uses the built-in client. Set AVOCADO_DOCKER_CLI=1 to use the docker command everywhere.
Install
On macOS or Linux:
curl -fsSL https://connect.peridio.com/install.sh | sh
On Windows, or to install manually, use the GitHub releases:
- Download an Avocado CLI tarball from the releases page.
- Extract the tarball using the following command:
tar -xzvf <tarball>
- Move the extracted binary to a directory in your PATH:
mv avocado /usr/local/bin/
- Verify the installation:
If successful, you should see the version number displayed.avocado --version
Upgrade
To upgrade to the latest version:
avocado upgrade
To upgrade to a specific version:
avocado upgrade --version <version>