Cheat Sheet
The commands you keep forgetting, with a one-line description and a real example you can copy - 629 across 38 tools. Pick a tool in the sidebar, or search across all of them.
Homebrew (brew)
The macOS (and Linux) package manager - install, upgrade, and tidy up.| Command | What it does | Example |
|---|---|---|
brew install | Install a package. | brew install jq |
brew install --cask | Install a GUI app. | brew install --cask visual-studio-code |
brew search | Find a package by name. | brew search postgres |
brew update | Refresh Homebrew's package lists. | brew update |
brew upgrade | Upgrade everything that's outdated. | brew upgrade |
brew upgrade <pkg> | Upgrade one package. | brew upgrade node |
brew outdated | List packages with newer versions. | brew outdated |
brew list | Show what's installed. | brew list |
brew info | Details, caveats, and dependencies. | brew info redis |
brew uninstall | Remove a package. | brew uninstall wget |
brew services start | Run a package as a background service. | brew services start postgresql@16 |
brew services list | See which services are running. | brew services list |
brew cleanup | Delete old versions and free disk space. | brew cleanup |
brew doctor | Diagnose a broken Homebrew setup. | brew doctor |
brew tap | Add a third-party package repository. | brew tap hashicorp/tap |
brew deps --tree | See what a package depends on. | brew deps --tree ffmpeg |
brew pin | Hold a package at its current version. | brew pin node |