2021-02-19 11:11:57 +01:00
|
|
|
# vercel
|
|
|
|
|
|
|
|
> Deploy and manage your Vercel deployments.
|
|
|
|
> More information: <https://vercel.com/docs/cli>.
|
|
|
|
|
|
|
|
- Deploy the current directory:
|
|
|
|
|
|
|
|
`vercel`
|
|
|
|
|
2021-03-17 19:57:56 -04:00
|
|
|
- Deploy the current directory to production:
|
2021-02-19 11:11:57 +01:00
|
|
|
|
|
|
|
`vercel --prod`
|
|
|
|
|
|
|
|
- Deploy a directory:
|
|
|
|
|
|
|
|
`vercel {{path/to/project}}`
|
|
|
|
|
|
|
|
- Initialize an example project:
|
|
|
|
|
|
|
|
`vercel init`
|
|
|
|
|
|
|
|
- Deploy with Environment Variables:
|
|
|
|
|
|
|
|
`vercel --env {{ENV}}={{var}}`
|
|
|
|
|
|
|
|
- Build with Environment Variables:
|
|
|
|
|
|
|
|
`vercel --build-env {{ENV}}={{var}}`
|
|
|
|
|
|
|
|
- Set default regions to enable the deployment on:
|
|
|
|
|
|
|
|
`vercel --regions {{region_id}}`
|
|
|
|
|
|
|
|
- Remove a deployment:
|
|
|
|
|
|
|
|
`vercel remove {{project_name}}`
|