| 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.
Authentication
vercel login
vercel login --token xxx
vercel whoami
Common Commands
Deployments
vercel
vercel --prod
vercel deploy --prebuilt
vercel ls
vercel inspect <url>
vercel logs <url>
vercel redeploy
vercel rollback
Environment Variables
vercel env ls
vercel env add SECRET_KEY production
vercel env rm SECRET_KEY production
vercel env pull .env.local
Domains
vercel domains ls
vercel domains add example.com
vercel domains inspect example.com
Projects
vercel project ls
vercel link
vercel project rm my-project
Agent Best Practices
- Use
vercel --confirm to skip interactive prompts in automated flows
- Always use
vercel env pull to sync env vars locally before working
- Check deployment status with
vercel inspect after deploying
- Use
vercel --prod explicitly for production deploys (default is preview)
- Pipe
vercel ls --json through 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}'