Get the prev CLI installed on your machine in seconds.

Quick Install

The fastest way to install the prev CLI is with our install script:

curl -fsSL https://prev.sh/install.sh | sh

This will automatically detect your operating system and architecture, and install using the best method available:

  • Debian/Ubuntu: Installs via APT for automatic updates
  • macOS: Installs via Homebrew (if available), otherwise downloads the binary
  • Other Linux / Windows (WSL): Downloads the binary directly

Package Managers

APT (Debian/Ubuntu)

Import GPG key:

curl -fsSL https://apt.venturenamics.com/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/venturenamics.gpg --yes

Add repository:

echo "deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/venturenamics.gpg] https://apt.venturenamics.com stable main" | sudo tee /etc/apt/sources.list.d/venturenamics.list > /dev/null

Install:

sudo apt-get update && sudo apt-get install -y prev

Updates will come automatically via sudo apt upgrade.

Homebrew (macOS / Linux)

brew install pepperpark/tap/prev

Updates via brew upgrade prev.

npm

npm install -g @prevsh/cli

This downloads the correct binary for your platform automatically. Updates via npm update -g @prevsh/cli.

Manual Installation

Download Binary

You can download the latest binary directly from our public releases page:

Download the latest binary (example for Linux amd64):

VERSION=$(curl -fsSL https://api.github.com/repos/pepperpark/apt/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
curl -fsSL -L "https://github.com/pepperpark/apt/releases/download/${VERSION}/prev-linux-amd64" -o prev

Install it:

chmod +x prev && sudo mv prev /usr/local/bin/

Available binaries on each release:

  • prev-linux-amd64 / prev-linux-arm64
  • prev-darwin-amd64 / prev-darwin-arm64
  • prev-windows-amd64.exe

Verify Installation

After installing, verify that the CLI is working:

prev --help

You should see the prev help menu with all available commands and options.

System Requirements

  • Linux: x86_64 or ARM64
  • macOS: Intel or Apple Silicon
  • Windows: x86_64 (via WSL recommended)

Next Steps

Once installed, you'll need an API key to start deploying. Head to the Quick Start guide to get up and running.