mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
rustup-init.sh: add page (#8259)
This commit is contained in:
parent
7fdfdc5d59
commit
367d020a44
1 changed files with 32 additions and 0 deletions
32
pages/common/rustup-init.sh.md
Normal file
32
pages/common/rustup-init.sh.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# rustup-init.sh
|
||||
|
||||
> Script to install `rustup` and the Rust toolchain.
|
||||
> More information: <https://forge.rust-lang.org/infra/other-installation-methods.html#rustup>.
|
||||
|
||||
- Download and run `rustup-init` to install `rustup` and the default Rust toolchain:
|
||||
|
||||
`curl https://sh.rustup.rs -sSf | sh -s`
|
||||
|
||||
- Download and run `rustup-init` and pass arguments to it:
|
||||
|
||||
`curl https://sh.rustup.rs -sSf | sh -s -- {{arguments}}`
|
||||
|
||||
- Run `rustup-init` and specify additional components or targets to install:
|
||||
|
||||
`rustup-init.sh --target {{target}} --component {{component}}`
|
||||
|
||||
- Run `rustup-init` and specify the default toolchain to install:
|
||||
|
||||
`rustup-init.sh --default-toolchain {{toolchain}}`
|
||||
|
||||
- Run `rustup-init` and do not install any toolchain:
|
||||
|
||||
`rustup-init.sh --default-toolchain {{none}}`
|
||||
|
||||
- Run `rustup-init` and specify an installation profile:
|
||||
|
||||
`rustup-init.sh --profile {{minimal|default|complete}}`
|
||||
|
||||
- Run `rustup-init` without asking for confirmation:
|
||||
|
||||
`rustup-init.sh -y`
|
Loading…
Add table
Reference in a new issue