Skip to content

Scaffolding Your First Vite PWA Project New

Compatibility Note

Vite requires Node.js version 18+. 20+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.

bash
$ pnpm create @vite-pwa/pwa
bash
$ yarn create @vite-pwa/pwa
bash
$ npm create @vite-pwa/pwa@latest
bash
$ bun create @vite-pwa/pwa

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 PWA + Vue project, run:

bash
# pnpm
pnpm create @vite-pwa/pwa my-vue-app --template vue

# yarn
yarn create @vite-pwa/pwa my-vue-app --template vue

# npm 7+, extra double-dash is needed:
npm create @vite-pwa/pwa@latest my-vue-app -- --template vue

# bun
bun create @vite-pwa/pwa my-vue-app --template vue

See create-pwa for more details on each supported template: vanilla, vanilla-ts, vue, vue-ts, react, react-ts, preact, preact-ts, lit, lit-ts, svelte, svelte-ts, solid, solid-ts (templates can be found inside the templates folder).

Released under the MIT License.