Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Vercel CLI

$ vercel Official Med Risk
Vercel · Code & DevOps · Apache-2.0 · macos / linux / windows

Vercel 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.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g vercel
CLI vs MCP Decision Hybrid (CLI + MCP)

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

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 --yes prompts interactively to link a project
Trust & Safety 20 / 25

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 (--prod must be explicit)
  • vercel env pull writes .env.local locally—guard against committing secrets
Setup & Portability 14 / 15

Standard npm/npx distribution across macOS, Linux, and Windows.

  • Distributed via npm vercel
Utility & Efficiency 13 / 15

Essential for local vercel build verification and preview deployments directly from agent workspaces.

  • vercel build and preview URLs streamline agent verification
Maintenance & Lineage 10 / 10

Official Vercel repository (vercel/vercel) with rapid release cadence.

  • Official vercel/vercel monorepo under Apache-2.0
Docs & Verifiability 9 / 10

Well-documented CLI commands and CI automation examples.

  • Official documentation at vercel.com/docs/cli

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Stores auth token in OS user data directory (auth.json) or accepts --token / VERCEL_TOKEN env var.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

CLI is Apache-2.0 free; deployments consume Vercel account bandwidth and build minutes.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List recent deployments in JSON
vercel list --format json

Returns structured deployment metadata without interactive terminal formatting.

Build project locally without deploying
vercel build --yes

Validates .vercel/output locally before sending any artifact to Vercel.

Controlled Writes & Previews

Create an isolated Preview deployment
vercel deploy --yes

Deploys a preview URL (not production) non-interactively with --yes.

Strengths for Agents

  • + Preview deployments are default—agents must explicitly pass --prod to affect production.
  • + vercel build --yes verifies full build output locally before upload.
  • + --yes and VERCEL_TOKEN integrate smoothly into headless agent shells.

Caveats & Pitfalls

  • ! Calling vercel in an unlinked repo without --yes triggers an interactive setup wizard.
  • ! vercel env pull writes secrets to local disk; ensure .env* stays gitignored.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI