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>
|
2023-06-29 00:39:03 +00:00
|
|
|
**dioxus-cli** (inspired by wasm-pack and webpack) is a tool for getting Dioxus projects up and running.
|
2023-01-19 15:18:36 +00:00
|
|
|
It handles all build, bundling, development and publishing to simplify web development.
|
2021-07-07 20:54:14 +00:00
|
|
|
|
2021-12-29 16:57:30 +00:00
|
|
|
|
2022-11-30 21:51:23 +00:00
|
|
|
## Installation
|
2022-01-09 05:23:58 +00:00
|
|
|
|
2022-11-30 21:51:23 +00:00
|
|
|
### Install stable version
|
2022-10-02 06:28:25 +00:00
|
|
|
```
|
|
|
|
cargo install dioxus-cli
|
|
|
|
```
|
2022-11-30 21:51:23 +00:00
|
|
|
### Install from git repository
|
2022-10-02 06:28:25 +00:00
|
|
|
```
|
2023-06-29 00:39:03 +00:00
|
|
|
cargo install --git https://github.com/DioxusLabs/dioxus dioxus-cli
|
2022-10-02 06:28:25 +00:00
|
|
|
```
|
2022-11-30 21:51:23 +00:00
|
|
|
### Install from local folder
|
2022-10-02 06:28:25 +00:00
|
|
|
```
|
|
|
|
cargo install --path . --debug
|
2022-01-09 05:23:58 +00:00
|
|
|
```
|
|
|
|
|
2022-02-05 01:11:44 +00:00
|
|
|
|
2023-06-29 00:39:03 +00:00
|
|
|
## Get Started
|
2022-02-05 01:11:44 +00:00
|
|
|
|
2022-11-30 21:51:23 +00:00
|
|
|
Use `dioxus create project-name` to initialize a new Dioxus project. <br>
|
2022-10-02 06:28:25 +00:00
|
|
|
|
|
|
|
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
|
|
|
```
|
2022-11-30 21:51:23 +00:00
|
|
|
|
|
|
|
## Dioxus Config File
|
|
|
|
|
2022-12-01 17:17:03 +00:00
|
|
|
Dioxus CLI will use `Dioxus.toml` file to Identify some project info and switch some cli feature.
|
|
|
|
|
2023-06-29 00:39:03 +00:00
|
|
|
You can get more configure information from [Dioxus CLI Document](https://dioxuslabs.com/cli/configure.html).
|