All apps/Vite

Vite

vite

Native ESM-powered web dev build tool.

Runs as vite|macOS, Linux, Windows|vite.dev

Command form

ai-draft · 3 tasks · 8 fields

Build or preview a Vite project. The dev server (bare vite) and dependency optimizer are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui vite

vite build

Build for production

Bundle the project for production.

Build for productionExample values, fixed in this page — nothing here reaches a terminal
Basic
Project root
directory
Output directory
directory
Sourcemaps
--sourcemap
TasksEach one presets the form for one job
Build
rootout_dirsourcemap
Build in watch mode
rootout_dirwatch
ParametersOnly these flags are editable in the form
Project root
path · positional 0
Output directory
path
--outDir
Sourcemaps
boolean
--sourcemap
Rebuild on change
boolean
--watch-w
Force empty output directory
boolean
--emptyOutDir

vite preview

Preview production build

Serve the built output locally.

Preview production buildExample values, fixed in this page — nothing here reaches a terminal
Basic
Project root
directory
Port
integer
Exit if port is in use
--strictPort
TasksEach one presets the form for one job
Preview
rootportstrict_port
ParametersOnly these flags are editable in the form
Project root
path · positional 0
Port
integer
--port
Exit if port is in use
boolean
--strictPort
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed vite against its version. A form that does not match your version is not offered.