Skip to content

Commit

Permalink
commands
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Aug 9, 2023
1 parent 797b087 commit 25b086e
Showing 1 changed file with 72 additions and 38 deletions.
110 changes: 72 additions & 38 deletions src/content/docs/2/reference/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ For CLI commands related to developing plugins visit the [Develop a Tauri Plugin

## `build`

```sh
cargo tauri build
```
<CommandTabs
npm="npm tauri build"
yarn="yarn tauri build"
pnpm="pnpm tauri build"
cargo="cargo tauri build"
/>

```
Tauri build
Expand Down Expand Up @@ -84,9 +87,12 @@ Options:

## `dev`

```sh
cargo tauri dev
```
<CommandTabs
npm="npm tauri dev"
yarn="yarn tauri dev"
pnpm="pnpm tauri dev"
cargo="cargo tauri dev"
/>

```
Tauri dev
Expand Down Expand Up @@ -118,9 +124,12 @@ If you have entered a command to the `build.beforeDevCommand` property, this one

## `icon`

```sh
cargo tauri icon
```
<CommandTabs
npm="npm tauri icon"
yarn="yarn tauri icon"
pnpm="pnpm tauri icon"
cargo="cargo tauri icon"
/>

```
Generates various icons for all major platforms
Expand All @@ -141,9 +150,12 @@ Options:

## `info`

```sh
cargo tauri info
```
<CommandTabs
npm="npm tauri info"
yarn="yarn tauri info"
pnpm="pnpm tauri info"
cargo="cargo tauri info"
/>

```
Shows information about Tauri dependencies and project configuration
Expand All @@ -161,9 +173,12 @@ Options:

## `init`

```sh
cargo tauri init
```
<CommandTabs
npm="npm tauri init"
yarn="yarn tauri init"
pnpm="pnpm tauri init"
cargo="cargo tauri init"
/>

```
Initializes a Tauri project
Expand Down Expand Up @@ -203,9 +218,12 @@ Options:

## `plugin add`

```sh
cargo tauri plugin add
```
<CommandTabs
npm="npm tauri plugin add"
yarn="yarn tauri plugin add"
pnpm="pnpm tauri plugin add"
cargo="cargo tauri plugin add"
/>

```
Installs a plugin on the project
Expand All @@ -226,9 +244,12 @@ Options:

## `signer`

```sh
cargo tauri signer
```
<CommandTabs
npm="npm tauri signer"
yarn="yarn tauri signer"
pnpm="pnpm tauri signer"
cargo="cargo tauri signer"
/>

```
Tauri updater signer
Expand All @@ -248,9 +269,12 @@ Options:

## `completions`

```sh
cargo tauri completions
```
<CommandTabs
npm="npm tauri completions"
yarn="yarn tauri completions"
pnpm="pnpm tauri completions"
cargo="cargo tauri completions"
/>

```
Shell completions
Expand Down Expand Up @@ -401,9 +425,12 @@ Add-Content -Path $profile -Value '& "$PSScriptRoot\_tauri.ps1"'

## `android`

```sh
cargo tauri android
```
<CommandTabs
npm="npm tauri android"
yarn="yarn tauri android"
pnpm="pnpm tauri android"
cargo="cargo tauri android"
/>

```
Android commands
Expand All @@ -425,9 +452,12 @@ Options:

## `ios`

```sh
cargo tauri ios
```
<CommandTabs
npm="npm tauri ios"
yarn="yarn tauri ios"
pnpm="pnpm tauri ios"
cargo="cargo tauri ios"
/>

```
iOS commands
Expand All @@ -439,9 +469,12 @@ macos user needed here :))

## `migrate`

```sh
cargo tauri migrate
```
<CommandTabs
npm="npm tauri migrate"
yarn="yarn tauri migrate"
pnpm="pnpm tauri migrate"
cargo="cargo tauri migrate"
/>

```
Migrate from v1 to v2
Expand All @@ -456,11 +489,12 @@ Options:

## `help`

{/* TODO: Use tabs for commands */}

```sh
cargo tauri help
```
<CommandTabs
npm="npm tauri help"
yarn="yarn tauri help"
pnpm="pnpm tauri help"
cargo="cargo tauri help"
/>

```
Command line interface for building Tauri apps
Expand Down

0 comments on commit 25b086e

Please sign in to comment.