docs: add installation page

This commit is contained in:
YuKun Liu committed 2022-02-20 11:28:22 +08:00
1 parent e039c5b001
commit 6ca0a0a4f9
2 files changed
+25

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
# Summary # Summary
- [Introduction](./introduction.md) - [Introduction](./introduction.md)
- [Installation](./installation.md)
+24
View File
@@ -0,0 +1,24 @@
# Installation
There are multiple ways to install the Dioxus CLI tool. Choose any one of the methods below that best suit your needs.
## Install from latest master version
We suggest you use `github master` version to install it now.
We have not yet released the latest version to `crates.io`
```
cargo install --git https://github.com/Dioxuslabs/cli
```
This will automatically download `Dioxus-CLI` source from github master branch,
and install it in Cargo's global binary directory (`~/.cargo/bin/` by default).
## Install from `crates.io` version
```
cargo install dioxus-cli
```
Make sure to add the Cargo bin directory to your `PATH`.