← All notes

vite, vite dev, and vite serve all start the development server

Answer: The vite command starts a dev server in the current directory. The names vite dev and vite serve are aliases of that same command. The CLI also exposes options such as --host, --port, --open, --cors, --strictPort, and --force. --force makes the optimizer ignore its cache and re-bundle.

The same CLI surface is used for production (vite build) and for locally previewing a production build (vite preview).

In source

The CLI is created with cac('vite'). The default command is described as "start dev server". The command is called serve in Vite's API. Another alias is dev, to align with the script name.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources and notices: Vite documentation and source (vitejs/vite): Copyright (c) 2019-present, VoidZero Inc. and Vite contributors; MIT (https://raw.githubusercontent.com/vitejs/vite/main/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Vite docs and Vite source (vitejs/vite), MIT. Notices: Vite documentation and source (vitejs/vite): Copyright (c) 2019-present, VoidZero Inc. and Vite contributors; MIT (https://raw.githubusercontent.com/vitejs/vite/main/LICENSE).

Cite this

Permanent ID: iil:note:tp8mxcbp

iinventedlight. 2026. "The Vite CLI starts the dev server and aliases vite dev and vite serve." iinventedlight Library, iil:note:tp8mxcbp, version of 2026-11-11. https://iinventedlight.com/library/notes/vite-cli/. License: CC-BY-4.0.

@misc{iil_note_tp8mxcbp,
  author = {{iinventedlight}},
  title = {{The Vite CLI starts the dev server and aliases vite dev and vite serve}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-11},
  url = {https://iinventedlight.com/library/notes/vite-cli/},
  note = {Permanent ID iil:note:tp8mxcbp. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/vite-cli.md.