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-initto installrustupand the default Rust toolchain:
curl https://sh.rustup.rs -sSf | sh -s -
Download and run
rustup-initand pass arguments to it:
curl https://sh.rustup.rs -sSf | sh -s -- {{arguments}} -
Run
rustup-initand specify additional components or targets to install:
rustup-init.sh --target {{target}} --component {{component}} -
Run
rustup-initand specify the default toolchain to install:
rustup-init.sh --default-toolchain {{toolchain}} -
Run
rustup-initand do not install any toolchain:
rustup-init.sh --default-toolchain {{none}} -
Run
rustup-initand specify an installation profile:
rustup-init.sh --profile {{minimal|default|complete}} -
Run
rustup-initwithout asking for confirmation:
rustup-init.sh -y
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.