Create a Vite Project
Tip: Replace my-project with your project name. You'll be prompted to choose a framework and variant.
Create a new Vite project (interactive)
$npm create vite@latest my-project
Create in current directory
$npm create vite@latest .
Create with React + JavaScript template
$npm create vite@latest my-project -- --template react
Create with React + TypeScript template
$npm create vite@latest my-project -- --template react-ts
Create with Vanilla JavaScript template
$npm create vite@latest my-project -- --template vanilla

Install & Run
Navigate into the project folder
$cd my-project
Install dependencies
$npm install
Start the dev server
$npm run dev
Build for production
$npm run build
Preview the production build locally
$npm run preview
Expose dev server on local network (Termux/mobile)
$npm run dev -- --host