SkillOpen
vercel-cli
Use the Vercel CLI to deploy applications, manage environment variables, configure domains, and inspect deployments. Use this instead of the Vercel MCP server.
Front matter
name: vercel-cli
description: Use the Vercel CLI to deploy applications, manage environment variables, configure domains, and inspect deployments. Use this instead of the Vercel MCP server.Vercel CLI
Official CLI for Vercel. Deploy frontend apps, manage env vars, domains, and inspect builds.
- Official repo: https://github.com/vercel/vercel
- Docs: https://vercel.com/docs/cli
Authentication
vercel login # Interactive login
vercel login --token xxx # Use token directly
vercel whoami # Check current userCommon Commands
Deployments
vercel # Deploy current directory (preview)
vercel --prod # Deploy to production
vercel deploy --prebuilt # Deploy pre-built output
vercel ls # List recent deployments
vercel inspect <url> # Inspect a deployment
vercel logs <url> # View deployment logs
vercel redeploy # Redeploy latest
vercel rollback # Rollback to previous production deploymentEnvironment Variables
vercel env ls # List all env vars
vercel env add SECRET_KEY production # Add env var (interactive value input)
vercel env rm SECRET_KEY production # Remove env var
vercel env pull .env.local # Pull env vars to local fileDomains
vercel domains ls # List domains
vercel domains add example.com # Add domain
vercel domains inspect example.com # Inspect domain configProjects
vercel project ls # List projects
vercel link # Link local dir to Vercel project
vercel project rm my-project # Remove projectAgent Best Practices
- Use
vercel --confirmto skip interactive prompts in automated flows - Always use
vercel env pullto sync env vars locally before working - Check deployment status with
vercel inspectafter deploying - Use
vercel --prodexplicitly for production deploys (default is preview) - Pipe
vercel ls --jsonthrough jq for structured output
Example Workflows
Deploy and get URL
URL=$(vercel --confirm --prod 2>&1 | tail -1)
echo "Deployed to: $URL"Check deployment status
vercel ls --json | jq '.[0] | {url, state, created}'Source: written by One Giant Leap.
Related entries
There are more like this in the members library
The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.