Skip to content

Commit 03a9cd1

Browse files
wheird-leelucasfernoglzl
authored
add another way to install and use tauri CLI (tauri-apps#287)
Co-authored-by: Lucas Fernandes Nogueira <[email protected]> Co-authored-by: lzl <[email protected]>
1 parent 7f3b466 commit 03a9cd1

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

docs/en/usage/development/integration.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ Just follow the instructions and choose the web frontend framework you prefer. `
2626

2727
### 1. Add Tauri to Existing Project:
2828

29-
This will install Tauri CLI package as a dev dependency:
29+
The Tauri CLI tool helps you build your project, so install it at first.
30+
31+
You can install Tauri CLI [using `Node.js`](#Install-Tauri-CLI-package-as-a-dev-dependency:) or [using `Rust`](#Alternatively,-install-Tauri-CLI-as-a-cargo-subcommand:)
32+
33+
#### Install Tauri CLI package as a dev dependency:
3034

3135
```bash
3236
cd project-folder
@@ -56,6 +60,16 @@ If you decide to use Tauri as a local package with npm (not yarn), you will have
5660
}
5761
```
5862

63+
#### Alternatively, install Tauri CLI as a cargo subcommand:
64+
65+
This will install `tauri-cli` as a Cargo subcommand on the cargo binary folder (by default on `$HOME/.cargo/bin`):
66+
67+
```bash
68+
cargo install tauri-cli --version ^1.0.0-beta
69+
```
70+
71+
For more installation options, see [`cargo install`](https://doc.rust-lang.org/cargo/commands/cargo-install.html#description)
72+
5973
#### Install Tauri API Package as a Dependency (optional):
6074

6175
The `@tauri-apps/api` package is recommended for projects using ES modules or modern build tools such as Webpack or Vite. It is the most secure way to access the Tauri APIs.

src/theme/Command.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import TabItem from '@theme/TabItem'
77
const types = [
88
{ label: 'Yarn', value: 'yarn tauri ' },
99
{ label: 'npm', value: 'npm run tauri ' },
10+
{ label: 'cargo', value: 'cargo tauri ' },
1011
{ label: 'Global', value: 'tauri ' },
1112
]
1213

0 commit comments

Comments
 (0)