cargo-help
Display help for Cargo commands
TLDR
Show general help
$ cargo help
Show help for specific command$ cargo help [build]
List all installed commands$ cargo --list
Verbose command list$ cargo --list --verbose
Explain error code$ cargo --explain [E0004]
SYNOPSIS
cargo help [command]
cargo --help
cargo --list
DESCRIPTION
cargo help displays help information for Cargo commands. Use it to learn about available commands, their options, and usage patterns.
PARAMETERS
--help, -h
Show help message--list
List all installed Cargo subcommands--verbose, -v
Print extra information with --list--explain code
Run rustc --explain for error code
COMMAND CATEGORIES
General Commands
cargo, cargo helpBuild Commands
build, check, clean, run, test, benchManifest Commands
add, remove, fetch, generate-lockfile, updatePackage Commands
init, new, search, install, uninstallPublishing Commands
package, publish, yank, owner
CUSTOM COMMANDS
Custom subcommands installed via cargo install are listed with --list. Any executable named cargo-* in PATH becomes a cargo subcommand.
