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 using vike-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:

npm create vike@latest

With pnpm:

pnpm create vike

With Bun:

bun create vike

With Yarn:

yarn create vike

Options:

  • --skip-git: don't initialize a new Git repository

A prompt will let you choose between:

  • react: React + JavaScript
  • react-ts: React + TypeScript
  • vue: Vue + JavaScript
  • vue-ts: Vue + TypeScript

See also:

See also