Brew Essentials Install for a New Mac Developer Setup
Homebrew turns Mac software installation into one-line terminal commands. On a fresh machine it is usually the first thing developers install, because everything else (shells, runtimes, editors) installs faster through it afterward.
What you need
- A Mac with admin rights
- Terminal open (Spotlight can launch it; see [[spotlight-power-user-moves]])
- A working internet connection
Step by step
- Install Xcode Command Line Tools first by running
xcode-select --installand accepting the dialog. Homebrew depends on these compilers and tools. - Install Homebrew with the official command from brew.sh, pasted into Terminal. It asks for your login password once.
- Add brew to your shell path when the installer suggests it. On Apple Silicon this means appending the eval line it prints to
~/.zprofile, then opening a new tab. - Verify with
brew doctor. A clean reply of "Your system is ready to brew" confirms everything works. - Install the core CLI tools:
brew install git wget ripgrep fd jq tree htop. These cover version control, fast searching, JSON parsing, and readable directory listings. - Install a runtime or two as needed, such as
brew install node,brew install python@3.12, orbrew install go. Pin major versions explicitly so upgrades are deliberate. - Add GUI apps as casks:
brew install --cask iterm2 visual-studio-code rectangle stats. Casks place real applications in /Applications just like manual downloads. - Create a Brewfile for reproducibility: run
brew bundle dumpto write a list of everything installed. On any future machine,brew bundlefrom that file restores the whole setup. - Build a maintenance habit: run
brew update && brew upgradeweekly, andbrew cleanupmonthly to delete old versions and reclaim disk space.
Common mistakes
- Skipping the PATH step on Apple Silicon and concluding brew is broken because every command returns "command not found".
- Installing GUI apps twice, once manually and once via cask, ending up with duplicate copies in /Applications.
- Never running
brew doctor, so a stale Command Line Tools version silently breaks formula builds months later.
Related guides
Brew is part of a broader new-machine routine. Follow [[migration-assistant-new-mac]] if you want files and settings carried over wholesale, then use this guide to layer fresh developer tooling on top. Keep the resulting packages lean with [[optimize-mac-storage]], since caches from runtimes grow quickly, and manage the resulting terminal windows with [[free-window-management-macos]].