Buildozer
latest 10.2.0_20261028Command-line tool for scripted, bulk edits to Bazel BUILD files — add, remove, or rename targets and attributes across a workspace
Versions · 70
click = copy identifier · right-click = more- yanked — ·
- yanked — ·
README
Buildozer
Buildozer rewrites Bazel BUILD files from the command line using a small
set of standard commands — anyone doing a mechanical, repo-wide BUILD-graph
refactor (renaming a target, swapping a dependency, migrating a load
statement) reaches for it instead of hand-editing hundreds of files or
writing a one-off script.
It takes a command string and one or more target labels, and rewrites the BUILD file(s) that define those targets in place.
What's included
- buildozer — the single static binary. No runtime dependencies.
Usage
buildozer 'add deps //base' //pkg:rule //pkg:rule2
Adds //base to the deps of //pkg:rule and //pkg:rule2. Commands can
also be batched from a file with buildozer -f commands.txt.
Buildozer ships from the same repository and release as buildifier and
unused-deps — if you need one, the other two are one ocx add away.
Links
Apache-2.0 licensed.
Install
Platforms
Support matrix
Which platforms each version ships for. Click a version to copy its identifier.
No version supports all the chosen platforms.
The versions could not be loaded.
No platforms listed.