cargo install dioxus-cli --locked
If you get an OpenSSL error on installation, ensure the dependencies listed here are installed.
To get the latest bug fixes and features, you can install the development version from git.However, this is not fully tested.That means you're probably going to have more bugs despite having the latest bug fixes.
cargo install --git https://github.com/DioxusLabs/dioxus dioxus-cli
This will download the CLI from the master branch,and install it in Cargo's global binary directory (~/.cargo/bin/ by default).
dx --help for a list of all the available commands.Furthermore, you can run dx <command> --help to get help with a specific command.