upstream/references/local-development.md
GitHubLocal Development
Prerequisites
- Link your project —
vercel linkorvercel link --repo(monorepo). Check your team first withvercel whoami. - Pull env vars —
vercel pullorvercel env pull
Usage
vercel dev # default: 0.0.0.0:3000
vercel dev --listen 8080 # custom port
vercel dev --listen 127.0.0.1:5000 # custom host and port
Related Commands
vercel link— connect to a Vercel project. Use--repofor multi-project monorepos.vercel pull— download project settings and env vars to.env.localvercel env pull— download only env vars (not project settings)vercel init— scaffold a new project from a Vercel examplevercel open— open the Vercel dashboard for the linked project
Run vercel dev from a project subdirectory (e.g., apps/web/) to skip the project selection prompt.