mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 09:15:24 +02:00
rustup-{install,run,which,help,man}: add page (#10661)
This commit is contained in:
parent
1700d8a30e
commit
6d01f29bbd
5 changed files with 55 additions and 0 deletions
12
pages/common/rustup-help.md
Normal file
12
pages/common/rustup-help.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# rustup help
|
||||
|
||||
> Display help on `rustup` and its subcommands.
|
||||
> More information: <https://rust-lang.github.io/rustup>.
|
||||
|
||||
- Display general help:
|
||||
|
||||
`rustup help`
|
||||
|
||||
- Display help for a subcommand:
|
||||
|
||||
`rustup help {{subcommand}}`
|
9
pages/common/rustup-install.md
Normal file
9
pages/common/rustup-install.md
Normal file
|
@ -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: <https://rust-lang.github.io/rustup>.
|
||||
|
||||
- Install or update a specific toolchain (see `rustup help toolchain` for more information):
|
||||
|
||||
`rustup install {{toolchain}}`
|
12
pages/common/rustup-man.md
Normal file
12
pages/common/rustup-man.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# rustup man
|
||||
|
||||
> View the man page for a given command managed by `rustup`.
|
||||
> More information: <https://rust-lang.github.io/rustup>.
|
||||
|
||||
- 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}}`
|
9
pages/common/rustup-run.md
Normal file
9
pages/common/rustup-run.md
Normal file
|
@ -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: <https://rust-lang.github.io/rustup>.
|
||||
|
||||
- Run a command using a given Rust toolchain (see `rustup help toolchain` for more information):
|
||||
|
||||
`rustup run {{toolchain}} {{command}}`
|
13
pages/common/rustup-which.md
Normal file
13
pages/common/rustup-which.md
Normal file
|
@ -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: <https://rust-lang.github.io/rustup>.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue