bz mod search
Search for Bazel modules by name in the configured registry.
Synopsis
bz mod search <query> [flags]Description
The search command queries the registry for modules matching the search query. It searches module names and returns a list of matching modules with their descriptions.
Arguments
| Argument | Description |
|---|---|
query | Search term to match against module names |
Flags
| Flag | Short | Description |
|---|---|---|
--registry | -r | Registry URL to search (default: BCR) |
--limit | -l | Maximum results to return (default: 20) |
--json | Output as JSON |
Examples
Basic Search
bz mod search rules_goOutput:
rules_go - Go rules for BazelSearch with Pattern
bz mod search rules_Output:
rules_go - Go rules for Bazelrules_python - Python rules for Bazelrules_rust - Rust rules for Bazelrules_cc - C/C++ rules for Bazelrules_java - Java rules for Bazel...Search Custom Registry
bz mod search mymodule --registry https://registry.example.comJSON Output
bz mod search rules_go --jsonOutput:
{ "modules": [ { "name": "rules_go", "description": "Go rules for Bazel" } ]}Limit Results
bz mod search rules_ --limit 5See Also
- CLI Overview - See all available commands
- mod sync - Sync modules to a destination