Docs

Tauri CLI

Build and run Tauri apps.

Project

npm create tauri-app@latest
Scaffold an app
npm run tauri dev
Run in dev mode
npm run tauri build
Build installers
npm run tauri info
Diagnose the env

Plugins & icons

npm run tauri add store
Add a plugin
npm run tauri icon ./icon.png
Generate app icons
cargo add tauri-plugin-sql
Add the Rust side

Frontend API

invoke("cmd", { arg })
Call a Rust command
listen("event", cb)
Subscribe to an event
emit("event", payload)
Emit an event