Vercel

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/OptionExampleDescription
vercel loginvercel loginLog in to your Vercel account
vercel whoamivercel whoamiShow information about the currently logged-in user
vercel regionsvercel regionsList available regions for deployments

Project Management #

Command/OptionExampleDescription
vercel projectsvercel projectsList all Vercel projects
vercel project createvercel project create <project_name>Create a new project
vercel project deletevercel project delete <project_id>Delete a project
vercel project linkvercel project linkLink a local directory to a Vercel project

Deployment #

Command/OptionExampleDescription
vercelvercelDeploy the current directory to production
vercel devvercel devStart a local development server
vercel deployvercel deploy --prodDeploy the current directory to production
vercel deploy --previewvercel deploy --previewDeploy a preview of the current directory
vercel logsvercel logs <deployment_id>View logs for a specific deployment

Environment Variables #

Command/OptionExampleDescription
vercel env lsvercel env lsList environment variables for the current project
vercel env addvercel env add <variable_name>=<value>Add an environment variable to the project
vercel env rmvercel env rm <variable_name>Remove an environment variable from the project

Functions Management #

Command/OptionExampleDescription
vercel functionsvercel functionsList all serverless functions
vercel functions deployvercel functions deploy <function_name>Deploy a new serverless function
vercel functions deletevercel functions delete <function_name>Delete a serverless function

Domains Management #

Command/OptionExampleDescription
vercel domainsvercel domainsList all domains for the current project
vercel domains addvercel domains add <domain_name>Add a new domain to the project
vercel domains removevercel domains remove <domain_name>Remove a domain from the project

Aliases Management #

Command/OptionExampleDescription
vercel aliasvercel aliasList all aliases for the current project
vercel alias addvercel alias add <alias_name>Add a new alias to the project
vercel alias removevercel 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.

Vercel

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.