Installation
The pure CLI is a single statically linked binary with no runtime
dependencies — there is no Node.js or compiler toolchain to install, because
every build runs in the cloud on api.pure.dev.
Distributed as a Debian package from Pure’s own apt repository,
apt.pure.dev.
Quick install (recommended)
Section titled “Quick install (recommended)”curl -fsSL https://apt.pure.dev/install.sh | sudo shThis trusts the signing key, registers the repository, and installs pure.
Verify it:
pure versionManual install
Section titled “Manual install”If you’d rather not pipe a script to sh, run the same steps yourself.
-
Trust the repository signing key:
Terminal window sudo install -d -m 0755 /usr/share/keyringscurl -fsSL https://apt.pure.dev/pure.gpg \| sudo tee /usr/share/keyrings/pure-archive-keyring.gpg > /dev/null -
Add the repository (modern deb822 format):
Terminal window sudo tee /etc/apt/sources.list.d/pure.sources > /dev/null <<EOFTypes: debURIs: https://apt.pure.devSuites: stableComponents: mainArchitectures: $(dpkg --print-architecture)Signed-By: /usr/share/keyrings/pure-archive-keyring.gpgEOF -
Install:
Terminal window sudo apt updatesudo apt install pure
Homebrew (Apple Silicon)
Section titled “Homebrew (Apple Silicon)”brew tap getpure/purebrew install pureNo need to run the curl installer first — this doesn’t depend on it.
curl (Apple Silicon and Intel)
Section titled “curl (Apple Silicon and Intel)”curl -fsSL https://brew.pure.dev/install.sh | shWorks on both Apple Silicon and Intel Macs (the script detects your
architecture automatically) and installs to /usr/local/bin. Use this on
Intel until Homebrew support for Intel lands.
Supported platforms
Section titled “Supported platforms”| Install method | Platform |
|---|---|
apt (apt.pure.dev) | Debian / Ubuntu, amd64 and arm64 |
Homebrew (getpure/pure) | macOS, Apple Silicon (Intel coming soon) |
curl (brew.pure.dev) | macOS, Apple Silicon and Intel |
Windows is planned but not available yet. See Language → OS support for what your compiled binaries can target.
Updating
Section titled “Updating”Linux: once the repository is registered, pure upgrades like any other package:
sudo apt update && sudo apt upgrade puremacOS (Homebrew):
brew upgrade puremacOS (curl): re-run the install command — it always fetches the latest build:
curl -fsSL https://brew.pure.dev/install.sh | shAuthentication
Section titled “Authentication”Every command needs an API key. The CLI resolves it in this order:
- the
--api-key <key>flag - the
PURE_API_KEYenvironment variable - the key stored by
pure login
The friendliest path is to log in once:
pure loginThis asks how you want to log in — generate a new key (opens your browser and
mints one automatically) or paste an existing one — then verifies it against
api.pure.dev and stores it in your OS keychain (falling back to
~/.config/pure/credentials, mode 0600, when no keychain is available). See
Log in for the full flow, including the SSH/remote fallback and
CI/headless setups. For CI, set PURE_API_KEY instead:
PURE_API_KEY=… pure build src/main.tsSee Create an API key if you’d rather mint one from the dashboard directly (e.g. for a service account, not a personal login).
Next steps
Section titled “Next steps”- Log in — the full
pure loginflow, including the SSH/remote fallback - Run your first build