npx wrangler pages deploy ./dist --branch staging

Category: Cloudflare

npx wrangler pages deploy ./dist --branch staging

Deploy to a non-production branch

Creates a preview deployment tied to the staging branch, reachable at a preview URL, without touching the live production site. Branch-based deploys mirror how git flow works when connected to a repo. Promote later by deploying the same build to the production branch.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.