Cloud
Vercel CLI — the commands that come up in daily work
Vercel CLI commands for daily work: log in and link, deploy previews and production, manage env vars, domains and DNS, inspect builds.
Auth + link
vercel login — authenticate (once per machine)
vercel whoami — show current user
vercel link — link current dir to a Vercel project
vercel link --yes --project <name> — non-interactive link
Deploy
vercel — deploy current dir to a preview URL
vercel --prod — deploy to production
vercel --prebuilt — deploy a pre-built output
vercel logs <deployment-url> — read deploy logs
Env vars
vercel env ls — list all env vars
vercel env ls production — only production
vercel env add NAME production — interactive add
echo "$VAL" | vercel env add NAME production --force --yes — non-interactive (CI-safe)
vercel env rm NAME production — remove
vercel env pull .env.production.local — pull all to a local file
Domains
vercel domains ls — list owned domains
vercel domains add example.com — register domain (paid)
vercel domains buy example.com — buy through Vercel
vercel domains transfer-in example.com — start transfer in
DNS
vercel dns ls example.com — list DNS records
vercel dns add example.com sub CNAME target.vercel.app — add record
Inspect
vercel inspect <deployment-url> — full deploy info
vercel ls — list recent deployments
vercel rollback <prev-url> — promote a previous deploy to production