-
Notifications
You must be signed in to change notification settings - Fork 16
Cyril Rohr edited this page Feb 13, 2026
·
2 revisions
Use the released pullpreview binary to run preview commands locally, including full up/down/list flows for debugging and manual deployments.
Download the CLI from GitHub Releases and add it to your PATH:
REPO="pullpreview/action"
TAG="v1.0.0" # replace with the release tag you want
PLATFORM="linux-amd64"
curl -L -o pullpreview.tar.gz \
"https://github.com/${REPO}/releases/download/${TAG}/pullpreview_${TAG}_$(echo "${PLATFORM}" | tr '-' '_').tar.gz"
tar -xzf pullpreview.tar.gz
chmod +x pullpreview
sudo mv pullpreview /usr/local/bin/pullpreviewOn Windows, download the .zip archive and extract pullpreview.exe.
You can also build from source:
go run ./cmd/pullpreview --help
go build -o pullpreview ./cmd/pullpreview# Deploy a local project
pullpreview up ./path/to/app --name pullpreview-local --instance-type small --region us-east-1
# List deployments created by PullPreview
pullpreview list
pullpreview list org/repo
# Destroy a deployment by instance name
pullpreview down --name pullpreview-localOther command:
pullpreview github-sync ./path/to/appFor provider: hetzner, use CLI flags and PULLPREVIEW_PROVIDER:
-
PULLPREVIEW_PROVIDER=hetzner(env) -
HCLOUD_TOKEN(env)
Example:
PULLPREVIEW_PROVIDER=hetzner \
HCLOUD_TOKEN=... \
pullpreview up ./path/to/app \
--region nbg1 \
--image ubuntu-24.04 \
--instance-type cpx21If you keep values in a .env file, source it manually before commands:
set -a
. ./.env
set +a-
--regionand--imageare the only region/image inputs used by the CLI and action. -
--instance-typecontrols the instance size for both AWS and Hetzner.