Set Up a New Mac for Development
Install Xcode Command Line Tools and Homebrew, then use Homebrew to pull in the rest of your developer toolkit.
Requirements
- Admin access on your Mac
- Terminal (Applications → Utilities → Terminal)
Install Xcode Command Line Tools
These provide git, make, a C compiler, and other tools that Homebrew and most dev tooling expect to exist.
$ xcode-select --installA dialog will pop up — click Install and wait for it to finish (it can take several minutes).
Note
If you get "command line tools are already installed", you're already set — move on to Step 2.
Install Homebrew
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Important
On Apple Silicon Macs, the installer prints a command to add Homebrew to your PATH — copy and run it (it appends a line to ~/.zprofile). Without it, your shell won't find brew.
$ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile$ eval "$(/opt/homebrew/bin/brew shellenv)"Verify Homebrew
$ brew doctorExpected output
Your system is ready to brew.
Warnings here are usually informational — only act on lines that say something is actually broken.
Install your core toolkit
Install whatever your projects actually need. A common baseline:
$ brew install git node pythonSuccess
Your Mac now has a compiler toolchain, a package manager, and the runtimes most projects need.
Troubleshooting
On Apple Silicon, Homebrew installs to `/opt/homebrew`, which isn't on PATH by default — the installer's PATH step was skipped or the terminal wasn't restarted.
$ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile$ source ~/.zprofile