$ brew install -h
brew install [--debug] [--env=(std|super)] [--ignore-dependencies|--only-dependencies] [--cc=compiler] [--build-from-source|--force-bottle] [--include-test] [--devel|--HEAD] [--keep-tmp] [--build-bottle] [--force] [--verbose] formula [options ...]:
formula is usually the name of the formula to install, but it can be specified
in several different ways. See [SPECIFYING FORMULAE](#specifying-formulae).
If --debug (or -d) is passed and brewing fails, open an interactive debugging
session with access to IRB or a shell inside the temporary build directory.
If --env=std is passed, use the standard build environment instead of superenv.
If --env=super is passed, use superenv even if the formula specifies the
standard build environment.
If --ignore-dependencies is passed, skip installing any dependencies of
any kind. If they are not already present, the formula will probably fail
If --only-dependencies is passed, install the dependencies with specified
options but do not install the specified formula.
If --cc=compiler is passed, attempt to compile using compiler.
compiler should be the name of the compiler's executable, for instance
gcc-4.2 for Apple's GCC 4.2, or gcc-4.9 for a Homebrew-provided GCC
If --build-from-source (or -s) is passed, compile the specified formula from
source even if a bottle is provided. Dependencies will still be installed
from bottles if they are available.
If HOMEBREW_BUILD_FROM_SOURCE is set, regardless of whether --build-from-source was
passed, then both formula and the dependencies installed as part of this process
are built from source even if bottles are available.
If --force-bottle is passed, install from a bottle if it exists for the
current or newest version of macOS, even if it would not normally be used
If --include-test is passed, install testing dependencies. These are only
needed by formulae maintainers to run brew test.
If --devel is passed, and formula defines it, install the development version.
If --HEAD is passed, and formula defines it, install the HEAD version,
aka master, trunk, unstable.
If --keep-tmp is passed, the temporary files created during installation
are not deleted.
If --build-bottle is passed, prepare the formula for eventual bottling
If --force (or -f) is passed, install without checking for previously
installed keg-only or non-migrated versions
If --verbose (or -v) is passed, print the verification and postinstall steps.
Installation options specific to formula may be appended to the command,
and can be listed with brew options formula.
brew install --interactive [--git] formula:
If --interactive (or -i) is passed, download and patch formula, then
open a shell. This allows the user to run ./configure --help and
otherwise determine how to turn the software package into a Homebrew
If --git (or -g) is passed, Homebrew will create a Git repository, useful for
creating patches to the software.