Rapidly scaffold out a new tauri app project.
https://github.com/tauri-apps/create-tauri-app.git
To get started using create-tauri-app run one of the below commands in the folder you'd like to setup your project.
sh <(curl https://create.tauri.app/sh)
or
sh <(wget https://create.tauri.app/sh)
irm https://create.tauri.app/ps | iex
cargo install create-tauri-app --locked
cargo create-tauri-app
npm create tauri-app@latest
yarn create tauri-app
pnpm create tauri-app
deno run -A npm:create-tauri-app
bunx create-tauri-app
Follow along with the prompts to choose your project name, frontend language, package manager, and frontend framework, and frontend framework options if applicable.
? Project name (tauri-app) โบ
? Identifier (com.tauri-app.app) โบ
? Choose which language to use for your frontend โบ
Rust (cargo)
TypeScript / JavaScript (pnpm, yarn, npm, bun)
.NET (dotnet)
? Choose your package manager โบ
pnpm
yarn
npm
bun
? Choose your UI template โบ
Vanilla
Yew
Leptos
Sycamore
Options for TypeScript / JavaScript:
? Choose your UI template โบ
Vanilla
Vue
Svelte
React
Solid
Angular
Preact
? Choose your UI flavor โบ
TypeScript
JavaScript
Options for .NET:
? Choose your UI template โบ
Blazor (https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor/)
Once completed, the utility reports that the template has been created and displays how to run it using the configured package manager. If it detects missing decencies on your system, it prints a list of packages and prompts how to install them.
You can also directly specify the project name, package manager and the template you want to use via additional command line options. For example, to scaffold a Svelte project in a my-tauri-app directory, run:
# curl
sh <(curl https://create.tauri.app/sh) my-tauri-app --template svelte
# wget
sh <(wget https://create.tauri.app/sh) my-tauri-app --template svelte
# powershell
$env:CTA_ARGS="--template svelte";irm https://create.tauri.app/ps | iex
# cargo
cargo create-tauri-app my-tauri-app --template svelte
# npm 6.x
npm create tauri-app@latest my-tauri-app --template svelte
# npm 7+, extra double-dash is needed:
npm create tauri-app@latest my-tauri-app -- --template svelte
# yarn
yarn create tauri-app my-tauri-app --template svelte
# pnpm
pnpm create tauri-app my-tauri-app --template svelte
# deno
deno run -A npm:create-tauri-app --template svelte
# Bun
bunx create-tauri-app my-tauri-app --template svelte
Currently supported template presets include:
vanillavanilla-tsvuevue-tssveltesvelte-tsreactreact-tspreactpreact-tssolidsolid-tsangularyewleptossycamoreblazor. for the project name to scaffold in the current directory.
create-tauri-app is following Semantic Versioning 2.0.
Code: (c) 2022 - The Tauri Programme within The Commons Conservancy.
MIT or MIT/Apache 2.0 where applicable.
Logo: CC-BY-NC-ND