2021-07-07 20:54:14 +00:00
< div align = "center" >
2022-07-09 14:17:32 +00:00
< h1 > 📦✨ Dioxus CLI < / h1 >
2022-10-02 06:28:25 +00:00
< p > < strong > Tooling to supercharge Dioxus projects< / strong > < / p >
2021-07-07 20:54:14 +00:00
< / div >
2022-10-02 06:28:25 +00:00
`dioxus-cli` (inspired by wasm-pack and webpack) is a tool for getting Dioxus projects up and running. It handles all of the build, bundling, development and publishing to simplify web development.
2021-12-29 16:57:30 +00:00
2022-10-02 06:28:25 +00:00
# Installation
2022-01-09 05:23:58 +00:00
2022-10-02 06:28:25 +00:00
## Stable
```
cargo install dioxus-cli
```
## Latest
```
cargo install --git https://github.com/DioxusLabs/cli
```
## Developing
```
cargo install --path . --debug
2022-01-09 05:23:58 +00:00
```
2022-10-02 06:28:25 +00:00
Now that `dioxus` is in the path, use `dioxus --help` to see the help information.
2022-02-05 01:11:44 +00:00
```
dioxus 0.1.2
2022-10-02 06:28:25 +00:00
Build, Bundle & Ship Dioxus Apps
2022-02-05 01:11:44 +00:00
USAGE:
2022-02-18 01:50:26 +00:00
dioxus [FLAGS] < SUBCOMMAND >
2022-02-05 01:11:44 +00:00
FLAGS:
-h, --help Prints help information
-v Enable verbose logging
-V, --version Prints version information
SUBCOMMANDS:
build Build the Rust WASM app and all of its assets
clean Clean output artifacts
config Dioxus config file controls
create Init a new project for Dioxus
help Prints this message or the help of the given subcommand(s)
serve Build, watch & serve the Rust WASM app and all of its assets
translate Translate some source file into Dioxus code
```
## Get Started
2022-10-02 06:28:25 +00:00
Use `dioxus create project_name` to initialize a new Dioxus project. < br >
It will be cloned from the [dioxus-template ](https://github.com/DioxusLabs/dioxus-template ) repository.
< br >
2022-02-05 01:11:44 +00:00
2022-10-02 06:28:25 +00:00
Alternatively, you can specify the template path:
2022-02-05 01:11:44 +00:00
```
dioxus create hello --template gh:dioxuslabs/dioxus-template
2022-02-18 01:50:26 +00:00
```