瀏覽代碼

docs: add `installation` page

YuKun Liu 3 年之前
父節點
當前提交
6ca0a0a4f9
共有 2 個文件被更改,包括 25 次插入0 次删除
  1. 1 0
      docs/cli/src/SUMMARY.md
  2. 24 0
      docs/cli/src/installation.md

+ 1 - 0
docs/cli/src/SUMMARY.md

@@ -1,3 +1,4 @@
 # Summary
 
 - [Introduction](./introduction.md)
+- [Installation](./installation.md)

+ 24 - 0
docs/cli/src/installation.md

@@ -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`.