Install & update
rustup update
Update installed toolchains and rustup
rustup update stable
Update only one toolchain
rustup check
Check for updates without installing
rustup self update
Update rustup itself only
rustup update --no-self-update
Skip the rustup self-update (CI)
rustup completions <shell>
Print shell completions
rustup self uninstall
Remove rustup and all toolchains
rustup man <command>
Open the man page of a tool
rustup toolchain install <toolchain>
Install a toolchain
Name form: <channel>[-<date>][-<host>], e.g.
nightly-2026-01-15 or stable-msvc.
rustup toolchain list
List installed toolchains
rustup toolchain uninstall <toolchain>
Remove a toolchain
rustup toolchain install <toolchain> --profile
minimal
Install without docs and extras
rustup toolchain install <toolchain> -c
<component> -t <target>
Install with components and targets
rustup toolchain install 1.80
Install a specific version
rustup toolchain link <name> <path>
Register a local custom build
rustup set profile <profile>
Profile for future installs
minimal = rustc, rust-std, cargo; default adds rust-docs,
rustfmt, clippy; complete is not recommended.
rustup toolchain install nightly --allow-downgrade
Newest nightly that has the components
Default & overrides
rustup default <toolchain>
Set the global default toolchain
rustup default
Print the current default
rustup override set <toolchain>
Pin a toolchain for this directory
rustup override unset
Remove this directory's override
rustup override list
List all directory overrides
rustup show
Active toolchain, installed ones, why
rustup show active-toolchain
Print only the active toolchain
rustup which <command>
Path of the binary that would run
cargo +<toolchain> <command>
Run cargo with another toolchain once
Works for any proxy: rustc +nightly --version.
cargo +nightly fmt
Example: nightly-only rustfmt options
rustup run <toolchain> <command>
Run any command in a toolchain
rustup run <toolchain> $SHELL
Shell with that toolchain on PATH
RUSTUP_TOOLCHAIN=<toolchain> <command>
Pick a toolchain via environment
Components
rustup component list
Available and installed components
rustup component list --installed
Only installed components
rustup component add <component>
Add a component
rustup component add <component> --toolchain
<toolchain>
Add to another toolchain
rustup component remove <component>
Remove a component
rustup component add rust-src
Std source for IDEs and build-std
rustup component add rust-analyzer
Language server for editors
rustup component add clippy rustfmt
Linter and formatter
rustup component add llvm-tools
LLVM tools (unstable, no guarantees)
rustup component add miri --toolchain nightly
Undefined-behavior interpreter
rustup doc --std
Open the offline std docs
Needs the rust-docs component (in the default profile).
rustup doc --book
Open the offline Rust book