Package manager CLI for installing, upgrading, and querying formulae, casks, taps, and Brewfile dependencies on macOS and Linux.
$/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis
Homebrew is a package manager CLI for macOS and Linux that installs formulae, casks, taps, and Brewfile-defined dependency sets. It also exposes package metadata, service management, and environment helpers for scripting local machine setup and maintenance.
What It Enables
- Install, upgrade, pin, uninstall, and clean up command-line tools and GUI apps from formulae and casks on macOS or Linux.
- Search packages, inspect formula or tap metadata, and check outdated or installed state before changing a machine.
- Capture machine setup in a
Brewfile, enforce it withbrew bundle, and manage packaged background services withbrew services.
Agent Fit
- Core commands are scriptable and fit inspect-change-verify loops for local machine bootstrap and maintenance.
- Structured output is real but partial:
brew info,brew outdated,brew tap-info, andbrew services ... --jsonsupport JSON, while many install and search flows still emit plain text. - Built-in
brew mcp-serverexists for teams that prefer that integration model.
Caveats
- Install, upgrade, and uninstall commands change the local machine and can fetch or execute third-party build steps, so unattended use needs guardrails.
- Some flows still prompt or depend on local OS state, permissions, or service managers; unattended installs may need
NONINTERACTIVE=1.