Install packages and apps, upgrade everything, and keep brew healthy — the commands you need. Tap to copy.
brew install <pkg>Install a formulabrew uninstall <pkg>Remove a formulabrew search <text>Search for formulae and casksbrew info <pkg>Show details about a packagebrew listList installed packagesbrew install --cask <app>Install a macOS app via caskbrew uninstall --cask <app>Remove a cask appbrew list --caskList installed cask appsbrew updateUpdate Homebrew and formula definitionsbrew upgradeUpgrade all outdated packagesbrew upgrade <pkg>Upgrade a single packagebrew outdatedShow packages with updates availablebrew pin <pkg>Stop a package from being upgradedbrew doctorCheck your setup for common problemsbrew cleanupRemove old versions and free up spacebrew --prefixPrint the Homebrew install pathHomebrew installs command-line tools with brew install and full macOS apps with brew install --cask. Keep things current with brew update (refreshes definitions) followed by brew upgrade (updates packages), and run brew doctor if something seems off.