mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
42 lines
715 B
Plaintext
42 lines
715 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|