Vercel CLI
$ vercel Official Med RiskVercel CLI handles local development, preview/production deployments, environment variable synchronization (vercel env pull), and log inspection. Designed for CI with --yes, --token, and --format json on inspection commands.
npm install -g vercel Use vercel CLI for vercel build, vercel env pull, and preview deploys from local git trees; Vercel MCP works well for reading deployment logs or project status.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --yes for non-interactive runs, --format json on key listing commands, and local vercel build, though some deploy logs remain stream-oriented.
- Supports
--yes,--token, and--format json - First-run without
--yesprompts interactively to link a project
Defaults vercel deploy to Preview rather than Production (--prod), and supports --scope and VERCEL_TOKEN, though lacks --dry-run on env rm / projects rm.
- Preview-by-default deploy behavior (
--prodmust be explicit) vercel env pullwrites.env.locallocally—guard against committing secrets
Standard npm/npx distribution across macOS, Linux, and Windows.
- Distributed via npm
vercel
Essential for local vercel build verification and preview deployments directly from agent workspaces.
vercel buildand preview URLs streamline agent verification
Official Vercel repository (vercel/vercel) with rapid release cadence.
- Official
vercel/vercelmonorepo under Apache-2.0
Well-documented CLI commands and CI automation examples.
- Official documentation at vercel.com/docs/cli
Security, Auth & Guardrails
Stores auth token in OS user data directory (auth.json) or accepts --token / VERCEL_TOKEN env var.
CLI is Apache-2.0 free; deployments consume Vercel account bandwidth and build minutes.
# Vercel CLI Agent Rules - Always pass `--yes` in automated commands so interactive linking prompts do not hang. - Default to preview `vercel deploy --yes`; never pass `--prod` without explicit approval. - Run `vercel build --yes` to verify builds locally first.
Agent-Ready Command Recipes
Safe Read-Only Queries
vercel list --format json
Returns structured deployment metadata without interactive terminal formatting.
vercel build --yes
Validates .vercel/output locally before sending any artifact to Vercel.
Controlled Writes & Previews
vercel deploy --yes
Deploys a preview URL (not production) non-interactively with --yes.
Strengths for Agents
- + Preview deployments are default—agents must explicitly pass
--prodto affect production. - +
vercel build --yesverifies full build output locally before upload. - +
--yesandVERCEL_TOKENintegrate smoothly into headless agent shells.
Caveats & Pitfalls
- ! Calling
vercelin an unlinked repo without--yestriggers an interactive setup wizard. - !
vercel env pullwrites secrets to local disk; ensure.env*stays gitignored.