Following environmental variables can be used.

Name Description Default
HOMEBREW_BREWFILE Set place of Brewfile. “~/brewfile/Brewfile”
HOMEBREW_BREWFILE_BACKUP If it is set to not empty, Brewfile’s back up is made to HOMEBREW_BREWFILE_BACKUP when Brewfile is updated. “”
HOMEBREW_BREWFILE_LEAVES Set 1 if you want to list up only leaves (formulae which don’t have any dependencies, taken by brew leaves). 0
HOMEBREW_BREWFILE_ON_REQUEST Set 1 if you want to list up only packages installed on request. If it is set 1, it is given priority over LEAVES option. Note: This list can be changed if packages installed by brew-file in new machine. (some “on_request” package could be installed as “as_dependencies” of others before being installed on request.) 0
HOMEBREW_BREWFILE_TOP_PACKAGES Packages which are listed in Brewfile even if leaves is used and they are under dependencies. (Useful for such go, which is used by itself, but some packages depend on it, too.) “”
HOMEBREW_BREWFILE_APPSTORE Set 0 you don’t want to list up AppStore applications Brewfile. 1
HOMEBREW_CASK_OPTS This is Cask’s option to set cask environment. If appdir or fontdir is set with these options, Brew-file uses these values in it. “”
HOMEBREW_GEM_OPTS This is brew-gem’s option to set Ruby environment. “”