HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

vercel — Deploy and manage your Vercel deployments. More information: <https://vercel.com/docs/cli>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandandvercelclimanagedeployyour

Problem

How to use the vercel command: Deploy and manage your Vercel deployments. More information: <https://vercel.com/docs/cli>.

Solution

vercel — Deploy and manage your Vercel deployments. More information: <https://vercel.com/docs/cli>.

Deploy the current directory:
vercel


Deploy the current directory to production:
vercel --prod


Deploy a directory:
vercel {{path/to/project}}


Initialize an example project:
vercel init


Deploy with environment variables:
vercel {{[-e|--env]}} {{ENV}}={{var}}


Build with environment variables:
vercel {{[-b|--build-env]}} {{ENV}}={{var}}


Set default regions to enable the deployment on:
vercel --regions {{region_id}}


Remove a deployment:
vercel remove {{project_name}}

Code Snippets

Deploy the current directory

vercel

Deploy the current directory to production

vercel --prod

Deploy a directory

vercel {{path/to/project}}

Initialize an example project

vercel init

Deploy with environment variables

vercel {{[-e|--env]}} {{ENV}}={{var}}

Context

tldr-pages: common/vercel

Revisions (0)

No revisions yet.