$ npx create-vite-app <project-name>
$ cd <project-name>
$ npm install
$ npm run dev
If using Yarn:
$ yarn create vite-app <project-name>
$ cd <project-name>
$ yarn
$ yarn dev
Defaults to the Vue template, the other templates available are react
and preact
. To scaffold with alternative template:
$ npx create-vite-app --template react my-react-project