English | 简体中文
With NPM:
npm create moji-tauri@latestWith Yarn:
yarn create moji-tauri@latestWith PNPM:
pnpm create moji-tauri@latestWith Bun:
bun create moji-tauri@latestThen 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-tsCurrently supported template presets include:
nextjs-tssvelte-tsvue-ts
${{PROJECT}}- project name, The default name is my-tauri-app