You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-a, --api Initializes a Tauri plugin with TypeScript API.
69
+
-h, --help Print help information
70
+
-V, --version Print version information
71
+
72
+
OPTIONS:
73
+
-d, --directory <directory> Set target directory for init
74
+
-n, --name <name> Name of your Tauri plugin
75
+
-t, --tauri-path <tauri-path> Path of the Tauri project to use (relative to the cwd)
43
76
```
44
77
45
78
## `dev`
46
79
47
80
<Commandname="dev" />
48
81
49
82
```
50
-
Description
51
-
Tauri dev.
52
-
Usage
53
-
$ tauri dev
54
-
Options
55
-
--help, -h Displays this message
83
+
Tauri dev.
84
+
85
+
USAGE:
86
+
cargo tauri dev [FLAGS] [OPTIONS] [--] [args]...
87
+
88
+
ARGS:
89
+
<args>... Args passed to the binary
90
+
91
+
FLAGS:
92
+
-e, --exit-on-panic Exit on panic
93
+
-h, --help Print help information
94
+
--release Run the code in release mode
95
+
-V, --version Print version information
96
+
97
+
OPTIONS:
98
+
-c, --config <config> config JSON to merge with tauri.conf.json
99
+
-f, --features <features>... list of cargo features to activate
100
+
-r, --runner <runner> binary to use to run the application
101
+
-t, --target <target>... target triple to build against
56
102
```
57
103
58
104
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.
@@ -83,13 +129,23 @@ If you're not using `build.beforeDevCommand`, make sure your `build.devPath` is
83
129
<Commandname="build" />
84
130
85
131
```
86
-
Description
87
-
Tauri build.
88
-
Usage
89
-
$ tauri build
90
-
Options
91
-
--help, -h Displays this message
92
-
--debug, -d Build a tauri app with debugging
132
+
Tauri build.
133
+
134
+
USAGE:
135
+
cargo tauri build [FLAGS] [OPTIONS]
136
+
137
+
FLAGS:
138
+
-d, --debug Builds with the debug flag
139
+
-h, --help Print help information
140
+
-v, --verbose Enables verbose logging
141
+
-V, --version Print version information
142
+
143
+
OPTIONS:
144
+
-b, --bundle <bundle>... list of bundles to package
145
+
-c, --config <config> config JSON to merge with tauri.conf.json
146
+
-f, --features <features>... list of cargo features to activate
147
+
-r, --runner <runner> binary to use to build the application
148
+
-t, --target <target>... target triple to build against
93
149
```
94
150
95
151
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.
@@ -133,4 +189,3 @@ This command will show the current version of Tauri.
133
189
## CLI usage
134
190
135
191
See more about the usage through this [complete guide](/docs/usage/development/integration).
0 commit comments