Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
mobile-schema.json -- mobile platform configuration
remote-schema.json -- remote URL capabilities
Critical Warnings
NEVER omit the identifier field -- it is the ONLY required field. It MUST be unique reverse-domain notation (com.example.myapp). Using a non-unique identifier causes conflicts with other apps on the system.
NEVER use build.devUrl without build.beforeDevCommand -- the dev server will not start automatically, causing Tauri to connect to nothing.
NEVER omit build.beforeBuildCommand -- frontend assets will not be compiled before bundling, producing an app with missing or stale UI.
NEVER set app.security.csp to null in production -- this disables all Content Security Policy restrictions, leaving the app vulnerable to XSS attacks.
NEVER set app.security.dangerousDisableAssetCspModification to true unless you fully understand CSP nonce injection.
NEVER edit files in gen/schemas/ -- they are auto-generated and will be overwritten on the next build.
Build Section
The build section controls how the frontend is compiled and served during development and production.
Property
Type
Default
Description
devUrl
string | null
null
Dev server URL (e.g., http://localhost:5173)
frontendDist
string | array
--
Path to compiled frontend assets (e.g., ../dist)
beforeDevCommand
string | object
--
Shell command before tauri dev
beforeBuildCommand
string | object
--
Shell command before tauri build
beforeBundleCommand
string | object
--
Shell command before the bundling phase
features
string[] | null
null
Cargo feature flags to enable
additionalWatchFolders
string[]
[]
Extra paths to watch during tauri dev
removeUnusedCommands
boolean
false
Remove unused commands during build based on ACL config
Command Object Form
beforeDevCommand, beforeBuildCommand, and beforeBundleCommand support an object form:
{"beforeDevCommand":{"script":"npm run dev","cwd":"../frontend","wait":false}}
Property
Type
Description
script
string
The shell command to run
cwd
string
Working directory (relative to project root)
wait
boolean
Wait for the command to finish before continuing
Build Rules
ALWAYS pair devUrl with beforeDevCommand -- the dev server must be running before Tauri connects
ALWAYS set frontendDist to the output directory of your frontend build tool
ALWAYS set beforeBuildCommand to compile frontend assets for production
frontendDist is relative to src-tauri/, so ../dist points to project-root/dist
App Section
The app section configures runtime behavior including windows, security, and platform-specific features.
Plugin configuration keys match the plugin name without the tauri-plugin- prefix.
Minimal Viable Config
The absolute minimum tauri.conf.json that works:
{"identifier":"com.example.myapp","build":{"devUrl":"http://localhost:5173","frontendDist":"../dist","beforeDevCommand":"npm run dev","beforeBuildCommand":"npm run build"},"app":{"windows":[{"title":"My App","width":800,"height":600}]},"bundle":{"active":true,"icon":["icons/32x32.png","icons/128x128.png","icons/128x128@2x.png","icons/icon.icns","icons/icon.ico"]}}
Reference Links
references/methods.md -- Complete tauri.conf.json schema reference with all properties