tauri-apps/tauri
Environment variables
The CLI documents every variable it reads in crates/tauri-cli/ENVIRONMENT_VARIABLES.md. This page is a navigational summary; the canonical list is the file in the repo.
CLI
| Variable | Effect |
|---|---|
TAURI_CLI_VERBOSITY |
Persists verbosity level across CLI subprocesses (xcode-script, android-studio-script). |
TAURI_CLI_NO_DEV_SERVER_WAIT |
Skip waiting for the frontend dev server to come up in dev. |
TAURI_CLI_PORT |
Pin the CLI's network listener port for IPC with subprocesses. |
TAURI_CLI_CONFIG_DEPTH |
Limit how far the CLI walks for a config when resolving paths. |
TAURI_BUNDLER_TOOLS_GITHUB_MIRROR |
Mirror used for downloading bundling tools (NSIS, etc.). |
TAURI_SIGNING_PRIVATE_KEY |
Path or value of the updater signing key. |
TAURI_SIGNING_PRIVATE_KEY_PASSWORD |
Password for the signing key. |
TAURI_BUNDLER_NSIS_* |
NSIS-specific overrides (template path, custom plugin dirs). |
TAURI_BUNDLER_WIX_* |
WiX-specific overrides. |
APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID, APPLE_API_KEY*, APPLE_CERTIFICATE* |
macOS notarization and codesigning. |
ANDROID_HOME, NDK_HOME, ANDROID_NDK_HOME |
Android toolchain discovery used by crates/tauri-cli/src/mobile/android/. |
The full list with up-to-date descriptions: crates/tauri-cli/ENVIRONMENT_VARIABLES.md.
Runtime
The runtime crate reads:
TAURI_DEV_HOST— whendevmode is forwarding network traffic to the frontend dev server (mobile testing scenarios).WEBKIT_DISABLE_DMABUF_RENDERER,WEBKIT_DISABLE_COMPOSITING_MODE— passed through to the WebKitGTK process on Linux as a workaround for known driver issues.
Tauri does not invent OS-level env vars beyond the TAURI_* prefix. Other vars (RUST_LOG, WEBKIT_*, XDG_DATA_HOME, …) come from the underlying ecosystems and behave normally.
Logging
RUST_LOG controls the log and tracing filters when those are wired up. The CLI's structured output is enabled by default (no env var needed) and respects --verbose.
For tracing-instrumented runtime logging, enable the tracing Cargo feature on tauri and configure tracing-subscriber in your app's main (the runtime does not install a subscriber for you).
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.