Installation & Updates
Install the Polycrate CLI on Linux and macOS with the installer or manually, and keep it current with polycrate update.
The Polycrate CLI is distributed through the public release catalog at https://app.ayedo.cloud. Installing and updating requires no sign-in.
Requirements
- Operating system: Linux or macOS,
amd64orarm64. On Windows, use WSL2 with a Linux distribution. - Container runtime: Docker or a compatible runtime (e.g. OrbStack, Colima, Docker Desktop) for
polycrate run,polycrate debugandpolycrate workspace fix-permissions. Catalog, encryption, Git and SDD commands work without Docker.
There is no official Homebrew, Nix or Windows package.
Install with the installer (recommended)
The script detects your OS and architecture, downloads the latest stable version and installs the binary without sudo to ~/.local/bin/polycrate (or $XDG_BIN_HOME):
curl -fsSL https://app.ayedo.cloud/api/v1/cli/public/install.sh | sh
Add ~/.local/bin to your PATH if it is not there yet, and verify the installation:
export PATH="$HOME/.local/bin:$PATH" # e.g. in ~/.bashrc or ~/.zshrc
polycrate version
Installer options:
# Install a specific version into a specific directory
curl -fsSL https://app.ayedo.cloud/api/v1/cli/public/install.sh | sh -s -- --version <version> --dir "$HOME/.local/bin"
# All options (including --no-sudo)
curl -fsSL https://app.ayedo.cloud/api/v1/cli/public/install.sh | sh -s -- --help
Manual installation
For CI images, locked-down systems or when preparing an air-gapped delivery, download the archive directly from the catalog. The .tar.gz contains the polycrate binary at the archive root.
# Available releases (JSON) and latest stable version (plain text)
curl -fsS "https://app.ayedo.cloud/api/v1/cli/public/releases/"
curl -fsS "https://app.ayedo.cloud/api/v1/cli/public/releases/latest/?type=plain"
VERSION="$(curl -fsS 'https://app.ayedo.cloud/api/v1/cli/public/releases/latest/?type=plain')"
OS="linux" # linux | darwin
ARCH="amd64" # amd64 | arm64
mkdir -p "$HOME/.local/bin"
curl -fsSLo polycrate.tar.gz \
"https://app.ayedo.cloud/api/v1/cli/public/releases/${VERSION}/${OS}/${ARCH}/download/"
tar -xzf polycrate.tar.gz -C "$HOME/.local/bin" polycrate
chmod +x "$HOME/.local/bin/polycrate"
rm -f polycrate.tar.gz
polycrate version
Shell completion
source <(polycrate completion zsh) # Zsh
source <(polycrate completion bash) # Bash
polycrate completion fish > ~/.config/fish/completions/polycrate.fish
Updates
polycrate update looks up the latest version in the release catalog, checks the new binary with polycrate version before and after the swap, and replaces the running file in place. If the catalog is unreachable, the CLI falls back to the Polycrate Hub.
polycrate update # latest version
polycrate update --yes # no confirmation (scripts)
polycrate update --dry-run # show what would happen
polycrate update <version> # install a specific version
polycrate update <version> --force --yes # force a reinstall or downgrade
If the binary lives in a writable directory such as ~/.local/bin, no sudo is needed. Otherwise the CLI uses sudo (interactive password prompt on a terminal, sudo -n otherwise). If it cannot replace the binary, it stops and prints the manual install command.
polycrate update does not replace a binary under a package manager path (/Cellar/ for Homebrew, /nix/store/). Reinstall with the official installer in that case.
At the end of action and workflow runs the CLI mentions new versions. Turn this off with --check-updates=false or check_updates: false in ~/.polycrate/polycrate.yml.
Browse versions and changelogs
polycrate cli latest
polycrate cli versions
polycrate cli inspect [version]
polycrate cli changelog [version]
See also
- Getting Started – create your first workspace and run an action
- Configuration – global settings in
~/.polycrate/polycrate.yml - The Polycrate Container – container image and preinstalled tools