commands.sh

brew install

all

Install a Homebrew formula or cask.

More info →

Options (2)

-s, --build-from-sourceboolean

Build and install a formula from source (dependencies will still be installed from bottles)

Example: brew install {{[-s|--build-from-source]}} {{formula}}
-n, --dry-runboolean

Download the manifest, print what would be installed but don't actually install anything

Example: brew install {{[-n|--dry-run]}} {{formula|cask}}

Examples (3)

Install a formula/cask

brew install formula|cask

Build and install a formula from source (dependencies will still be installed from bottles)

brew install [-s|--build-from-source] formula

Download the manifest, print what would be installed but don't actually install anything

brew install [-n|--dry-run] formula|cask
made by @shridhargupta | data from tldr-pages