---
id: cli
title: CLI
---
import Command from '@theme/Command'
import Alert from '@theme/Alert'
## `info`
```
USAGE:
cargo-tauri info
OPTIONS:
-h, --help Print help information
-V, --version Print version information
```
It shows a concise list of information about the environment, Rust, Node.js and their versions as well as some relevant configurations.
This command is pretty helpful when you need to have a quick overview of your application. When requesting some help, it can be useful that you share this report with us.
## `init`
```
USAGE:
cargo-tauri init [OPTIONS]
OPTIONS:
-A, --app-name
Name of your Tauri application
--ci
Skip prompting for values
-d, --directory
Set target directory for init [default: /home/runner/work/tauri-docs/tauri-docs]
-D, --dist-dir
Web assets location, relative to /src-tauri
-f, --force
Force init to overwrite the src-tauri folder
-h, --help
Print help information
-l, --log
Enables logging
-P, --dev-path
Url of your dev server
-t, --tauri-path
Path of the Tauri project to use (relative to the cwd)
-V, --version
Print version information
-W, --window-title
Window title of your Tauri application
```
## `plugin init`
```
USAGE:
cargo-tauri plugin init [OPTIONS] --name
OPTIONS:
-a, --author Author name
--api Initializes a Tauri plugin with TypeScript API
-d, --directory Set target directory for init [default:
/home/runner/work/tauri-docs/tauri-docs]
-h, --help Print help information
-n, --name Name of your Tauri plugin
-t, --tauri-path Path of the Tauri project to use (relative to the cwd)
-V, --version Print version information
```
## `dev`
```
USAGE:
cargo-tauri dev [OPTIONS] [ARGS]...
ARGS:
... Command line arguments passed to the runner
OPTIONS:
-c, --config JSON string or path to JSON file to merge with tauri.conf.json
-e, --exit-on-panic Exit on panic
-f, --features List of cargo features to activate
-h, --help Print help information
-r, --runner Binary to use to run the application
--release Run the code in release mode
-t, --target Target triple to build against
-V, --version Print version information
```
This command will open the WebView in development mode. It makes use of the `build.devPath` property from your `src-tauri/tauri.conf.json` file.
If you have entered a command to the `build.beforeDevCommand` property, this one will be executed before the `dev` command.
See more about the configuration.
If you're not using `build.beforeDevCommand`, make sure your `build.devPath` is correct and, if using a development server, that it's started before using this command.
## `build`
```
USAGE:
cargo-tauri build [OPTIONS] [ARGS]...
ARGS:
... Command line arguments passed to the runner
OPTIONS:
-b, --bundles List of bundles to package
-c, --config JSON string or path to JSON file to merge with tauri.conf.json
-d, --debug Builds with the debug flag
-f, --features List of cargo features to activate
-h, --help Print help information
-r, --runner Binary to use to build the application, defaults to `cargo`
-t, --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
-v, --verbose Enables verbose logging
-V, --version Print version information
```
This command will bundle your application, either in production mode or debug mode if you used the `--debug` flag. It makes use of the `build.distDir` property from your `src-tauri/tauri.conf.json` file.
If you have entered a command to the `build.beforeBuildCommand` property, this one will be executed before the `build` command.
See more about the configuration.
## `version`
```
Description
Returns the current version of tauri
```
This command will show the current version of Tauri.
## CLI usage
See more about the usage through this [complete guide](/docs/development/development-cycle).