Homebrew is the community-run package manager for macOS (and Linux), maintained entirely by open-source volunteer maintainers. It's the #7 most-used dev tool in the world, reported in roughly 25.7% of developer surveys, and it's usually the very first thing a new Mac developer installs. People use it because it installs command-line tools and full desktop apps ("casks") with a single terse command, handling all the dependency and PATH setup automatically.
Installing a CLI tool or a full desktop app both use the same brew command โ Homebrew tells the two apart automatically via "formulae" and "casks."
# install a command-line tool (a "formula")
brew install node
# install a full desktop app (a "cask")
brew install --cask visual-studio-code
# list everything currently installed
brew list
# update Homebrew itself and upgrade all packages
brew update && brew upgrade
Install Homebrew with the official one-line install script, run in Terminal.
# official Homebrew install command (macOS/Linux)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# verify it installed correctly
brew --version