Installation
The pure CLI is distributed as a Debian package from Pure’s own apt
repository, apt.pure.dev. It 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.
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
Supported platforms
Section titled “Supported platforms”The CLI ships for Debian and Ubuntu on amd64 and arm64. The compiled
output is a native binary built in the cloud — see
Language → OS support for the platforms your binaries
can target.
Updating
Section titled “Updating”Once the repository is registered, pure upgrades like any other package:
sudo apt update && sudo apt upgrade pureAuthentication
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 verifies the key against api.pure.dev and stores it at
~/.config/pure/credentials (mode 0600). For CI, set PURE_API_KEY instead:
PURE_API_KEY=… pure build src/main.tsSee Create an API key to mint one.