LinuxCommandLibrary

vercel

Deploy to Vercel hosting platform

TLDR

Deploy project

$ vercel
copy
Deploy to production
$ vercel --prod
copy
Link local project to Vercel
$ vercel link
copy
List deployments
$ vercel ls
copy
Show deployment logs
$ vercel logs [deployment_url]
copy
Set environment variable
$ vercel env add [VARIABLE_NAME]
copy
List environment variables
$ vercel env ls
copy
Pull environment variables locally
$ vercel env pull
copy

SYNOPSIS

vercel [command] [--prod] [--yes] [options] [arguments]

DESCRIPTION

vercel is the CLI for the Vercel deployment platform. It deploys frontend applications and serverless functions with automatic HTTPS, CDN, and zero configuration.
Deployment is instant - run `vercel` and get a URL. Each deployment is immutable and gets a unique URL. Production deployments update the main domain.
The dev command runs a local development server mimicking Vercel's environment. Serverless functions work locally just as they would deployed.
Framework detection auto-configures builds for Next.js, React, Vue, Angular, and many others. Custom builds use vercel.json configuration.
Environment variables are managed per-environment (development, preview, production). The env pull command downloads them for local use.
Integration with GitHub/GitLab enables automatic preview deployments for pull requests and production deployments on merge.
Domain management handles custom domains, SSL certificates, and DNS configuration through the CLI.

PARAMETERS

(deploy)

Deploy project (default command).
dev
Start local development server.
build
Build project locally.
link
Link to Vercel project.
ls / list
List deployments.
logs URL
Show deployment logs.
inspect URL
Show deployment details.
env subcommand
Manage environment variables.
domains subcommand
Manage domains.
dns subcommand
Manage DNS records.
certs subcommand
Manage certificates.
secrets subcommand
Manage secrets.
--prod
Deploy to production.
--yes, -y
Skip confirmation prompts.
--no-clipboard
Don't copy URL to clipboard.
--local-config FILE
Local config file path.
--confirm
Confirm default options.
--scope TEAM
Team or username scope.
--token TOKEN
Auth token.

CAVEATS

Requires Vercel account. Some features need paid plan. Serverless function limits apply. Edge functions have restrictions. Build times count against quotas. Some frameworks need configuration.

HISTORY

Vercel (formerly ZEIT) was founded by Guillermo Rauch in 2015. The CLI was originally `now`, renamed to `vercel` in 2020. The platform pioneered serverless frontend hosting and is the company behind Next.js. It emphasizes developer experience and zero-configuration deployment.

SEE ALSO

netlify(1), firebase(1), surge(1), next(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community