Select a specific package inside a workspace.
Section: Manifest and metadata checks
Build one workspace member
bash
bash
cargo build -p my-cliExplanation
Avoids accidentally building the wrong package or the whole workspace when only one member matters.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Manifest and metadata checks
Run one package and one binary
Disambiguate package and binary target in a multi-package repo.
Clean one package target directory
Remove build artifacts for a package or target selection context.