diff --git a/pages/common/rustup-help.md b/pages/common/rustup-help.md new file mode 100644 index 000000000..0c2ff2457 --- /dev/null +++ b/pages/common/rustup-help.md @@ -0,0 +1,12 @@ +# rustup help + +> Display help on `rustup` and its subcommands. +> More information: . + +- Display general help: + +`rustup help` + +- Display help for a subcommand: + +`rustup help {{subcommand}}` diff --git a/pages/common/rustup-install.md b/pages/common/rustup-install.md new file mode 100644 index 000000000..1f7439972 --- /dev/null +++ b/pages/common/rustup-install.md @@ -0,0 +1,9 @@ +# rustup install + +> Install or update Rust toolchains. +> This command is an alias of `rustup update`, but can only install/update one toolchain at a time. +> More information: . + +- Install or update a specific toolchain (see `rustup help toolchain` for more information): + +`rustup install {{toolchain}}` diff --git a/pages/common/rustup-man.md b/pages/common/rustup-man.md new file mode 100644 index 000000000..02125a195 --- /dev/null +++ b/pages/common/rustup-man.md @@ -0,0 +1,12 @@ +# rustup man + +> View the man page for a given command managed by `rustup`. +> More information: . + +- View the man page for a given command from the default toolchain: + +`rustup man {{command}}` + +- View the man page for a given command from the specified toolchain: + +`rustup man --toolchain {{command}}` diff --git a/pages/common/rustup-run.md b/pages/common/rustup-run.md new file mode 100644 index 000000000..f63fb863c --- /dev/null +++ b/pages/common/rustup-run.md @@ -0,0 +1,9 @@ +# rustup run + +> Run a command with an environment configured for a given Rust toolchain. +> Note: all commands managed by `rustup` have a shorthand for this: for example, `cargo +nightly build` is equivalent to `rustup run nightly cargo build`. +> More information: . + +- Run a command using a given Rust toolchain (see `rustup help toolchain` for more information): + +`rustup run {{toolchain}} {{command}}` diff --git a/pages/common/rustup-which.md b/pages/common/rustup-which.md new file mode 100644 index 000000000..77ef6c1ce --- /dev/null +++ b/pages/common/rustup-which.md @@ -0,0 +1,13 @@ +# rustup which + +> Display which binary will be run for a given command managed by `rustup`. +> Like `which`, but searches a Rust toolchain instead of `$PATH`. +> More information: . + +- Display the path to the binary in the default toolchain: + +`rustup which {{command}}` + +- Display the path to the binary in the specified toolchain (see `rustup help toolchain` for more information): + +`rustup which --toolchain {{toolchain}} {{command}}`