Skip to content

Latest commit

 

History

History
 
 

create-app

@vite/create-app

Scaffolding Your First Vite Project

Compatibility Note: Vite requires Node.js version >=12.0.0.

With NPM:

$ npm init @vitejs/app

With Yarn:

$ yarn create @vitejs/app

Then follow the prompts!

You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + Vue project, run:

npm init @vitejs/app my-vue-app --template vue

Currently supported template presets include:

  • vanilla
  • vue
  • vue-ts
  • react
  • react-ts
  • preact
  • preact-ts