patr is the command-line tool for managing your Patr resources — deployments, runners, container registry, and more — from your terminal.
One-liner:
curl -fsSL https://raw.githubusercontent.com/patr-cloud/patr/develop/assets/cli/install.sh | shInstalls to /usr/local/bin/patr (prompts for your password). Supports Linux x86_64 / arm64 and macOS arm64.
Pick a release channel (default: alpha):
curl -fsSL https://raw.githubusercontent.com/patr-cloud/patr/develop/assets/cli/install.sh | sh -s -- --channel betaInstall to a user-owned directory (no sudo):
curl -fsSL https://raw.githubusercontent.com/patr-cloud/patr/develop/assets/cli/install.sh | sh -s -- --prefix $HOME/.local/binThe script refuses to overwrite an existing install — use patr upgrade to update or patr uninstall to reinstall from scratch.
patr upgradeTracks the channel you installed on. Switch channels with patr upgrade --channel stable|beta|alpha; the choice is persisted. Use --check to see what would happen without modifying anything.
patr uninstallRemoves the CLI config, any installed systemd runner services, and the binary itself. Pass --purge to also tear down resources managed by Patr runners on this host (docker swarm leave --force).
patr login # authenticate with your Patr account
patr info # show the current user
patr deployments # list deployments in the current workspace
patr --help # full command reference