---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# rustup completions

> Generate shell completions for `rustup` and `cargo`.
> More information: <https://rust-lang.github.io/rustup/>.

- Print the completion script to `stdout`:

`rustup completions {{bash|elvish|fish|powershell|zsh}} {{rustup|cargo}}`
