The fastest path is the Tauri CLI method — it installs both packages and wires up the Rust side automatically. Use the manual steps if you prefer explicit control over each dependency.
Using the Tauri CLI
Run one command to add both the Rust crate and the npm package at once:Manual installation
Add the Rust crate
Open
src-tauri/Cargo.toml and add the crate to your dependencies. Pin to an exact version in production to avoid unexpected breaking changes (the plugin is pre-1.0 software).src-tauri/Cargo.toml
Install the TypeScript package
Add The package requires
tauri-plugin-configurate-api to your frontend project:@tauri-apps/api v2 as a peer dependency, which is already present in any Tauri v2 project.Register the plugin in lib.rs
Open The plugin registers all IPC command handlers and sets up the file watcher, keyring access, and backup registry automatically.
src-tauri/src/lib.rs and call tauri_plugin_configurate::init() in the Tauri builder chain:src-tauri/src/lib.rs
Grant permissions
Tauri v2 requires you to explicitly grant permissions to any plugin command. Add the
If your app only needs a subset of operations, you can list individual permissions instead of
configurate:default permission set to your capability file:src-tauri/capabilities/default.json
configurate:default expands to the following individual permissions:| Permission | Operation |
|---|---|
configurate:allow-create | Create a new config file |
configurate:allow-load | Read a config file |
configurate:allow-save | Write or update a config file |
configurate:allow-patch | Partially update a config file |
configurate:allow-delete | Delete a config file |
configurate:allow-exists | Check whether a config exists |
configurate:allow-load-all | Batch load |
configurate:allow-save-all | Batch save |
configurate:allow-patch-all | Batch patch |
configurate:allow-unlock | Inline keyring decryption |
configurate:allow-watch-file | Watch a config file for external changes |
configurate:allow-unwatch-file | Stop watching a config file |
configurate:allow-list-configs | List config files in the storage directory |
configurate:allow-reset | Reset a config to default values |
configurate:allow-export-config | Export config data to a string |
configurate:allow-import-config | Import config data from a string |
configurate:default. See Permissions overview for guidance.Verify the installation
After completing setup, add a quick smoke test to confirm the plugin is wired up correctly. If the Rust plugin is not registered or permissions are missing, theinvoke call will throw an error with a descriptive message.
Runtime requirements
| Requirement | Minimum version |
|---|---|
| Tauri | 2.10.3 |
| Rust | 1.77.2 |
@tauri-apps/api | 2.0.0 |
Next steps
Quickstart
Write and read your first typed config with a copy-paste example
Core concepts: Providers
Choose between JSON, YAML, TOML, Binary, and SQLite backends