Disambiguate package and binary target in a multi-package repo.

Section: Manifest and metadata checks

Run one package and one binary

bash
bash
cargo run -p my-cli --bin my-cli
Explanation

Useful when multiple binaries or packages share similar names.

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
Inspect resolved metadata
Print package and dependency metadata as JSON.
OpenIn sheetbashsame section
Locate the workspace root
Show the workspace root manifest path.
OpenIn sheetbashsame section
Build one workspace member
Select a specific package inside a workspace.
OpenIn sheetbashsame section
Clean one package target directory
Remove build artifacts for a package or target selection context.
OpenIn sheetbashsame section
Locate the active Cargo.toml
Show which manifest Cargo is using.
OpenIn sheetbashsame section
Define workspace members explicitly
Basic workspace root snippet.
OpenIn sheettoml2 tag match