Automic VaultAutomic Vault

brew

Install buildozer with Homebrew, Nix

Rewrite bazel BUILD files using standard commands. Version 8.5.1 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install buildozer

local Homebrew formula metadata

overview

Package summary

Rewrite bazel BUILD files using standard commands

Commands and aliases

  • buildozer

history

Project history and usage

Buildozer is the command-line rewrite tool from Bazel's `buildtools` repository. It applies scripted edits to Bazel BUILD-like files, complementing Buildifier's formatting role with bulk, machine-checkable structural changes.

Project history

The `bazelbuild/buildtools` repository was created on 2016-06-09 as a home for developer tools around Bazel BUILD files. Its top-level README groups Buildifier, Buildozer, and unused_deps together: formatter, editor, and Java dependency cleanup tool.

Buildozer's README defines it as a command-line tool for rewriting multiple Bazel BUILD files with standard commands. Its command language grew around labels, rule kinds, loads, attributes, comments, and later MODULE.bazel operations, reflecting the needs of large Bazel codebases where hand-editing BUILD files is slow and error-prone.

Adoption history

Buildozer's adoption is tied to Bazel adoption. Teams with large monorepos use it for mechanical BUILD-file migrations: adding dependencies, changing rule kinds, rewriting loads, deleting attributes, or applying edits across entire package trees.

Its availability through Homebrew and Nix makes it easy to install outside a Bazel source checkout, while Go module installation gives Bazel users a direct upstream-supported path.

How it is used

Typical usage is `buildozer 'command args' //pkg:target`, often repeated across many labels or fed from a command file. Buildozer can print modified files, format through Buildifier, run multiple commands in order, and process files in parallel.

The tool is most useful when a repository-wide BUILD migration should be expressed as a small, repeatable command instead of a one-off script that parses Starlark poorly.

Why package nerds care

Buildozer is a package nerd tool because it encodes Bazel's BUILD-file editing semantics into a small CLI. It is the kind of utility that package managers carry so build-system maintainers can do tedious monorepo migrations without checking out a larger toolchain.

Its relationship with Buildifier is the key: one tool changes the syntax tree, the other normalizes the result. That pair became part of the everyday hygiene toolkit for serious Bazel repositories.

Timeline

  • 2016: `bazelbuild/buildtools` repository is created.
  • 2016: Buildozer is distributed as one of the core tools in the Buildtools repository.
  • 2020s: Buildozer gains support for modern Bazel file shapes such as MODULE.bazel operations.
  • 2026: The Buildtools repository remains active as Bazel's formatter/editor tool collection.

Related projects

  • Buildozer is closely related to Bazel, Buildifier, unused_deps, Starlark BUILD files, MODULE.bazel, and monorepo migration tooling.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
buildozercliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version8.5.1
manager updated
local dataok
upstreamcurrent
latest detectedv8.5.1

https://github.com/bazelbuild/buildtools

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:buildozer
Version8.5.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/buildozer
Homepagehttps://github.com/bazelbuild/buildtools
Repositoryhttps://github.com/bazelbuild/buildtools
Upstream docshttps://github.com/bazelbuild/buildtools/blob/master/buildozer/README.md
LicenseApache-2.0
Source archivehttps://github.com/bazelbuild/buildtools/archive/refs/tags/v8.5.1.tar.gz
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebuildozer
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

buildozer

nix profile install nixpkgs#buildozer
  • normalized package name match
  • Matched by: Buildozer
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: buildozer from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment