Getting Started
Deploy your first project to Vercel, either from the dashboard via Git or entirely from the CLI.
There are two common ways to ship your first project: connecting a Git repository in the dashboard, or deploying straight from the CLI. Both end with a live URL.
Option A — Deploy from Git (dashboard)
- Push your project to GitHub, GitLab, or Bitbucket.
- In the Vercel dashboard, choose Add New → Project and import the repository.
- Vercel detects the framework and pre-fills the build settings. Adjust the build command, output directory, or environment variables if needed.
- Click Deploy.
From then on, every push triggers a deployment automatically: pull requests get preview URLs and merges to your production branch go live.
Option B — Deploy from the CLI
First install the CLI (see the CLI overview for all install methods):
npm i -g vercelThen, from your project directory, the full first-deploy sequence looks like this:
# 1. Link your local directory to a Vercel project
vercel link
# 2. Pull environment variables for local development
vercel env pull .env.local
# 3. Develop locally (use your framework's dev command, or vercel dev)
vercel dev
# 4. Deploy a preview
vercel deploy
# 5. Inspect / verify the preview
vercel logs <preview-deployment-url>
# 6. Deploy to production
vercel deploy --prodRunning
vercelwith no arguments is the same asvercel deploy— it's the only command that works without a subcommand.
Non-interactive / CI
In CI or any non-interactive environment, add --yes to skip prompts:
vercel deploy --prod --yesSee Deploying from the CLI for the full set of deploy options.
Add a custom domain
Once you have a project, point a domain at it:
vercel domains add example.com
vercel domains inspect example.comDomain setup, DNS records, and verification are covered in Domains and DNS.
What to learn next
- How it works — the architecture behind the magic
- Deployment workflow — preview first, then promote to production safely
- Environment variables — managing secrets and config
- Functions — running backend logic
- Configuration — the
vercel.jsonfile