Interfaz de Línea de Comandos
La interfaz de línea de comandos (CLI) de Tauri es la forma de interactuar con Tauri a lo largo del ciclo de vida del desarrollo.
Puedes agregar la CLI de Tauri a tu proyecto actual utilizando tu gestor de paquetes de preferencia:
npm install --save-dev @tauri-apps/cli@latestyarn add -D @tauri-apps/cli@latestpnpm add -D @tauri-apps/cli@latestdeno add -D npm:@tauri-apps/cli@latestcargo install tauri-cli --version "^2.0.0" --lockedLista de Comandos
Sección titulada “Lista de Comandos”| Comando | Descripción |
|---|---|
init |
Inicializa un proyecto de Tauri en un directorio existente |
dev |
Ejecuta tu aplicación en modo de desarrollo |
build |
Construye tu aplicación en modo de producción y genera paquetes e instaladores |
bundle |
Genera paquetes e instaladores para tu aplicación (ya construida por tauri build) |
android |
Comandos de Android |
android init |
Inicializa el objetivo de Android en el proyecto |
android dev |
Ejecuta tu aplicación en modo de desarrollo en Android |
android build |
Construye tu aplicación en modo de producción para Android y genera APKs y AABs |
android run |
Ejecuta tu aplicación en modo de producción en Android |
ios |
Comandos de iOS |
ios init |
Inicializa el objetivo de iOS en el proyecto |
ios dev |
Ejecuta tu aplicación en modo de desarrollo en iOS |
ios build |
Construye tu aplicación en modo de producción para iOS y genera IPAs |
ios run |
Ejecuta tu aplicación en modo de producción en iOS |
migrate |
Migra de v1 a v2 |
info |
Muestra una lista concisa de información sobre el entorno, Rust, Node.js y sus versiones, así como algunas configuraciones relevantes del proyecto |
add |
Agrega un plugin de Tauri al proyecto |
remove |
Elimina un plugin de Tauri del proyecto |
plugin |
Gestiona o crea plugins de Tauri |
plugin new |
Inicializa un nuevo proyecto de plugin de Tauri |
plugin init |
Inicializa un proyecto de plugin de Tauri en un directorio existente |
plugin android |
Gestiona el proyecto de Android para un plugin de Tauri |
plugin ios |
Gestiona el proyecto de iOS para un plugin de Tauri |
plugin android init |
Inicializa el proyecto de Android para un plugin existente de Tauri |
plugin ios init |
Inicializa el proyecto de iOS para un plugin existente de Tauri |
icon |
Genera varios iconos para todas las plataformas principales |
signer |
Genera claves de firma para el actualizador de Tauri o firma archivos |
signer sign |
Firma un archivo |
signer generate |
Genera una nueva clave de firma para firmar archivos |
completions |
Genera autocompletados de shell para la CLI de Tauri en Bash, Zsh, PowerShell o Fish |
permission |
Gestiona o crea permisos para tu aplicación o plugin |
permission new |
Crea un nuevo archivo de permisos |
permission add |
Agrega un permiso a las capacidades |
permission rm |
Elimina un archivo de permisos y su referencia de cualquier capacidad |
permission ls |
Lista los permisos disponibles para tu aplicación |
capability |
Gestiona o crea capacidades para tu aplicación |
capability new |
Crea un nuevo archivo de permisos |
inspect |
Inspecciona los valores utilizados por Tauri |
inspect wix-upgrade-code |
Imprime el Upgrade Code por defecto utilizado por el instalador MSI derivado de productName |
npm run tauri inityarn tauri initpnpm tauri initdeno task tauri initbun tauri initcargo tauri initInitialize a Tauri project in an existing directory
Usage: tauri init [OPTIONS]
Options: --ci Skip prompting for values [env: CI=true] -v, --verbose... Enables verbose logging -f, --force Force init to overwrite the src-tauri folder -l, --log Enables logging -d, --directory <DIRECTORY> Set target directory for init [default: /opt/build/repo/packages/cli-generator] -t, --tauri-path <TAURI_PATH> Path of the Tauri project to use (relative to the cwd) -A, --app-name <APP_NAME> Name of your Tauri application -W, --window-title <WINDOW_TITLE> Window title of your Tauri application -D, --frontend-dist <FRONTEND_DIST> Web assets location, relative to <project-dir>/src-tauri -P, --dev-url <DEV_URL> Url of your dev server --before-dev-command <BEFORE_DEV_COMMAND> A shell command to run before `tauri dev` kicks in --before-build-command <BEFORE_BUILD_COMMAND> A shell command to run before `tauri build` kicks in -h, --help Print help -V, --version Print versionnpm run tauri devyarn tauri devpnpm tauri devdeno task tauri devbun tauri devcargo tauri devRun your app in development mode with hot-reloading for the Rust code. It makes use of the `build.devUrl` property from your `tauri.conf.json` file. It also runs your `build.beforeDevCommand` which usually starts your frontend devServer.
Usage: tauri dev [OPTIONS] [ARGS]...
Arguments: [ARGS]... Command line arguments passed to the runner. Use `--` to explicitly mark the start of the arguments. Arguments after a second `--` are passed to the application e.g. `tauri dev -- [runnerArgs] -- [appArgs]`
Options: -r, --runner <RUNNER> Binary to use to run the application
-v, --verbose... Enables verbose logging
-t, --target <TARGET> Target triple to build against
-f, --features [<FEATURES>...] List of cargo features to activate
-e, --exit-on-panic Exit on panic
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
--release Run the code in release mode
--no-dev-server-wait Skip waiting for the frontend dev server to start before building the tauri application
[env: TAURI_CLI_NO_DEV_SERVER_WAIT=]
--no-watch Disable the file watcher
--additional-watch-folders <ADDITIONAL_WATCH_FOLDERS> Additional paths to watch for changes
--no-dev-server Disable the built-in dev server for static files
--port <PORT> Specify port for the built-in dev server for static files. Defaults to 1430
[env: TAURI_CLI_PORT=]
-h, --help Print help (see a summary with '-h')
-V, --version Print versionnpm run tauri buildyarn tauri buildpnpm tauri builddeno task tauri buildbun tauri buildcargo tauri buildBuild your app in release mode and generate bundles and installers. It makes use of the `build.frontendDist` property from your `tauri.conf.json` file. It also runs your `build.beforeBuildCommand` which usually builds your frontend into `build.frontendDist`. This will also run `build.beforeBundleCommand` before generating the bundles and installers of your app.
Usage: tauri build [OPTIONS] [ARGS]...
Arguments: [ARGS]... Command line arguments passed to the runner. Use `--` to explicitly mark the start of the arguments
Options: -r, --runner <RUNNER> Binary to use to build the application, defaults to `cargo`
-v, --verbose... Enables verbose logging
-d, --debug Builds with the debug flag
-t, --target <TARGET> Target triple to build against.
It must be one of the values outputted by `$rustc --print target-list` or `universal-apple-darwin` for an universal macOS application.
Note that compiling an universal macOS application requires both `aarch64-apple-darwin` and `x86_64-apple-darwin` targets to be installed.
-f, --features [<FEATURES>...] Space or comma separated list of features to activate
-b, --bundles [<BUNDLES>...] Space or comma separated list of bundles to package
[possible values: deb, rpm, appimage]
--no-bundle Skip the bundling step even if `bundle > active` is `true` in tauri config
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
--ci Skip prompting for values
[env: CI=true]
--skip-stapling Whether to wait for notarization to finish and `staple` the ticket onto the app.
Gatekeeper will look for stapled tickets to tell whether your app was notarized without reaching out to Apple's servers which is helpful in offline environments.
Enabling this option will also result in `tauri build` not waiting for notarization to finish which is helpful for the very first time your app is notarized as this can take multiple hours. On subsequent runs, it's recommended to disable this setting again.
--ignore-version-mismatches Do not error out if a version mismatch is detected on a Tauri package.
Only use this when you are sure the mismatch is incorrectly detected as version mismatched Tauri packages can lead to unknown behavior.
--no-sign Skip code signing when bundling the app
-h, --help Print help (see a summary with '-h')
-V, --version Print versionnpm run tauri bundleyarn tauri bundlepnpm tauri bundledeno task tauri bundlebun tauri bundlecargo tauri bundleGenerate bundles and installers for your app (already built by `tauri build`). This run `build.beforeBundleCommand` before generating the bundles and installers of your app.
Usage: tauri bundle [OPTIONS]
Options: -d, --debug Builds with the debug flag
-v, --verbose... Enables verbose logging
-b, --bundles [<BUNDLES>...] Space or comma separated list of bundles to package
[possible values: deb, rpm, appimage]
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
-f, --features [<FEATURES>...] Space or comma separated list of features, should be the same features passed to `tauri build` if any
-t, --target <TARGET> Target triple to build against.
It must be one of the values outputted by `$rustc --print target-list` or `universal-apple-darwin` for an universal macOS application.
Note that compiling an universal macOS application requires both `aarch64-apple-darwin` and `x86_64-apple-darwin` targets to be installed.
--ci Skip prompting for values
[env: CI=true]
--skip-stapling Whether to wait for notarization to finish and `staple` the ticket onto the app.
Gatekeeper will look for stapled tickets to tell whether your app was notarized without reaching out to Apple's servers which is helpful in offline environments.
Enabling this option will also result in `tauri build` not waiting for notarization to finish which is helpful for the very first time your app is notarized as this can take multiple hours. On subsequent runs, it's recommended to disable this setting again.
--no-sign Skip code signing during the build or bundling process.
Useful for local development and CI environments where signing certificates or environment variables are not available or not needed.
-h, --help Print help (see a summary with '-h')
-V, --version Print versionandroid
Sección titulada “android”npm run tauri androidyarn tauri androidpnpm tauri androiddeno task tauri androidbun tauri androidcargo tauri androidAndroid commands
Usage: tauri android [OPTIONS] <COMMAND>
Commands: init Initialize Android target in the project dev Run your app in development mode on Android build Build your app in release mode for Android and generate APKs and AABs run Run your app in production mode on Android help Print this message or the help of the given subcommand(s)
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionandroid init
Sección titulada “android init”npm run tauri android inityarn tauri android initpnpm tauri android initdeno task tauri android initbun tauri android initcargo tauri android initInitialize Android target in the project
Usage: tauri android init [OPTIONS]
Options: --ci Skip prompting for values
[env: CI=true]
-v, --verbose... Enables verbose logging
--skip-targets-install Skips installing rust toolchains via rustup
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
-h, --help Print help (see a summary with '-h')
-V, --version Print versionandroid dev
Sección titulada “android dev”npm run tauri android devyarn tauri android devpnpm tauri android devdeno task tauri android devbun tauri android devcargo tauri android devRun your app in development mode on Android with hot-reloading for the Rust code. It makes use of the `build.devUrl` property from your `tauri.conf.json` file. It also runs your `build.beforeDevCommand` which usually starts your frontend devServer.
Usage: tauri android dev [OPTIONS] [DEVICE] [-- <ARGS>...]
Arguments: [DEVICE] Runs on the given device name
[ARGS]... Command line arguments passed to the runner. Use `--` to explicitly mark the start of the arguments. e.g. `tauri android dev -- [runnerArgs]`
Options: -f, --features [<FEATURES>...] List of cargo features to activate
-v, --verbose... Enables verbose logging
-e, --exit-on-panic Exit on panic
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
--release Run the code in release mode
--no-dev-server-wait Skip waiting for the frontend dev server to start before building the tauri application
[env: TAURI_CLI_NO_DEV_SERVER_WAIT=]
--no-watch Disable the file watcher
--additional-watch-folders <ADDITIONAL_WATCH_FOLDERS> Additional paths to watch for changes
-o, --open Open Android Studio instead of trying to run on a connected device
--force-ip-prompt Force prompting for an IP to use to connect to the dev server on mobile
--host [<HOST>] Use the public network address for the development server. If an actual address it provided, it is used instead of prompting to pick one.
On Windows we use the public network address by default.
This option is particularly useful along the `--open` flag when you intend on running on a physical device.
This replaces the devUrl configuration value to match the public network address host, it is your responsibility to set up your development server to listen on this address by using 0.0.0.0 as host for instance.
When this is set or when running on an iOS device the CLI sets the `TAURI_DEV_HOST` environment variable so you can check this on your framework's configuration to expose the development server on the public network address.
[default: <none>]
--no-dev-server Disable the built-in dev server for static files
--port <PORT> Specify port for the built-in dev server for static files. Defaults to 1430
[env: TAURI_CLI_PORT=]
--root-certificate-path <ROOT_CERTIFICATE_PATH> Path to the certificate file used by your dev server. Required for mobile dev when using HTTPS
[env: TAURI_DEV_ROOT_CERTIFICATE_PATH=]
-h, --help Print help (see a summary with '-h')
-V, --version Print versionandroid build
Sección titulada “android build”npm run tauri android buildyarn tauri android buildpnpm tauri android builddeno task tauri android buildbun tauri android buildcargo tauri android buildBuild your app in release mode for Android and generate APKs and AABs. It makes use of the `build.frontendDist` property from your `tauri.conf.json` file. It also runs your `build.beforeBuildCommand` which usually builds your frontend into `build.frontendDist`.
Usage: tauri android build [OPTIONS] [-- <ARGS>...]
Arguments: [ARGS]... Command line arguments passed to the runner. Use `--` to explicitly mark the start of the arguments. e.g. `tauri android build -- [runnerArgs]`
Options: -d, --debug Builds with the debug flag
-v, --verbose... Enables verbose logging
-t, --target [<TARGETS>...] Which targets to build (all by default)
[possible values: aarch64, armv7, i686, x86_64]
-f, --features [<FEATURES>...] List of cargo features to activate
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
--split-per-abi Whether to split the APKs and AABs per ABIs
--apk Build APKs
--aab Build AABs
-o, --open Open Android Studio
--ci Skip prompting for values
[env: CI=true]
--ignore-version-mismatches Do not error out if a version mismatch is detected on a Tauri package.
Only use this when you are sure the mismatch is incorrectly detected as version mismatched Tauri packages can lead to unknown behavior.
-h, --help Print help (see a summary with '-h')
-V, --version Print versionandroid run
Sección titulada “android run”npm run tauri android runyarn tauri android runpnpm tauri android rundeno task tauri android runbun tauri android runcargo tauri android runRun your app in production mode on Android. It makes use of the `build.frontendDist` property from your `tauri.conf.json` file. It also runs your `build.beforeBuildCommand` which usually builds your frontend into `build.frontendDist`.
Usage: tauri android run [OPTIONS] [DEVICE] [-- <ARGS>...]
Arguments: [DEVICE] Runs on the given device name
[ARGS]... Command line arguments passed to the runner. Use `--` to explicitly mark the start of the arguments. e.g. `tauri android build -- [runnerArgs]`
Options: -r, --release Run the app in release mode
-v, --verbose... Enables verbose logging
-f, --features [<FEATURES>...] List of cargo features to activate
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
--no-watch Disable the file watcher
--additional-watch-folders <ADDITIONAL_WATCH_FOLDERS> Additional paths to watch for changes
-o, --open Open Android Studio
--ignore-version-mismatches Do not error out if a version mismatch is detected on a Tauri package.
Only use this when you are sure the mismatch is incorrectly detected as version mismatched Tauri packages can lead to unknown behavior.
-h, --help Print help (see a summary with '-h')
-V, --version Print versionTodos los comandos de iOS solo están disponibles en hosts macOS.
npm run tauri iosyarn tauri iospnpm tauri iosdeno task tauri iosbun tauri ioscargo tauri iosiOS commands
Usage: tauri ios [OPTIONS] <COMMAND>
Commands: init Initialize iOS target in the project dev Run your app in development mode on iOS build Build your app in release mode for iOS and generate IPAs run Run your app in production mode on iOS help Print this message or the help of the given subcommand(s)
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionios init
Sección titulada “ios init”Todos los comandos de iOS solo están disponibles en hosts macOS.
npm run tauri ios inityarn tauri ios initpnpm tauri ios initdeno task tauri ios initbun tauri ios initcargo tauri ios initInitialize iOS target in the project
Usage: tauri ios init [OPTIONS]
Options: --ci Skip prompting for values
[env: CI=]
-v, --verbose... Enables verbose logging
-r, --reinstall-deps Reinstall dependencies
--skip-targets-install Skips installing rust toolchains via rustup
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
-h, --help Print help (see a summary with '-h')
-V, --version Print versionios dev
Sección titulada “ios dev”Todos los comandos de iOS solo están disponibles en hosts macOS.
npm run tauri ios devyarn tauri ios devpnpm tauri ios devdeno task tauri ios devbun tauri ios devcargo tauri ios devRun your app in development mode on iOS with hot-reloading for the Rust code.It makes use of the `build.devUrl` property from your `tauri.conf.json` file.It also runs your `build.beforeDevCommand` which usually starts your frontend devServer.
When connected to a physical iOS device, the public network address must be used instead of `localhost`for the devUrl property. Tauri makes that change automatically, but your dev server might needa different configuration to listen on the public address. You can check the `TAURI_DEV_HOST`environment variable to determine whether the public network should be used or not.
Usage: tauri ios dev [OPTIONS] [DEVICE] [-- <ARGS>...]
Arguments: [DEVICE] Runs on the given device name
[ARGS]... Command line arguments passed to the runner. Use `--` to explicitly mark the start of the arguments. e.g. `tauri ios dev -- [runnerArgs]`
Options: -f, --features [<FEATURES>...] List of cargo features to activate
-v, --verbose... Enables verbose logging
-e, --exit-on-panic Exit on panic
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
--release Run the code in release mode
--no-dev-server-wait Skip waiting for the frontend dev server to start before building the tauri application
[env: TAURI_CLI_NO_DEV_SERVER_WAIT=]
--no-watch Disable the file watcher
--additional-watch-folders <ADDITIONAL_WATCH_FOLDERS> Additional paths to watch for changes
-o, --open Open Xcode instead of trying to run on a connected device
--force-ip-prompt Force prompting for an IP to use to connect to the dev server on mobile
--host [<HOST>] Use the public network address for the development server. If an actual address it provided, it is used instead of prompting to pick one.
This option is particularly useful along the `--open` flag when you intend on running on a physical device.
This replaces the devUrl configuration value to match the public network address host, it is your responsibility to set up your development server to listen on this address by using 0.0.0.0 as host for instance.
When this is set or when running on an iOS device the CLI sets the `TAURI_DEV_HOST` environment variable so you can check this on your framework's configuration to expose the development server on the public network address.
[default: <none>]
--no-dev-server Disable the built-in dev server for static files
--port <PORT> Specify port for the built-in dev server for static files. Defaults to 1430
[env: TAURI_CLI_PORT=]
--root-certificate-path <ROOT_CERTIFICATE_PATH> Path to the certificate file used by your dev server. Required for mobile dev when using HTTPS
[env: TAURI_DEV_ROOT_CERTIFICATE_PATH=]
-h, --help Print help (see a summary with '-h')
-V, --version Print versionios build
Sección titulada “ios build”Todos los comandos de iOS solo están disponibles en hosts macOS.
npm run tauri ios buildyarn tauri ios buildpnpm tauri ios builddeno task tauri ios buildbun tauri ios buildcargo tauri ios buildBuild your app in release mode for iOS and generate IPAs. It makes use of the `build.frontendDist` property from your `tauri.conf.json` file. It also runs your `build.beforeBuildCommand` which usually builds your frontend into `build.frontendDist`.
Usage: tauri ios build [OPTIONS] [-- <ARGS>...]
Arguments: [ARGS]... Command line arguments passed to the runner. Use `--` to explicitly mark the start of the arguments. e.g. `tauri ios build -- [runnerArgs]`
Options: -d, --debug Builds with the debug flag
-v, --verbose... Enables verbose logging
-t, --target [<TARGETS>...] Which targets to build
[default: aarch64] [possible values: aarch64, aarch64-sim, x86_64]
-f, --features [<FEATURES>...] List of cargo features to activate
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
--build-number <BUILD_NUMBER> Build number to append to the app version
-o, --open Open Xcode
--ci Skip prompting for values
[env: CI=]
--export-method <EXPORT_METHOD> Describes how Xcode should export the archive.
Use this to create a package ready for the App Store (app-store-connect option) or TestFlight (release-testing option).
[possible values: app-store-connect, release-testing, debugging]
--ignore-version-mismatches Do not error out if a version mismatch is detected on a Tauri package.
Only use this when you are sure the mismatch is incorrectly detected as version mismatched Tauri packages can lead to unknown behavior.
-h, --help Print help (see a summary with '-h')
-V, --version Print versionios run
Sección titulada “ios run”Todos los comandos de iOS solo están disponibles en hosts macOS.
npm run tauri ios runyarn tauri ios runpnpm tauri ios rundeno task tauri ios runbun tauri ios runcargo tauri ios runRun your app in production mode on iOS. It makes use of the `build.frontendDist` property from your `tauri.conf.json` file. It also runs your `build.beforeBuildCommand` which usually builds your frontend into `build.frontendDist`.
Usage: tauri ios run [OPTIONS] [DEVICE] [-- <ARGS>...]
Arguments: [DEVICE] Runs on the given device name
[ARGS]... Command line arguments passed to the runner. Use `--` to explicitly mark the start of the arguments. e.g. `tauri android build -- [runnerArgs]`
Options: -r, --release Run the app in release mode
-v, --verbose... Enables verbose logging
-f, --features [<FEATURES>...] List of cargo features to activate
-c, --config <CONFIG> JSON strings or paths to JSON, JSON5 or TOML files to merge with the default configuration file
Configurations are merged in the order they are provided, which means a particular value overwrites previous values when a config key-value pair conflicts.
Note that a platform-specific file is looked up and merged with the default file by default (tauri.macos.conf.json, tauri.linux.conf.json, tauri.windows.conf.json, tauri.android.conf.json and tauri.ios.conf.json) but you can use this for more specific use cases such as different build flavors.
--no-watch Disable the file watcher
--additional-watch-folders <ADDITIONAL_WATCH_FOLDERS> Additional paths to watch for changes
-o, --open Open Xcode
--ignore-version-mismatches Do not error out if a version mismatch is detected on a Tauri package.
Only use this when you are sure the mismatch is incorrectly detected as version mismatched Tauri packages can lead to unknown behavior.
-h, --help Print help (see a summary with '-h')
-V, --version Print versionmigrate
Sección titulada “migrate”npm run tauri migrateyarn tauri migratepnpm tauri migratedeno task tauri migratebun tauri migratecargo tauri migrateMigrate from v1 to v2
Usage: tauri migrate [OPTIONS]
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionnpm run tauri infoyarn tauri infopnpm tauri infodeno task tauri infobun tauri infocargo tauri infoShow a concise list of information about the environment, Rust, Node.js and their versions as well as a few relevant project configurations
Usage: tauri info [OPTIONS]
Options: --interactive Interactive mode to apply automatic fixes -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionnpm run tauri addyarn tauri addpnpm tauri adddeno task tauri addbun tauri addcargo tauri addAdd a tauri plugin to the project
Usage: tauri add [OPTIONS] <PLUGIN>
Arguments: <PLUGIN> The plugin to add
Options: -t, --tag <TAG> Git tag to use -v, --verbose... Enables verbose logging -r, --rev <REV> Git rev to use -b, --branch <BRANCH> Git branch to use --no-fmt Don't format code with rustfmt -h, --help Print help -V, --version Print versionnpm run tauri removeyarn tauri removepnpm tauri removedeno task tauri removebun tauri removecargo tauri removeRemove a tauri plugin from the project
Usage: tauri remove [OPTIONS] <PLUGIN>
Arguments: <PLUGIN> The plugin to remove
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionnpm run tauri pluginyarn tauri pluginpnpm tauri plugindeno task tauri pluginbun tauri plugincargo tauri pluginManage or create Tauri plugins
Usage: tauri plugin [OPTIONS] <COMMAND>
Commands: new Initializes a new Tauri plugin project init Initialize a Tauri plugin project on an existing directory android Manage the Android project for a Tauri plugin ios Manage the iOS project for a Tauri plugin help Print this message or the help of the given subcommand(s)
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionplugin new
Sección titulada “plugin new”npm run tauri plugin newyarn tauri plugin newpnpm tauri plugin newdeno task tauri plugin newbun tauri plugin newcargo tauri plugin newInitializes a new Tauri plugin project
Usage: tauri plugin new [OPTIONS] <PLUGIN_NAME>
Arguments: <PLUGIN_NAME> Name of your Tauri plugin
Options: --no-api Initializes a Tauri plugin without the TypeScript API
-v, --verbose... Enables verbose logging
--no-example Initialize without an example project
-d, --directory <DIRECTORY> Set target directory for init
-a, --author <AUTHOR> Author name
--android Whether to initialize an Android project for the plugin
--ios Whether to initialize an iOS project for the plugin
--mobile Whether to initialize Android and iOS projects for the plugin
--ios-framework <IOS_FRAMEWORK> Type of framework to use for the iOS project
[default: spm]
Possible values: - spm: Swift Package Manager project - xcode: Xcode project
--github-workflows Generate github workflows
-t, --tauri-path <TAURI_PATH> Path of the Tauri project to use (relative to the cwd)
-h, --help Print help (see a summary with '-h')
-V, --version Print versionplugin init
Sección titulada “plugin init”npm run tauri plugin inityarn tauri plugin initpnpm tauri plugin initdeno task tauri plugin initbun tauri plugin initcargo tauri plugin initInitialize a Tauri plugin project on an existing directory
Usage: tauri plugin init [OPTIONS] [PLUGIN_NAME]
Arguments: [PLUGIN_NAME] Name of your Tauri plugin. If not specified, it will be inferred from the current directory
Options: --no-api Initializes a Tauri plugin without the TypeScript API
-v, --verbose... Enables verbose logging
--no-example Initialize without an example project
-d, --directory <DIRECTORY> Set target directory for init
[default: /opt/build/repo/packages/cli-generator]
-a, --author <AUTHOR> Author name
--android Whether to initialize an Android project for the plugin
--ios Whether to initialize an iOS project for the plugin
--mobile Whether to initialize Android and iOS projects for the plugin
--ios-framework <IOS_FRAMEWORK> Type of framework to use for the iOS project
[default: spm]
Possible values: - spm: Swift Package Manager project - xcode: Xcode project
--github-workflows Generate github workflows
-t, --tauri-path <TAURI_PATH> Path of the Tauri project to use (relative to the cwd)
-h, --help Print help (see a summary with '-h')
-V, --version Print versionplugin android
Sección titulada “plugin android”npm run tauri plugin androidyarn tauri plugin androidpnpm tauri plugin androiddeno task tauri plugin androidbun tauri plugin androidcargo tauri plugin androidManage the Android project for a Tauri plugin
Usage: tauri plugin android [OPTIONS] <COMMAND>
Commands: init Initializes the Android project for an existing Tauri plugin help Print this message or the help of the given subcommand(s)
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionplugin android init
Sección titulada “plugin android init”npm run tauri plugin android inityarn tauri plugin android initpnpm tauri plugin android initdeno task tauri plugin android initbun tauri plugin android initcargo tauri plugin android initInitializes the Android project for an existing Tauri plugin
Usage: tauri plugin android init [OPTIONS] [PLUGIN_NAME]
Arguments: [PLUGIN_NAME] Name of your Tauri plugin. Must match the current plugin's name. If not specified, it will be inferred from the current directory
Options: -o, --out-dir <OUT_DIR> The output directory [default: /opt/build/repo/packages/cli-generator] -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionplugin ios
Sección titulada “plugin ios”npm run tauri plugin iosyarn tauri plugin iospnpm tauri plugin iosdeno task tauri plugin iosbun tauri plugin ioscargo tauri plugin iosManage the iOS project for a Tauri plugin
Usage: tauri plugin ios [OPTIONS] <COMMAND>
Commands: init Initializes the iOS project for an existing Tauri plugin help Print this message or the help of the given subcommand(s)
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionplugin ios init
Sección titulada “plugin ios init”npm run tauri plugin ios inityarn tauri plugin ios initpnpm tauri plugin ios initdeno task tauri plugin ios initbun tauri plugin ios initcargo tauri plugin ios initInitializes the iOS project for an existing Tauri plugin
Usage: tauri plugin ios init [OPTIONS] [PLUGIN_NAME]
Arguments: [PLUGIN_NAME] Name of your Tauri plugin. Must match the current plugin's name. If not specified, it will be inferred from the current directory
Options: -o, --out-dir <OUT_DIR> The output directory
[default: /opt/build/repo/packages/cli-generator]
-v, --verbose... Enables verbose logging
--ios-framework <IOS_FRAMEWORK> Type of framework to use for the iOS project
[default: spm]
Possible values: - spm: Swift Package Manager project - xcode: Xcode project
-h, --help Print help (see a summary with '-h')
-V, --version Print versionnpm run tauri iconyarn tauri iconpnpm tauri icondeno task tauri iconbun tauri iconcargo tauri iconGenerate various icons for all major platforms
Usage: tauri icon [OPTIONS] [INPUT]
Arguments: [INPUT] Path to the source icon (squared PNG or SVG file with transparency) or a manifest file.
The manifest file is a JSON file with the following structure: { "default": "app-icon.png", "bg_color": "#fff", "android_bg": "app-icon-bg.png", "android_fg": "app-icon-fg.png", "android_fg_scale": 85, "android_monochrome": "app-icon-monochrome.png" }
All file paths defined in the manifest JSON are relative to the manifest file path.
Only the `default` manifest property is required.
The `bg_color` manifest value overwrites the `--ios-color` option if set.
[default: ./app-icon.png]
Options: -o, --output <OUTPUT> Output directory. Default: 'icons' directory next to the tauri.conf.json file
-v, --verbose... Enables verbose logging
-p, --png <PNG> Custom PNG icon sizes to generate. When set, the default icons are not generated
--ios-color <IOS_COLOR> The background color of the iOS icon - string as defined in the W3C's CSS Color Module Level 4 <https://www.w3.org/TR/css-color-4/>
[default: #fff]
-h, --help Print help (see a summary with '-h')
-V, --version Print versionnpm run tauri signeryarn tauri signerpnpm tauri signerdeno task tauri signerbun tauri signercargo tauri signerGenerate signing keys for Tauri updater or sign files
Usage: tauri signer [OPTIONS] <COMMAND>
Commands: sign Sign a file generate Generate a new signing key to sign files help Print this message or the help of the given subcommand(s)
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionsigner sign
Sección titulada “signer sign”npm run tauri signer signyarn tauri signer signpnpm tauri signer signdeno task tauri signer signbun tauri signer signcargo tauri signer signSign a file
Usage: tauri signer sign [OPTIONS] <FILE>
Arguments: <FILE> Sign the specified file
Options: -k, --private-key <PRIVATE_KEY> Load the private key from a string [env: TAURI_SIGNING_PRIVATE_KEY=] -v, --verbose... Enables verbose logging -f, --private-key-path <PRIVATE_KEY_PATH> Load the private key from a file [env: TAURI_SIGNING_PRIVATE_KEY_PATH=] -p, --password <PASSWORD> Set private key password when signing [env: TAURI_SIGNING_PRIVATE_KEY_PASSWORD=] -h, --help Print help -V, --version Print versionsigner generate
Sección titulada “signer generate”npm run tauri signer generateyarn tauri signer generatepnpm tauri signer generatedeno task tauri signer generatebun tauri signer generatecargo tauri signer generateGenerate a new signing key to sign files
Usage: tauri signer generate [OPTIONS]
Options: -p, --password <PASSWORD> Set private key password when signing -v, --verbose... Enables verbose logging -w, --write-keys <WRITE_KEYS> Write private key to a file -f, --force Overwrite private key even if it exists on the specified path --ci Skip prompting for values [env: CI=true] -h, --help Print help -V, --version Print versioncompletions
Sección titulada “completions”npm run tauri completionsyarn tauri completionspnpm tauri completionsdeno task tauri completionsbun tauri completionscargo tauri completionsGenerate Tauri CLI shell completions for Bash, Zsh, PowerShell or Fish
Usage: tauri completions [OPTIONS] --shell <SHELL>
Options: -s, --shell <SHELL> Shell to generate a completion script for. [possible values: bash, elvish, fish, powershell, zsh] -v, --verbose... Enables verbose logging -o, --output <OUTPUT> Output file for the shell completions. By default the completions are printed to stdout -h, --help Print help -V, --version Print versionpermission
Sección titulada “permission”npm run tauri permissionyarn tauri permissionpnpm tauri permissiondeno task tauri permissionbun tauri permissioncargo tauri permissionManage or create permissions for your app or plugin
Usage: tauri permission [OPTIONS] <COMMAND>
Commands: new Create a new permission file add Add a permission to capabilities rm Remove a permission file, and its reference from any capability ls List permissions available to your application help Print this message or the help of the given subcommand(s)
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionpermission new
Sección titulada “permission new”npm run tauri permission newyarn tauri permission newpnpm tauri permission newdeno task tauri permission newbun tauri permission newcargo tauri permission newCreate a new permission file
Usage: tauri permission new [OPTIONS] [IDENTIFIER]
Arguments: [IDENTIFIER] Permission identifier
Options: --description <DESCRIPTION> Permission description -v, --verbose... Enables verbose logging -a, --allow <ALLOW> List of commands to allow -d, --deny <DENY> List of commands to deny --format <FORMAT> Output file format [default: json] [possible values: json, toml] -o, --out <OUT> The output file -h, --help Print help -V, --version Print versionpermission add
Sección titulada “permission add”npm run tauri permission addyarn tauri permission addpnpm tauri permission adddeno task tauri permission addbun tauri permission addcargo tauri permission addAdd a permission to capabilities
Usage: tauri permission add [OPTIONS] <IDENTIFIER> [CAPABILITY]
Arguments: <IDENTIFIER> Permission to add [CAPABILITY] Capability to add the permission to
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versionpermission rm
Sección titulada “permission rm”npm run tauri permission rmyarn tauri permission rmpnpm tauri permission rmdeno task tauri permission rmbun tauri permission rmcargo tauri permission rmRemove a permission file, and its reference from any capability
Usage: tauri permission rm [OPTIONS] <IDENTIFIER>
Arguments: <IDENTIFIER> Permission to remove.
To remove all permissions for a given plugin, provide `<plugin-name>:*`
Options: -v, --verbose... Enables verbose logging
-h, --help Print help (see a summary with '-h')
-V, --version Print versionpermission ls
Sección titulada “permission ls”npm run tauri permission lsyarn tauri permission lspnpm tauri permission lsdeno task tauri permission lsbun tauri permission lscargo tauri permission lsList permissions available to your application
Usage: tauri permission ls [OPTIONS] [PLUGIN]
Arguments: [PLUGIN] Name of the plugin to list permissions
Options: -f, --filter <FILTER> Permission identifier filter -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versioncapability
Sección titulada “capability”npm run tauri capabilityyarn tauri capabilitypnpm tauri capabilitydeno task tauri capabilitybun tauri capabilitycargo tauri capabilityManage or create capabilities for your app
Usage: tauri capability [OPTIONS] <COMMAND>
Commands: new Create a new permission file help Print this message or the help of the given subcommand(s)
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versioncapability new
Sección titulada “capability new”npm run tauri capability newyarn tauri capability newpnpm tauri capability newdeno task tauri capability newbun tauri capability newcargo tauri capability newCreate a new permission file
Usage: tauri capability new [OPTIONS] [IDENTIFIER]
Arguments: [IDENTIFIER] Capability identifier
Options: --description <DESCRIPTION> Capability description -v, --verbose... Enables verbose logging --windows <WINDOWS> Capability windows --permission <PERMISSION> Capability permissions --format <FORMAT> Output file format [default: json] [possible values: json, toml] -o, --out <OUT> The output file -h, --help Print help -V, --version Print versioninspect
Sección titulada “inspect”npm run tauri inspectyarn tauri inspectpnpm tauri inspectdeno task tauri inspectbun tauri inspectcargo tauri inspectInspect values used by Tauri
Usage: tauri inspect [OPTIONS] <COMMAND>
Commands: wix-upgrade-code Print the default Upgrade Code used by MSI installer derived from productName help Print this message or the help of the given subcommand(s)
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print versioninspect wix-upgrade-code
Sección titulada “inspect wix-upgrade-code”npm run tauri inspect wix-upgrade-codeyarn tauri inspect wix-upgrade-codepnpm tauri inspect wix-upgrade-codedeno task tauri inspect wix-upgrade-codebun tauri inspect wix-upgrade-codecargo tauri inspect wix-upgrade-codePrint the default Upgrade Code used by MSI installer derived from productName
Usage: tauri inspect wix-upgrade-code [OPTIONS]
Options: -v, --verbose... Enables verbose logging -h, --help Print help -V, --version Print version© 2026 Colaboradores de Tauri. CC-BY / MIT