English | 简体中文
With NPM:
npm create moji-tauri@latest
With Yarn:
yarn create moji-tauri@latest
With PNPM:
pnpm create moji-tauri@latest
With Bun:
bun create moji-tauri@latest
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 Nextjs + TypeScript tauri project, run:
# npm 7+, extra double-dash is needed:
npm create moji-tauri@latest my-tauri-app -- --template nextjs-ts
# yarn
yarn create moji-tauri@latest my-tauri-app --template nextjs-ts
# pnpm
pnpm create moji-tauri@latest my-tauri-app --template nextjs-ts
# Bun
bun create moji-tauri@latest my-tauri-app --template nextjs-ts
Currently supported template presets include:
nextjs-ts
svelte-ts
vue-ts
${{PROJECT}}
- project name, The default name is my-tauri-app