Commands

CommandDescription
brew install gitInstall a package
brew uninstall gitRemove/Uninstall a package
brew upgrade gitUpgrade a package
------
brew unlink gitUnlink
brew link gitLink
brew switch git 2.5.0Change versions
------
brew list --versions gitSee what versions you have

More package commands

CommandDescription
brew info gitList versions, caveats, etc
brew cleanup gitRemove old versions
brew edit gitEdit this formula
brew cat gitPrint this formula
brew home gitOpen homepage
brew search gitSearch for formulas

Global commands

CommandDescription
brew updateUpdate brew and cask
brew upgradeUpgrade all packages
brew listList installed
brew outdatedWhat's due for upgrades?
brew doctorDiagnose brew issues

Brew Cask commands

CommandDescription
brew install --cask firefoxInstall the Firefox browser
brew list --caskList installed applications

Cask commands are used for interacting with graphical applications.

Also see

{: .-one-column}