vercel dev
The vercel dev command is used to replicate the Vercel deployment environment locally, allowing you to test your Vercel Functions and Middleware without requiring you to deploy each time a change is made.
If the Development Command is configured in your Project Settings, it will affect the behavior of vercel dev for everyone on that team.
If you're using a framework and your framework's Development Command already provides all the features you need, we do not recommend using vercel dev.
For example, Next.js's Development Command (next dev) provides native support for Functions, redirects, rewrites, headers and more.
vercel devUsing the vercel dev command from the root of a
Vercel Project directory.
These are options that only apply to the vercel dev command.
The --listen option, shorthand -l, can be used to specify which port vercel dev runs on.
vercel dev --listen 5005Using the vercel dev command with the
--listen option.
The --yes option can be used to skip questions you are asked when setting up a new Vercel Project.
The questions will be answered with the default scope and current directory for the Vercel Project name and location.
vercel dev --yesUsing the vercel dev command with the
--yes option.
The following global options can be passed when using the vercel dev command:
--cwd--debug--global-config--help--local-config--no-color--non-interactive--scope--team--token--version
For more information on global options and their usage, refer to the options section.
Was this helpful?
Cross-link map: vercel dev (/docs/cli/dev)
From the Vercel docs graph (built 2026-09-06T06:25:16.735Z), spanning vercel.com docs + KB, nextjs.org, ai-sdk.dev, and other Vercel documentation sites. Full graph as JSON: https://vercel.com/docs/graph.json
Semantically closest pages
- vercel build — Learn how to build a Vercel Project locally or in your own CI environment using the vercel build CLI command.
- vercel deploy — Learn how to deploy your Vercel projects using the vercel deploy CLI command.
- Deploying a project from the CLI — Set up and deploy a Vercel project using the CLI, from linking to production.
- Linking Projects with Vercel CLI — Learn how to link existing Vercel Projects with Vercel CLI.
- Deploying Projects from Vercel CLI — Learn how to deploy your Vercel Projects from Vercel CLI using the vercel or vercel deploy commands.
This page links to (5)
- Configuring a Build — Vercel automatically configures the build settings for many front-end frameworks, but you can also customize the build a
- Next.js on Vercel — Vercel is the native Next.js platform, designed to enhance the Next.js experience.
- Vercel Functions — Build API routes, webhooks, and agent request handlers with Vercel Functions, then test and debug them with Vercel CLI.
- Routing Middleware — Learn how you can use Routing Middleware, code that executes before a request is processed on a site, to provide speed a
- Redirects — Learn how to use redirects on Vercel to instruct Vercel's platform to redirect incoming requests to a new URL.
Pages that link here (9)
By site: vercel-kb (1) · vercel-docs (8)
From vercel-kb
- Using xmcp with Next.js — Add an MCP server to an existing Next.js app with xmcp. Create typed tools, add authentication, and deploy to Vercel as
From vercel-docs
- Vercel CLI Overview — Learn how to use the Vercel command-line interface \(CLI\) to manage and configure your Vercel Projects from the command
- Environment variables — Learn more about environment variables on Vercel.
- Elysia on Vercel — Build fast TypeScript backends with Elysia and deploy to Vercel. Learn the project structure, plugins, middleware, and h
- Hono on Vercel — Deploy Hono applications to Vercel with zero configuration. Learn about observability, ISR, and custom build configurati
- Using WebAssembly \(Wasm\) — Learn how to use WebAssembly \(Wasm\) to enable low-level languages to run on Vercel Functions and Routing Middleware.
- How Vercel CDN works — Learn how Vercel's CDN processes requests through routing, caching, and compute layers to deliver your content with low
- Global network and regions — View the list of regions supported by Vercel's CDN and learn about our global infrastructure.
- Vercel Documentation Sitemap — Browse Vercel documentation pages with summaries, prerequisites, and topics.
