Scaffold new Vike app
Bati
We recommend using Bati for creating new Vike apps.
Apps scaffolded by Bati use
vike-react
/vike-vue
/vike-solid
.
Without vike-{react,vue,solid}
You can also create a new Vike app that doesn't use vike-react
/vike-vue
/vike-solid
.
The following command scaffolds a Vike app with a custom React/Vue integration instead.
🧠Custom integrations can be complex and we generally recommend usingvike-react
/vike-vue
/vike-solid
instead, see Vike extension VS custom integration.⚠️ We recommend using this advanced capability, which can be complex, only if you have a clear reason for avoiding potentially simpler options.
With npm:
With pnpm:
With Bun:
With Yarn:
Options:
--skip-git
: don't initialize a new Git repository
A prompt will let you choose between:
react
: React + JavaScriptreact-ts
: React + TypeScriptvue
: Vue + JavaScriptvue-ts
: Vue + TypeScript
See also:
- GitHub >
vikejs/vike
>boilerplates/
- GitHub >
vikejs/vike
>examples/react-minimal
- GitHub >
vikejs/vike
>examples/react-full
- GitHub >
vikejs/vike
>examples/vue-minimal
- GitHub >
vikejs/vike
>examples/vue-full