npm create vite@latest . --template react // here . indicates the current directory the app will be installed, in react # npm 6.x npm create vite@latest my-vue-app --template vue # npm 7+, extra double-dash is needed: npm create vite@latest my-vue-app -- --template vue # yarn yarn create vite my-vue-app --template vue # pnpm pnpm create vite my-vue-app --template vuenpm init vitenpm init vite #after the typing this command select from any template you want to use