configuring-tauri-permissions

Configures Tauri v2 permissions, capabilities, scopes, and allow/deny lists for desktop applications.

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/dt418/better-shot-x --skill configuring-tauri-permissions-dt418
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: configuring-tauri-permissions
Source: https://github.com/dt418/better-shot-x/tree/main/.agents/skills/configuring-tauri-permissions
Command: npx skills add https://github.com/dt418/better-shot-x --skill configuring-tauri-permissions-dt418

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Tauri v2 enforces a strict permission system where frontend code cannot access backend commands without explicit grants, and misconfigured capabilities cause confusing "not allowed" errors. This Skill guides you through defining permissions, scopes, and capabilities correctly so your app stays secure without breaking functionality. ## Core Features & Use Cases - Capability Configuration: Create JSON or TOML capability files that link permissions to specific windows, platforms, and remote URLs. - Scoped Allow/Deny Rules: Restrict filesystem, HTTP, and shell access using scope variables like $APPDATA and glob patterns, with deny rules taking precedence. - Custom & Plugin Permissions: Define custom permission sets in TOML, use auto-generated command permissions, and apply plugin defaults like fs:default or shell:allow-execute. - Use Case: You need your Tauri app to read and write files only inside its own data directory while blocking access to sensitive paths like ~/.ssh. This Skill shows you the exact capability JSON with scoped allow and deny entries. ## Quick Start Ask the assistant to configure Tauri permissions so the main window can read and write text files only within the app's data directory.

Frequently Asked Questions about configuring-tauri-permissions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Tauri v2 permissions for filesystem access?

Create a capability file in src-tauri/capabilities/ that lists fs plugin permissions such as fs:allow-read-text-file, and add scoped entries with allow paths like $APPDATA/*. Reference the capability in tauri.conf.json under app.security.capabilities.

What is the difference between Tauri permissions and capabilities?

Permissions define access to specific commands, while capabilities link those permissions to windows or webviews. A permission has no effect until it is included in a capability that targets a window.

How do allow and deny scopes work in Tauri?

Allow scopes whitelist paths or URLs using variables like $HOME and glob patterns, while deny scopes blacklist them. Deny rules always take precedence over allow rules, so you can permit $HOME/** but block $HOME/.ssh/**.

Why does Tauri say 'not allowed on this command'?

This error means the command's permission is missing from the capability applied to the calling window, or a deny scope blocks the target path. Verify the permission identifier, window targeting, and scope entries in your capability file.

Can Tauri capabilities target specific platforms or windows?

Yes, capability files support a platforms array (linux, macOS, windows, iOS, android) and a windows array listing window labels. Use "*" to target all windows or name specific ones like admin or settings.