Prompt Buddy logoPrompt Buddy

vite · Vite Docs

Command Line Interface | Vite (main branch)

Explains how to interact with Vite via the command line, including running the development server, building for production, and previewing builds using specific flags and commands.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Command Line Interface | Vite (main branch)

Explains how to interact with Vite via the command line, including running the development server, building for production, and previewing builds using specific flags and commands.

When To Use

Use when you need to start a local development server, generate production-ready assets, or preview a local build using terminal commands.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/main-vite-command-line-interface-branch-workflow-guide.mdA guide detailing the usage, commands, and configuration options for the Vite command line interface.Questions about a guide detailing the usage, commands, and configuration options for the Vite command line interface.
examples/main-vite-command-line-interface-branch-vite-cli-usage-examples.textA collection of command line interface usage examples for the Vite build tool.Exact payloads, commands, or snippets shown in A collection of command line interface usage examples for the Vite build tool.
examples/main-vite-command-line-interface-branch-vite-cli-build-command-usage.textA text example demonstrating the syntax and usage of the vite build command with an optional root directory argument.Exact payloads, commands, or snippets shown in A text example demonstrating the syntax and usage of the vite build command with an optional root directory argument.
examples/main-vite-command-line-interface-branch-vite-cli-optimize-command-usage.textAn example demonstrating the usage of the vite optimize command with a root directory argument.Exact payloads, commands, or snippets shown in An example demonstrating the usage of the vite optimize command with a root directory argument.
examples/main-vite-command-line-interface-branch-vite-cli-preview-command-usage.textA text example demonstrating the usage of the vite preview command with an optional root directory argument.Exact payloads, commands, or snippets shown in A text example demonstrating the usage of the vite preview command with an optional root directory argument.

What This Skill Covers

  • Are you an LLM? You can read better optimized documentation at /guide/cli.md for this page in Markdown format
  • Main sections: Dev server ​, vite ​, Usage ​, Options ​, Build ​.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://main.vite.dev/guide/cli