Vercel Cheatsheet
#
Vercel is a cloud platform that provides deployment and hosting services for front-end projects, static sites, and serverless functions with an emphasis on simplicity and performance.
General Commands
#
Command/Option | Example | Description |
---|
vercel login | vercel login | Log in to your Vercel account |
vercel whoami | vercel whoami | Show information about the currently logged-in user |
vercel regions | vercel regions | List available regions for deployments |
Project Management
#
Command/Option | Example | Description |
---|
vercel projects | vercel projects | List all Vercel projects |
vercel project create | vercel project create <project_name> | Create a new project |
vercel project delete | vercel project delete <project_id> | Delete a project |
vercel project link | vercel project link | Link a local directory to a Vercel project |
Deployment
#
Command/Option | Example | Description |
---|
vercel | vercel | Deploy the current directory to production |
vercel dev | vercel dev | Start a local development server |
vercel deploy | vercel deploy --prod | Deploy the current directory to production |
vercel deploy --preview | vercel deploy --preview | Deploy a preview of the current directory |
vercel logs | vercel logs <deployment_id> | View logs for a specific deployment |
Environment Variables
#
Command/Option | Example | Description |
---|
vercel env ls | vercel env ls | List environment variables for the current project |
vercel env add | vercel env add <variable_name>=<value> | Add an environment variable to the project |
vercel env rm | vercel env rm <variable_name> | Remove an environment variable from the project |
Functions Management
#
Command/Option | Example | Description |
---|
vercel functions | vercel functions | List all serverless functions |
vercel functions deploy | vercel functions deploy <function_name> | Deploy a new serverless function |
vercel functions delete | vercel functions delete <function_name> | Delete a serverless function |
Domains Management
#
Command/Option | Example | Description |
---|
vercel domains | vercel domains | List all domains for the current project |
vercel domains add | vercel domains add <domain_name> | Add a new domain to the project |
vercel domains remove | vercel domains remove <domain_name> | Remove a domain from the project |
Aliases Management
#
Command/Option | Example | Description |
---|
vercel alias | vercel alias | List all aliases for the current project |
vercel alias add | vercel alias add <alias_name> | Add a new alias to the project |
vercel alias remove | vercel alias remove <alias_name> | Remove an alias from the project |
This cheatsheet covers the most commonly used Vercel commands and options, helping you manage projects, deployments, serverless functions, environment variables, domains, and aliases efficiently.