Vercel CLI
Use this skill to run Vercel CLI operations for deployments and project management.
Workflow
- •Prefer the local CLI if available:
./node_modules/.bin/vercel. - •If running in CI or non-interactive contexts, always use
--token. - •Default deploy command for production:
vercel --prod --yes. - •Parse the deployment URL from CLI output and persist it.
- •For domain purchase requests, never buy immediately. Quote first, ask user to proceed, then buy.
Commands (common)
- •Deploy prod:
vercel --prod --yes - •Check version:
vercel --version - •Env management:
vercel env ls|add|rm - •Project info:
vercel project ls|inspect - •Logs:
vercel logs <deployment-url>
Domain purchase flow
- •Quote price/availability (non-interactive):
- •
printf "n\n" | vercel domains buy <domain> [--token $VERCEL_TOKEN] [--scope $VERCEL_SCOPE] - •Parse output: if it shows “Buy now for $X (1yr)” and “available”, the domain is purchasable at that price.
- •
- •Ask user to proceed with the quoted price.
- •Collect payment (Stripe link or other).
- •Buy after payment:
- •
printf "y\n" | vercel domains buy <domain> [--token $VERCEL_TOKEN] [--scope $VERCEL_SCOPE]
- •
- •Log the purchase in the DB for billing.
References
- •See
references/vercel-cli.mdfor detailed command list and usage patterns.