CLI preview deployments are unexpectedly created with target=production
Vercel CLI version
55.0.0 (Node.js 24.15.0, macOS)
Expected behavior
According to the Vercel CLI deployment documentation, vercel deploy creates a Preview deployment and --prod is required for Production. An explicit --target=preview should produce a Preview deployment.
Actual behavior
On a newly linked project with no previous deployments, both commands below returned a deployment object classified as target="production".
Attempt 1 — 2026-07-13T07:17:22Z:
vercel deploy --target=preview --yesResult: finalDeployment.target="production"
Attempt 2 — 2026-07-13T07:44:32Z:
npx vercel@latest deploy --yes --no-wait --meta phase=staging-previewResult:
target="production"
environment=null
readyState="BUILDING"
region="sin1"No --prod flag was used. Both deployments were canceled and deleted immediately.
Project state before both attempts
- New, linked Next.js project
- No prior deployments or aliases
- Preview-only environment-variable records; zero Production records
- No custom domain
- No Git integration
- No custom deployment environment
- No project target override
- No
VERCEL_*shell variables, CLI wrapper,--prod, orVERCEL_TARGET_ENV=productionconfiguration
Current state is still zero deployments and zero aliases.
Redacted correlation data
- Team:
viktor…projects - Project:
viktor-home…page - Project ID:
prj_XRn…lSKu - Attempt 1 Deployment ID:
dpl_74FU…n4Hq - Attempt 2 Deployment ID:
dpl_E4Gr…Dbdn - Attempt 1 event ID:
uev_qmQ6…FtQl - Attempt 2 event ID:
uev_xjE7…oL87
Documentation conflict
The documented default is Preview when --prod is absent. The first attempt additionally passed --target=preview, yet the returned Deployment target was Production.
Please clarify whether first deployments are intentionally forced to Production even when --target=preview is supplied. If so, please document that behavior and provide a supported way to create the first deployment as Preview only. If not, please investigate the deployment target classification.
Source: vercel/vercel