๐Ÿ“ฆ tauri-apps / create-tauri-app

Rapidly scaffold out a new tauri app project.

โ˜… 1.5k stars โ‘‚ 145 forks ๐Ÿ‘ 1.5k watching โš–๏ธ Apache License 2.0
๐Ÿ“ฅ Clone https://github.com/tauri-apps/create-tauri-app.git
HTTPS git clone https://github.com/tauri-apps/create-tauri-app.git
SSH git clone git@github.com:tauri-apps/create-tauri-app.git
CLI gh repo clone tauri-apps/create-tauri-app
github-actions[bot] github-actions[bot] apply version updates (#931) 16c3d9f 13 days ago ๐Ÿ“ History
๐Ÿ“‚ dev View all commits โ†’
๐Ÿ“ .cargo
๐Ÿ“ .changes
๐Ÿ“ .github
๐Ÿ“ .scripts
๐Ÿ“ node
๐Ÿ“ src
๐Ÿ“ templates
๐Ÿ“ worker
๐Ÿ“„ .gitignore
๐Ÿ“„ .prettierignore
๐Ÿ“„ .prettierrc
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ CONTRIBUTING.md
๐Ÿ“„ LICENSE_APACHE-2.0
๐Ÿ“„ LICENSE_MIT
๐Ÿ“„ LICENSE.spdx
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ README.md
๐Ÿ“„ renovate.json
๐Ÿ“„ README.md
Rapidly scaffold out a new Tauri app project.

status Chat Server website https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg support changelog

Usage

To get started using create-tauri-app run one of the below commands in the folder you'd like to setup your project.

Bash:

sh <(curl https://create.tauri.app/sh)

or

sh <(wget https://create.tauri.app/sh)

Powershell:

irm https://create.tauri.app/ps | iex

Cargo:

cargo install create-tauri-app --locked
cargo create-tauri-app

NPM:

npm create tauri-app@latest

Yarn:

yarn create tauri-app

PNPM:

pnpm create tauri-app

Deno

deno run -A npm:create-tauri-app

Bun:

bunx create-tauri-app


Scaffold a new project (interactive)

Follow along with the prompts to choose your project name, frontend language, package manager, and frontend framework, and frontend framework options if applicable.

  • Choose a name and a bundle identifier (unique-id for your app):
? Project name (tauri-app) โ€บ
   ? Identifier (com.tauri-app.app) โ€บ
  • Select a flavor for your frontend. First the language:
? Choose which language to use for your frontend โ€บ
   Rust  (cargo)
   TypeScript / JavaScript  (pnpm, yarn, npm, bun)
   .NET  (dotnet)
  • Select a package manager (if there are multiple available):
Options for TypeScript / JavaScript:

? Choose your package manager โ€บ
   pnpm
   yarn
   npm
   bun

  • Select a UI Template and flavor (if there are multiple available):
Options for Rust:

? 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.

Scaffold a new project (non-interactive)

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:

  • vanilla
  • vanilla-ts
  • vue
  • vue-ts
  • svelte
  • svelte-ts
  • react
  • react-ts
  • preact
  • preact-ts
  • solid
  • solid-ts
  • angular
  • yew
  • leptos
  • sycamore
  • blazor
You can use . for the project name to scaffold in the current directory.

Semver

create-tauri-app is following Semantic Versioning 2.0.

Licenses

Code: (c) 2022 - The Tauri Programme within The Commons Conservancy.

MIT or MIT/Apache 2.0 where applicable.

Logo: CC-BY-NC-ND