brew flags & options
install
Install a formula or cask.
brew install node
brew install --cask firefox
uninstall
Remove an installed formula or cask.
brew uninstall node
brew uninstall --cask firefox
update
Fetch the latest version of Homebrew and all formulae.
brew update
upgrade
Upgrade all outdated packages or a specific package.
brew upgrade
brew upgrade node
search
Search for available formulae and casks.
brew search postgres
brew search --cask font
list
List all installed formulae and casks.
brew list
brew list --cask
info
Show details about a formula or cask.
brew info node
brew info --json=v2 node
doctor
Check your Homebrew installation for potential problems.
brew doctor
cleanup
Remove old versions of installed formulae and clear the download cache.
brew cleanup
brew cleanup -s
services
Manage background services for installed formulae.
brew services list
brew services start postgresql
brew services stop postgresql
tap
Add a third-party repository of formulae.
brew tap homebrew/cask-fonts
brew tap