Reference

Homebrew Commands

The commands you reach for most, grouped by task. Copy any command, or open its documentation. In Brewwery, these run for you — shown clearly, only after you confirm.

Install

Add formulae and casks to your system.

brew install git

Install a command-line formula.

Docs
brew install --cask visual-studio-code

Install a macOS application distributed as a cask.

Docs

Update

Refresh metadata and upgrade installed packages.

brew update

Fetch the latest package metadata from Homebrew.

Docs
brew outdated

List installed packages that have newer versions.

Docs
brew upgrade

Upgrade all outdated formulae and casks.

Docs
brew upgrade redis

Upgrade a single package.

Docs

Services

Manage background processes like databases.

brew services list

Show the status of all managed services.

Docs
brew services start redis

Start a service and launch it at login.

Docs
brew services stop redis

Stop a running service.

Docs
brew services restart postgresql@16

Restart a service.

Docs

Cleanup

Reclaim disk space from old versions and caches.

brew cleanup -n

Preview what Homebrew can remove without deleting anything.

Docs
brew cleanup

Remove old versions and stale downloads.

Docs

Diagnostics

Check the health of your Homebrew installation.

brew doctor

Report common problems. It only diagnoses — it changes nothing.

Docs

Brewfile

Describe and reproduce your setup as a file.

brew bundle dump

Write your current setup to a Brewfile.

Docs
brew bundle install

Install everything listed in a Brewfile.

Docs