rustup-init.sh Command Examples

Script to install rustup and the Rust toolchain. More information: https://forge.rust-lang.org/infra/other-installation-methods.html#rustup.

curl https://sh.rustup.rs -sSf | sh -s

curl https://sh.rustup.rs -sSf | sh -s -- {{arguments}}

rustup-init.sh --target {{target}} --component {{component}}

rustup-init.sh --default-toolchain {{toolchain}}

rustup-init.sh --default-toolchain {{none}}

rustup-init.sh --profile {{minimal|default|complete}}

rustup-init.sh -y