Deploy
vercel
Deploy a preview
Prints the deployment URL on stdout.
vercel --prod
Deploy to production
vercel deploy --prebuilt
Deploy output of vercel build
System env vars are missing at build time with --prebuilt.
vercel build
Build locally into .vercel/output
vercel --force
Deploy without the build cache
vercel --prod --skip-domain
Deploy prod, keep domains on old one
Finish later with vercel promote.
vercel --logs
Print build logs while deploying
vercel --yes
Skip project setup questions
vercel --no-wait
Exit before the build finishes
vercel --env <KEY>=<value>
Set a runtime env var
vercel --build-env <KEY>=<value>
Set a build-time env var
vercel --target=<env>
Deploy to a custom environment
vercel --archive=tgz
Upload as archive (many files)
vercel redeploy <url>
Rebuild an existing deployment
Local & Env
vercel dev
Run the project locally
vercel dev --port <port>
Run on a given port
vercel pull
Fetch env vars and settings to .vercel/
Needed before vercel build or vercel dev.
vercel env ls
List environment variables
vercel env add <name> <environment>
Add an env var
Production and Preview values default to secret type.
vercel env update <name> <environment>
Change an env var's value
vercel env rm <name> <environment>
Remove an env var
vercel env pull <file>
Write dev vars to a file
Merges into an existing file; local-only keys are kept.
vercel env pull --environment=preview
Pull Preview variables instead
vercel env run -- <command>
Run a command with the env vars
No file is written; use -e to pick the environment.
vercel env add <name> <environment> <
<file>
Use file content as the value
Inspect & Logs
vercel list
Recent deployments
vercel inspect <url>
Show deployment details
vercel inspect <url> --logs
Show its build logs
vercel inspect <url> --wait
Wait until it is ready
Exits 124 if the wait times out.
vercel logs
Runtime logs, last 30 minutes
vercel logs --since <duration>
Widen the time window
vercel logs --deployment <url>
Logs of one deployment
vercel logs --query '<kql>'
Filter with a KQL query
Example: 'level:error AND timeout'.
vercel logs requests
CDN request records
vercel logs --json
One JSON object per line
vercel open
Open project in dashboard