'--env:Summarise Homebrew'\''s build environment as a plain list'
'--prefix:Display Homebrew'\''s install path'
'--repository:Display where Homebrew'\''s git repository is located'
'--version:Print the version numbers of Homebrew, Homebrew/homebrew-core and Homebrew/homebrew-cask (if tapped) to standard output'
'analytics:Control Homebrew'\''s anonymous aggregate user behaviour analytics'
'audit:Check formula for Homebrew coding style violations'
'autoremove:Uninstall formulae that were only installed as a dependency of another formula and are now no longer needed'
'bottle:Generate a bottle (binary package) from a formula that was installed with `--build-bottle`'
'bump:Display out-of-date brew formulae and the latest version available'
'bump-cask-pr:Create a pull request to update cask with a new version'
'bump-formula-pr:Create a pull request to update formula with a new URL or a new tag'
'bump-revision:Create a commit to increment the revision of formula'
'bump-unversioned-casks:Check all casks with unversioned URLs in a given tap for updates'
'cask:Homebrew Cask provides a friendly CLI workflow for the administration of macOS applications distributed as binaries'
'casks:List all locally installable casks including short names'
'cat:Display the source of a formula or cask'
'cleanup:Remove stale lock files and outdated downloads for all formulae and casks, and remove old versions of installed formulae'
'command:Display the path to the file being used when invoking `brew` cmd'
'commands:Show lists of built-in and external commands'
'completions:Control whether Homebrew automatically links external tap shell completion files'
'config:Show Homebrew and system configuration info useful for debugging'
'create:Generate a formula or, with `--cask`, a cask for the downloadable file at URL and open it in the editor'
'deps:Show dependencies for formula'
'desc:Display formula'\''s name and one-line description'
'dispatch-build-bottle:Build bottles for these formulae with GitHub Actions'
'diy:Automatically determine the installation prefix for non-Homebrew software'
'doctor:Check your system for potential problems'
'edit:Open a formula or cask in the editor set by `EDITOR` or `HOMEBREW_EDITOR`, or open the Homebrew repository for editing if no formula is provided'
'extract:Look through repository history to find the most recent version of formula and create a copy in tap'
'fetch:Download a bottle (if available) or source packages for formulae and binaries for casks'
'formula:Display the path where formula is located'
'formulae:List all locally installable formulae including short names'
'gist-logs:Upload logs for a failed build of formula to a new Gist'
'home:Open a formula or cask'\''s homepage in a browser, or open Homebrew'\''s own homepage if no argument is provided'
'info:Display brief statistics for your Homebrew installation'
'leaves:List installed formulae that are not dependencies of another installed formula'
'link:Symlink all of formula'\''s installed files into Homebrew'\''s prefix'
'linkage:Check the library links from the given formula kegs'
'list:List all installed formulae and casks'
'livecheck:Check for newer versions of formulae and/or casks from upstream'
'log:Show the `git log` for formula, or show the log for the Homebrew repository if no formula is provided'
'man:Generate Homebrew'\''s manpages'
'migrate:Migrate renamed packages to new names, where formula are old names of packages'
'mirror:Reupload the stable URL of a formula to Bintray for use as a mirror'
'missing:Check the given formula kegs for missing dependencies'
'options:Show install options specific to formula'
'outdated:List installed casks and formulae that have an updated version available'
'pin:Pin the specified formula, preventing them from being upgraded when issuing the `brew upgrade` formula command'
'postinstall:Rerun the post-install steps for formula'
'pr-automerge:Find pull requests that can be automatically merged using `brew pr-publish`'
'pr-publish:Publish bottles for a pull request with GitHub Actions'
'pr-pull:Download and publish bottles, and apply the bottle commit from a pull request with artifacts generated by GitHub Actions'
'pr-upload:Apply the bottle commit and publish bottles to Bintray or GitHub Releases'
'prof:Run Homebrew with a Ruby profiler'
'readall:Import all items from the specified tap, or from all installed taps if none is provided'
'reinstall:Uninstall and then reinstall a formula or cask using the same options it was originally installed with, plus any appended options specific to a formula'
'release:Create a new draft Homebrew/brew release with the appropriate version number and release notes'
'release-notes:Print the merged pull requests on Homebrew/brew between two Git refs'
'rubocop:Installs, configures and runs Homebrew'\''s `rubocop`'
'ruby:Run a Ruby instance with Homebrew'\''s libraries loaded'
'search:Perform a substring search of cask tokens and formula names for text'
'sponsors:Print a Markdown summary of Homebrew'\''s GitHub Sponsors, suitable for pasting into a README'
'style:Check formulae or files for conformance to Homebrew style guidelines'
'switch:Symlink all of the specified version of formula'\''s installation into Homebrew'\''s prefix'
'tap:Tap a formula repository'
'tap-info:Show detailed information about one or more taps'
'tap-new:Generate the template files for a new tap'
'test:Run the test method provided by an installed formula'
'tests:Run Homebrew'\''s unit and integration tests'
'typecheck:Check for typechecking errors using Sorbet'
'unbottled:Outputs the unbottled dependents of formulae'
'uninstall:Uninstall a formula or cask'
'unlink:Remove symlinks for formula from Homebrew'\''s prefix'
'unpack:Unpack the source files for formula into subdirectories of the current working directory'
'unpin:Unpin formula, allowing them to be upgraded by `brew upgrade` formula'
'untap:Remove a tapped formula repository'
'update:Fetch the newest version of Homebrew and all formulae from GitHub using `git`(1) and perform any necessary migrations'
'update-license-data:Update SPDX license data in the Homebrew repository'
'update-python-resources:Update versions for PyPI resource blocks in formula'
'update-report:The Ruby implementation of `brew update`'
'update-reset:Fetch and reset Homebrew and all tap repositories (or any specified repository) using `git`(1) to their latest `origin/master`'
'update-test:Run a test of `brew update` with a new repository clone'
'upgrade:Upgrade outdated casks and outdated, unpinned formulae using the same options they were originally installed with, plus any appended brew formula options'
'--cask[Without text, list all locally available casks (including tapped ones, no online search is performed). With text, search online and locally for casks]' \
'--closed[Search for only closed GitHub pull requests]' \
'--debian[Search for text in the given package manager'\''s list]' \
'--debug[Display any debugging information]' \
'--desc[Search for formulae with a description matching text and casks with a name matching text]' \
'--fedora[Search for text in the given package manager'\''s list]' \
'--fink[Search for text in the given package manager'\''s list]' \
'--formula[Without text, list all locally available formulae (no online search is performed). With text, search online and locally for formulae]' \
'--help[Show this message]' \
'--macports[Search for text in the given package manager'\''s list]' \
'--open[Search for only open GitHub pull requests]' \
'--opensuse[Search for text in the given package manager'\''s list]' \
'--pull-request[Search for GitHub pull requests containing text]' \
'--quiet[Make some output more quiet]' \
'--ubuntu[Search for text in the given package manager'\''s list]' \
'--analytics[List global Homebrew analytics data or, if specified, installation and build error data for formula (provided neither `HOMEBREW_NO_ANALYTICS` nor `HOMEBREW_NO_GITHUB_API` are set)]' \
'--cask[Treat all named arguments as casks]' \
'--category[Which type of analytics data to retrieve. The value for category must be `install`, `install-on-request` or `build-error`; `cask-install` or `os-version` may be specified if formula is not. The default is `install`]' \
'--days[How many days of analytics data to retrieve. The value for days must be `30`, `90` or `365`. The default is `30`]' \
'--debug[Display any debugging information]' \
'--formula[Treat all named arguments as formulae]' \
'--github[Open the GitHub source page for formula in a browser. To view formula history locally: `brew log -p` formula]' \
'--help[Show this message]' \
'--installed[Print JSON of formulae that are currently installed]' \
'--json[Print a JSON representation. Currently the default value for version is `v1` for formula. For formula and cask use `v2`. See the docs for examples of using the JSON output: https://docs.brew.sh/Querying-Brew]' \
'--quiet[Make some output more quiet]' \
'--verbose[Show more verbose analytics data for formula]' \
'--audit-debug[Enable debugging and profiling of audit methods]' \
'--cask[Treat all named arguments as casks]' \
'--debug[Display any debugging information]' \
'--display-cop-names[Include the RuboCop cop name for each violation in the output]' \
'--display-filename[Prefix every line of output with the file or formula name being audited, to make output easy to grep]' \
'--except[Specify a comma-separated method list to skip running the methods named `audit_`method]' \
'--except-cops[Specify a comma-separated cops list to skip checking for violations of the listed RuboCop cops]' \
'--fix[Fix style violations automatically using RuboCop'\''s auto-correct feature]' \
'--formula[Treat all named arguments as formulae]' \
'--git[Run additional, slower style checks that navigate the Git repository]' \
'--help[Show this message]' \
'--new[Run various additional style checks to determine if a new formula or cask is eligible for Homebrew. This should be used when creating new formula and implies `--strict` and `--online`]' \
'--no-appcast[Audit the appcast]' \
'--online[Run additional, slower style checks that require a network connection]' \
'--only[Specify a comma-separated method list to only run the methods named `audit_`method]' \
'--only-cops[Specify a comma-separated cops list to check for violations of only the listed RuboCop cops]' \
'--quiet[Make some output more quiet]' \
'--skip-style[Skip running non-RuboCop style checks. Useful if you plan on running `brew style` separately. Enabled by default unless a formula is specified by name]' \
'--force-core-tap[Build a bottle even if formula is not in `homebrew/core` or any installed taps]' \
'--help[Show this message]' \
'--json[Write bottle information to a JSON file, which can be used as the value for `--merge`]' \
'--keep-old[If the formula specifies a rebuild version, attempt to preserve its value in the generated DSL]' \
'--merge[Generate an updated bottle block for a formula and optionally merge it into the formula file. Instead of a formula name, requires the path to a JSON file generated with `brew bottle --json` formula]' \
'--no-commit[When passed with `--write`, a new commit will not generated after writing changes to the formula file]' \
'--no-rebuild[If the formula specifies a rebuild version, remove it from the generated DSL]' \
'--quiet[Make some output more quiet]' \
'--root-url[Use the specified URL as the root of the bottle'\''s URL instead of Homebrew'\''s default]' \
'--skip-relocation[Do not check if the bottle can be marked as relocatable]' \
'--verbose[Make some output more verbose]' \
'--write[Write changes to the formula file. A new commit will be generated unless `--no-commit` is passed]' \
'::installed_formula:__brew_installed_formulae' \
'::file:__brew_formulae_or_ruby_files'
}
# brew bump
_brew_bump() {
_arguments \
'--debug[Display any debugging information]' \
'--help[Show this message]' \
'--limit[Limit number of package results returned]' \
'--commit[When passed with `--write`, generate a new commit after writing changes to the cask file]' \
'--debug[Display any debugging information]' \
'--dry-run[Print what would be done rather than doing it]' \
'--force[Ignore duplicate open PRs]' \
'--help[Show this message]' \
'--message[Append message to the default pull request message]' \
'--no-audit[Don'\''t run `brew audit` before opening the PR]' \
'--no-browse[Print the pull request URL instead of opening in a browser]' \
'--no-fork[Don'\''t try to fork the repository]' \
'--no-style[Don'\''t run `brew style --fix` before opening the PR]' \
'--online[Run `brew audit --online` before opening the PR]' \
'--quiet[Make some output more quiet]' \
'--sha256[Specify the SHA-256 checksum of the new download]' \
'--url[Specify the URL for the new download]' \
'--verbose[Make some output more verbose]' \
'--version[Specify the new version for the cask]' \
'--write[Make the expected file modifications without taking any Git actions]' \
'::cask:__brew_casks'
}
# brew bump-formula-pr
_brew_bump_formula_pr() {
_arguments \
'--commit[When passed with `--write`, generate a new commit after writing changes to the formula file]' \
'--debug[Display any debugging information]' \
'--dry-run[Print what would be done rather than doing it]' \
'--force[Ignore duplicate open PRs. Remove all mirrors if `--mirror` was not specified]' \
'--help[Show this message]' \
'--message[Append message to the default pull request message]' \
'--mirror[Use the specified URL as a mirror URL. If URL is a comma-separated list of URLs, multiple mirrors will be added]' \
'--no-audit[Don'\''t run `brew audit` before opening the PR]' \
'--no-browse[Print the pull request URL instead of opening in a browser]' \
'--no-fork[Don'\''t try to fork the repository]' \
'--online[Run `brew audit --online` before opening the PR]' \
'--quiet[Make some output more quiet]' \
'--revision[Specify the new commit revision corresponding to the specified git tag or specified version]' \
'--sha256[Specify the SHA-256 checksum of the new download]' \
'--strict[Run `brew audit --strict` before opening the PR]' \
'--tag[Specify the new git commit tag for the formula]' \
'--url[Specify the URL for the new download. If a URL is specified, the SHA-256 checksum of the new download should also be specified]' \
'--verbose[Make some output more verbose]' \
'--version[Use the specified version to override the value parsed from the URL or tag. Note that `--version=0` can be used to delete an existing version override from a formula if it has become redundant]' \
'--write[Make the expected file modifications without taking any Git actions]' \
'--dry-run[Do everything except caching state and opening pull requests]' \
'--help[Show this message]' \
'--limit[Maximum runtime in minutes]' \
'--quiet[Make some output more quiet]' \
'--state-file[File for caching state]' \
'--verbose[Make some output more verbose]' \
'::cask:__brew_casks' \
'::tap:__brew_any_tap'
}
# brew cask
_brew_cask() {
_arguments \
'--appdir[Target location for Applications (default: `/Applications`)]' \
'--audio-unit-plugindir[Target location for Audio Unit Plugins (default: `~/Library/Audio/Plug-Ins/Components`)]' \
'--colorpickerdir[Target location for Color Pickers (default: `~/Library/ColorPickers`)]' \
'--debug[Display any debugging information]' \
'--dictionarydir[Target location for Dictionaries (default: `~/Library/Dictionaries`)]' \
'--fontdir[Target location for Fonts (default: `~/Library/Fonts`)]' \
'--help[Show this message]' \
'--input-methoddir[Target location for Input Methods (default: `~/Library/Input Methods`)]' \
'--internet-plugindir[Target location for Internet Plugins (default: `~/Library/Internet Plug-Ins`)]' \
'--language[Comma-separated list of language codes to prefer for cask installation. The first matching language is used, otherwise it reverts to the cask'\''s default language. The default value is the language of your system]' \
'--mdimporterdir[Target location for Spotlight Plugins (default: `~/Library/Spotlight`)]' \
'--prefpanedir[Target location for Preference Panes (default: `~/Library/PreferencePanes`)]' \
'--qlplugindir[Target location for QuickLook Plugins (default: `~/Library/QuickLook`)]' \
'--quiet[Make some output more quiet]' \
'--screen-saverdir[Target location for Screen Savers (default: `~/Library/Screen Savers`)]' \
'--servicedir[Target location for Services (default: `~/Library/Services`)]' \
'--verbose[Make some output more verbose]' \
'--vst-plugindir[Target location for VST Plugins (default: `~/Library/Audio/Plug-Ins/VST`)]' \
'--vst3-plugindir[Target location for VST3 Plugins (default: `~/Library/Audio/Plug-Ins/VST3`)]'
'--dry-run[Show what would be removed, but do not actually remove anything]' \
'--help[Show this message]' \
'--prune[Remove all cache files older than specified days. If you want to remove everything, use `--prune=all`]' \
'--prune-prefix[Only prune the symlinks and directories from the prefix and remove no other files]' \
'--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]' \
'-s[Scrub the cache, including downloads for even the latest versions. Note downloads for any installed formulae or casks will still not be deleted. If you want to delete those too: `rm -rf "$(brew --cache)"`]' \
'--HEAD[Indicate that URL points to the package'\''s repository rather than a file]' \
'--autotools[Create a basic template for an Autotools-style build]' \
'--cask[Create a basic template for a cask]' \
'--cmake[Create a basic template for a CMake-style build]' \
'--crystal[Create a basic template for a Crystal build]' \
'--debug[Display any debugging information]' \
'--force[Ignore errors for disallowed formula names and names that shadow aliases]' \
'--go[Create a basic template for a Go build]' \
'--help[Show this message]' \
'--meson[Create a basic template for a Meson-style build]' \
'--no-fetch[Homebrew will not download URL to the cache and will thus not add its SHA-256 to the formula for you, nor will it check the GitHub API for GitHub projects (to fill out its description and homepage)]' \
'--node[Create a basic template for a Node build]' \
'--perl[Create a basic template for a Perl build]' \
'--python[Create a basic template for a Python build]' \
'--quiet[Make some output more quiet]' \
'--ruby[Create a basic template for a Ruby build]' \
'--rust[Create a basic template for a Rust build]' \
'--set-license[Explicitly set the license of the new formula]' \
'--set-name[Explicitly set the name of the new formula or cask]' \
'--set-version[Explicitly set the version of the new formula or cask]' \
'--tap[Generate the new formula within the given tap, specified as user`/`repo]' \
'--1[Only show dependencies one level down, instead of recursing]' \
'--all[List dependencies for all available formulae]' \
'--annotate[Mark any build, test, optional, or recommended dependencies as such in the output]' \
'--cask[Treat all named arguments as casks]' \
'--debug[Display any debugging information]' \
'--for-each[Switch into the mode used by the `--all` option, but only list dependencies for each provided formula, one formula per line. This is used for debugging the `--installed`/`--all` display mode]' \
'--formula[Treat all named arguments as formulae]' \
'--full-name[List dependencies by their full name]' \
'--help[Show this message]' \
'--include-build[Include `:build` dependencies for formula]' \
'--include-optional[Include `:optional` dependencies for formula]' \
'--include-requirements[Include requirements in addition to dependencies for formula]' \
'--include-test[Include `:test` dependencies for formula (non-recursive)]' \
'--installed[List dependencies for formulae that are currently installed. If formula is specified, list only its dependencies that are currently installed]' \
'--quiet[Make some output more quiet]' \
'--skip-recommended[Skip `:recommended` dependencies for formula]' \
'--tree[Show dependencies as a tree. When given multiple formula arguments, show individual trees for each formula]' \
'--union[Show the union of dependencies for multiple formula, instead of the intersection]' \
'--analytics[List global Homebrew analytics data or, if specified, installation and build error data for formula (provided neither `HOMEBREW_NO_ANALYTICS` nor `HOMEBREW_NO_GITHUB_API` are set)]' \
'--cask[Treat all named arguments as casks]' \
'--category[Which type of analytics data to retrieve. The value for category must be `install`, `install-on-request` or `build-error`; `cask-install` or `os-version` may be specified if formula is not. The default is `install`]' \
'--days[How many days of analytics data to retrieve. The value for days must be `30`, `90` or `365`. The default is `30`]' \
'--debug[Display any debugging information]' \
'--formula[Treat all named arguments as formulae]' \
'--github[Open the GitHub source page for formula in a browser. To view formula history locally: `brew log -p` formula]' \
'--help[Show this message]' \
'--installed[Print JSON of formulae that are currently installed]' \
'--json[Print a JSON representation. Currently the default value for version is `v1` for formula. For formula and cask use `v2`. See the docs for examples of using the JSON output: https://docs.brew.sh/Querying-Brew]' \
'--quiet[Make some output more quiet]' \
'--verbose[Show more verbose analytics data for formula]' \
'::formula:__brew_formulae' \
'::cask:__brew_casks'
}
# brew instal
_brew_instal() {
_arguments \
'--HEAD[If formula defines it, install the HEAD version, aka. master, trunk, unstable]' \
'--appdir[Target location for Applications (default: `/Applications`)]' \
'--audio-unit-plugindir[Target location for Audio Unit Plugins (default: `~/Library/Audio/Plug-Ins/Components`)]' \
'--binaries[Disable/enable linking of helper executables (default: enabled)]' \
'--bottle-arch[Optimise bottles for the specified architecture rather than the oldest architecture supported by the version of macOS the bottles are built on]' \
'--build-bottle[Prepare the formula for eventual bottling during installation, skipping any post-install steps]' \
'--build-from-source[Compile formula from source even if a bottle is provided. Dependencies will still be installed from bottles if they are available]' \
'--cask[Treat all named arguments as casks]' \
'--cc[Attempt to compile using the specified compiler, which should be the name of the compiler'\''s executable, e.g. `gcc-7` for GCC 7. In order to use LLVM'\''s clang, specify `llvm_clang`. To use the Apple-provided clang, specify `clang`. This option will only accept compilers that are provided by Homebrew or bundled with macOS. Please do not file issues if you encounter errors while using this option]' \
'--colorpickerdir[Target location for Color Pickers (default: `~/Library/ColorPickers`)]' \
'--debug[If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory]' \
'--dictionarydir[Target location for Dictionaries (default: `~/Library/Dictionaries`)]' \
'--display-times[Print install times for each formula at the end of the run]' \
'--env[If `std` is passed, use the standard build environment instead of superenv. If `super` is passed, use superenv even if the formula specifies the standard build environment]' \
'--fetch-HEAD[Fetch the upstream repository to detect if the HEAD installation of the formula is outdated. Otherwise, the repository'\''s HEAD will only be checked for updates when a new stable or development version has been released]' \
'--fontdir[Target location for Fonts (default: `~/Library/Fonts`)]' \
'--force[Install formulae without checking for previously installed keg-only or non-migrated versions. When installing casks, overwrite existing files (binaries and symlinks are excluded, unless originally from the same cask)]' \
'--force-bottle[Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation]' \
'--formula[Treat all named arguments as formulae]' \
'--git[Create a Git repository, useful for creating patches to the software]' \
'--help[Show this message]' \
'--ignore-dependencies[An unsupported Homebrew development flag to skip installing any dependencies of any kind. If the dependencies are not already present, the formula will have issues. If you'\''re not developing Homebrew, consider adjusting your PATH rather than using this flag]' \
'--include-test[Install testing dependencies required to run `brew test` formula]' \
'--input-methoddir[Target location for Input Methods (default: `~/Library/Input Methods`)]' \
'--interactive[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 package]' \
'--internet-plugindir[Target location for Internet Plugins (default: `~/Library/Internet Plug-Ins`)]' \
'--keep-tmp[Retain the temporary files created during installation]' \
'--language[Comma-separated list of language codes to prefer for cask installation. The first matching language is used, otherwise it reverts to the cask'\''s default language. The default value is the language of your system]' \
'--mdimporterdir[Target location for Spotlight Plugins (default: `~/Library/Spotlight`)]' \
'--no-binaries[Disable/enable linking of helper executables (default: enabled)]' \
'--no-quarantine[Disable/enable quarantining of downloads (default: enabled)]' \
'--only-dependencies[Install the dependencies with specified options but do not install the formula itself]' \
'--prefpanedir[Target location for Preference Panes (default: `~/Library/PreferencePanes`)]' \
'--qlplugindir[Target location for QuickLook Plugins (default: `~/Library/QuickLook`)]' \
'--quarantine[Disable/enable quarantining of downloads (default: enabled)]' \
'--quiet[Make some output more quiet]' \
'--require-sha[Require all casks to have a checksum]' \
'--screen-saverdir[Target location for Screen Savers (default: `~/Library/Screen Savers`)]' \
'--servicedir[Target location for Services (default: `~/Library/Services`)]' \
'--HEAD[If formula defines it, install the HEAD version, aka. master, trunk, unstable]' \
'--appdir[Target location for Applications (default: `/Applications`)]' \
'--audio-unit-plugindir[Target location for Audio Unit Plugins (default: `~/Library/Audio/Plug-Ins/Components`)]' \
'--binaries[Disable/enable linking of helper executables (default: enabled)]' \
'--bottle-arch[Optimise bottles for the specified architecture rather than the oldest architecture supported by the version of macOS the bottles are built on]' \
'--build-bottle[Prepare the formula for eventual bottling during installation, skipping any post-install steps]' \
'--build-from-source[Compile formula from source even if a bottle is provided. Dependencies will still be installed from bottles if they are available]' \
'--cask[Treat all named arguments as casks]' \
'--cc[Attempt to compile using the specified compiler, which should be the name of the compiler'\''s executable, e.g. `gcc-7` for GCC 7. In order to use LLVM'\''s clang, specify `llvm_clang`. To use the Apple-provided clang, specify `clang`. This option will only accept compilers that are provided by Homebrew or bundled with macOS. Please do not file issues if you encounter errors while using this option]' \
'--colorpickerdir[Target location for Color Pickers (default: `~/Library/ColorPickers`)]' \
'--debug[If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory]' \
'--dictionarydir[Target location for Dictionaries (default: `~/Library/Dictionaries`)]' \
'--display-times[Print install times for each formula at the end of the run]' \
'--env[If `std` is passed, use the standard build environment instead of superenv. If `super` is passed, use superenv even if the formula specifies the standard build environment]' \
'--fetch-HEAD[Fetch the upstream repository to detect if the HEAD installation of the formula is outdated. Otherwise, the repository'\''s HEAD will only be checked for updates when a new stable or development version has been released]' \
'--fontdir[Target location for Fonts (default: `~/Library/Fonts`)]' \
'--force[Install formulae without checking for previously installed keg-only or non-migrated versions. When installing casks, overwrite existing files (binaries and symlinks are excluded, unless originally from the same cask)]' \
'--force-bottle[Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation]' \
'--formula[Treat all named arguments as formulae]' \
'--git[Create a Git repository, useful for creating patches to the software]' \
'--help[Show this message]' \
'--ignore-dependencies[An unsupported Homebrew development flag to skip installing any dependencies of any kind. If the dependencies are not already present, the formula will have issues. If you'\''re not developing Homebrew, consider adjusting your PATH rather than using this flag]' \
'--include-test[Install testing dependencies required to run `brew test` formula]' \
'--input-methoddir[Target location for Input Methods (default: `~/Library/Input Methods`)]' \
'--interactive[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 package]' \
'--internet-plugindir[Target location for Internet Plugins (default: `~/Library/Internet Plug-Ins`)]' \
'--keep-tmp[Retain the temporary files created during installation]' \
'--language[Comma-separated list of language codes to prefer for cask installation. The first matching language is used, otherwise it reverts to the cask'\''s default language. The default value is the language of your system]' \
'--mdimporterdir[Target location for Spotlight Plugins (default: `~/Library/Spotlight`)]' \
'--no-binaries[Disable/enable linking of helper executables (default: enabled)]' \
'--no-quarantine[Disable/enable quarantining of downloads (default: enabled)]' \
'--only-dependencies[Install the dependencies with specified options but do not install the formula itself]' \
'--prefpanedir[Target location for Preference Panes (default: `~/Library/PreferencePanes`)]' \
'--qlplugindir[Target location for QuickLook Plugins (default: `~/Library/QuickLook`)]' \
'--quarantine[Disable/enable quarantining of downloads (default: enabled)]' \
'--quiet[Make some output more quiet]' \
'--require-sha[Require all casks to have a checksum]' \
'--screen-saverdir[Target location for Screen Savers (default: `~/Library/Screen Savers`)]' \
'--servicedir[Target location for Services (default: `~/Library/Services`)]' \
'--cask[List only casks, or treat all named arguments as casks]' \
'--debug[Display any debugging information]' \
'--formula[List only formulae, or treat all named arguments as formulae]' \
'--full-name[Print formulae with fully-qualified names. Unless `--full-name`, `--versions` or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are passed to `ls`(1) which produces the actual output]' \
'--help[Show this message]' \
'--multiple[Only show formulae with multiple versions installed]' \
'--pinned[List only pinned formulae, or only the specified (pinned) formulae if formula are provided. See also `pin`, `unpin`]' \
'--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]' \
'--versions[Show the version number for installed formulae, or only the specified formulae if formula are provided]' \
'-1[Force output to be one entry per line. This is the default when output is not to a terminal]' \
'-l[List formulae in long format]' \
'-r[Reverse the order of the formulae sort to list the oldest entries first]' \
'-t[Sort formulae by time modified, listing most recently modified first]' \
'--max-count[Print only a specified number of commits]' \
'--oneline[Print only one line per commit]' \
'--patch[Also print patch from commit]' \
'--quiet[Make some output more quiet]' \
'--stat[Also print diffstat from commit]' \
'--verbose[Make some output more verbose]' \
'-1[Print only one commit]' \
'::formula:__brew_formulae'
}
# brew ls
_brew_ls() {
_arguments \
'--cask[List only casks, or treat all named arguments as casks]' \
'--debug[Display any debugging information]' \
'--formula[List only formulae, or treat all named arguments as formulae]' \
'--full-name[Print formulae with fully-qualified names. Unless `--full-name`, `--versions` or `--pinned` are passed, other options (i.e. `-1`, `-l`, `-r` and `-t`) are passed to `ls`(1) which produces the actual output]' \
'--help[Show this message]' \
'--multiple[Only show formulae with multiple versions installed]' \
'--pinned[List only pinned formulae, or only the specified (pinned) formulae if formula are provided. See also `pin`, `unpin`]' \
'--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]' \
'--versions[Show the version number for installed formulae, or only the specified formulae if formula are provided]' \
'-1[Force output to be one entry per line. This is the default when output is not to a terminal]' \
'-l[List formulae in long format]' \
'-r[Reverse the order of the formulae sort to list the oldest entries first]' \
'-t[Sort formulae by time modified, listing most recently modified first]' \
'--fail-if-changed[Return a failing status code if changes are detected in the manpage outputs. This can be used to notify CI when the manpages are out of date. Additionally, the date used in new manpages will match those in the existing manpages (to allow comparison without factoring in the date)]' \
'--fetch-HEAD[Fetch the upstream repository to detect if the HEAD installation of the formula is outdated. Otherwise, the repository'\''s HEAD will only be checked for updates when a new stable or development version has been released]' \
'--formula[List only outdated formulae]' \
'--greedy[Print outdated casks with `auto_updates` or `version :latest`]' \
'--help[Show this message]' \
'--json[Print output in JSON format. There are two versions: v1 and v2. v1 is deprecated and is currently the default if no version is specified. v2 prints outdated formulae and casks. ]' \
'--quiet[List only the names of outdated kegs (takes precedence over `--verbose`)]' \
'--verbose[Include detailed version information]' \
'--appdir[Target location for Applications (default: `/Applications`)]' \
'--audio-unit-plugindir[Target location for Audio Unit Plugins (default: `~/Library/Audio/Plug-Ins/Components`)]' \
'--binaries[Disable/enable linking of helper executables (default: enabled)]' \
'--build-from-source[Compile formula from source even if a bottle is available]' \
'--cask[Treat all named arguments as casks]' \
'--colorpickerdir[Target location for Color Pickers (default: `~/Library/ColorPickers`)]' \
'--debug[If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory]' \
'--dictionarydir[Target location for Dictionaries (default: `~/Library/Dictionaries`)]' \
'--display-times[Print install times for each formula at the end of the run]' \
'--fontdir[Target location for Fonts (default: `~/Library/Fonts`)]' \
'--force[Install without checking for previously installed keg-only or non-migrated versions]' \
'--force-bottle[Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation]' \
'--formula[Treat all named arguments as formulae]' \
'--help[Show this message]' \
'--input-methoddir[Target location for Input Methods (default: `~/Library/Input Methods`)]' \
'--interactive[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 package]' \
'--internet-plugindir[Target location for Internet Plugins (default: `~/Library/Internet Plug-Ins`)]' \
'--keep-tmp[Retain the temporary files created during installation]' \
'--language[Comma-separated list of language codes to prefer for cask installation. The first matching language is used, otherwise it reverts to the cask'\''s default language. The default value is the language of your system]' \
'--mdimporterdir[Target location for Spotlight Plugins (default: `~/Library/Spotlight`)]' \
'--no-binaries[Disable/enable linking of helper executables (default: enabled)]' \
'--no-quarantine[Disable/enable quarantining of downloads (default: enabled)]' \
'--prefpanedir[Target location for Preference Panes (default: `~/Library/PreferencePanes`)]' \
'--qlplugindir[Target location for QuickLook Plugins (default: `~/Library/QuickLook`)]' \
'--quarantine[Disable/enable quarantining of downloads (default: enabled)]' \
'--quiet[Make some output more quiet]' \
'--require-sha[Require all casks to have a checksum]' \
'--screen-saverdir[Target location for Screen Savers (default: `~/Library/Screen Savers`)]' \
'--servicedir[Target location for Services (default: `~/Library/Services`)]' \
'--force[Delete all installed versions of formula. Uninstall even if cask is not installed, overwrite existing files and ignore errors when removing files]' \
'--formula[Treat all named arguments as formulae]' \
'--help[Show this message]' \
'--ignore-dependencies[Don'\''t fail uninstall, even if formula is a dependency of any installed formulae]' \
'--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]' \
'--zap[Remove all files associated with a cask. *May remove files which are shared between applications.*]' \
'--force[Delete all installed versions of formula. Uninstall even if cask is not installed, overwrite existing files and ignore errors when removing files]' \
'--formula[Treat all named arguments as formulae]' \
'--help[Show this message]' \
'--ignore-dependencies[Don'\''t fail uninstall, even if formula is a dependency of any installed formulae]' \
'--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]' \
'--zap[Remove all files associated with a cask. *May remove files which are shared between applications.*]' \
'--cask[Without text, list all locally available casks (including tapped ones, no online search is performed). With text, search online and locally for casks]' \
'--closed[Search for only closed GitHub pull requests]' \
'--debian[Search for text in the given package manager'\''s list]' \
'--debug[Display any debugging information]' \
'--desc[Search for formulae with a description matching text and casks with a name matching text]' \
'--fedora[Search for text in the given package manager'\''s list]' \
'--fink[Search for text in the given package manager'\''s list]' \
'--formula[Without text, list all locally available formulae (no online search is performed). With text, search online and locally for formulae]' \
'--help[Show this message]' \
'--macports[Search for text in the given package manager'\''s list]' \
'--open[Search for only open GitHub pull requests]' \
'--opensuse[Search for text in the given package manager'\''s list]' \
'--pull-request[Search for GitHub pull requests containing text]' \
'--quiet[Make some output more quiet]' \
'--ubuntu[Search for text in the given package manager'\''s list]' \
'--verbose[Make some output more verbose]'
}
# brew sh
_brew_sh() {
_arguments \
'--cmd[Execute commands in a non-interactive shell]' \
'--debug[Display any debugging information]' \
'--env[Use the standard `PATH` instead of superenv'\''s when `std` is passed]' \
'--force-auto-update[Auto-update tap even if it is not hosted on GitHub. By default, only taps hosted on GitHub are auto-updated (for performance reasons)]' \
'--full[Convert a shallow clone to a full clone without untapping. Taps are only cloned as shallow clones if `--shallow` was originally passed]' \
'--help[Show this message]' \
'--list-pinned[List all pinned taps]' \
'--quiet[Make some output more quiet]' \
'--repair[Migrate tapped formulae from symlink-based to directory-based structure]' \
'--shallow[Fetch tap as a shallow clone rather than a full clone. Useful for continuous integration]' \
'--verbose[Make some output more verbose]' \
'::tap:__brew_any_tap'
}
# brew tap-info
_brew_tap_info() {
_arguments \
'--debug[Display any debugging information]' \
'--help[Show this message]' \
'--installed[Show information on each installed tap]' \
'--json[Print a JSON representation of tap. Currently the default and only accepted value for version is `v1`. See the docs for examples of using the JSON output: https://docs.brew.sh/Querying-Brew]' \
'--no-compat[Do not load the compatibility layer when running tests]' \
'--online[Include tests that use the GitHub API and tests that use any of the taps for official external commands]' \
'--only[Run only test_script`_spec.rb`. Appending `:`line_number will start at a specific line]' \
'--quiet[Make some output more quiet]' \
'--seed[Randomise tests with the specified value instead of a random seed]' \
'--verbose[Make some output more verbose]'
}
# brew typecheck
_brew_typecheck() {
_arguments \
'--debug[Display any debugging information]' \
'--dir[Typecheck all files in a specific directory]' \
'--fail-if-not-changed[Return a failing status code if all gems are up to date and gem definitions do not need a tapioca update]' \
'--file[Typecheck a single file]' \
'--fix[Automatically fix type errors]' \
'--help[Show this message]' \
'--ignore[Ignores input files that contain the given string in their paths (relative to the input path passed to Sorbet)]' \
'--quiet[Silence all non-critical errors]' \
'--suggest-typed[Try upgrading `typed` sigils]' \
'--update[Update RBI files]' \
'--verbose[Make some output more verbose]'
}
# brew unbottled
_brew_unbottled() {
_arguments \
'--debug[Display any debugging information]' \
'--dependents[Don'\''t get analytics data and sort by number of dependents instead]' \
'--help[Show this message]' \
'--quiet[Make some output more quiet]' \
'--tag[Use the specified bottle tag (e.g. big_sur) instead of the current OS]' \
'--total[Output the number of unbottled and total formulae]' \
'--verbose[Make some output more verbose]' \
'::formula:__brew_formulae'
}
# brew uninstal
_brew_uninstal() {
_arguments \
'--cask[Treat all named arguments as casks]' \
'--debug[Display any debugging information]' \
'--force[Delete all installed versions of formula. Uninstall even if cask is not installed, overwrite existing files and ignore errors when removing files]' \
'--formula[Treat all named arguments as formulae]' \
'--help[Show this message]' \
'--ignore-dependencies[Don'\''t fail uninstall, even if formula is a dependency of any installed formulae]' \
'--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]' \
'--zap[Remove all files associated with a cask. *May remove files which are shared between applications.*]' \
'--force[Delete all installed versions of formula. Uninstall even if cask is not installed, overwrite existing files and ignore errors when removing files]' \
'--formula[Treat all named arguments as formulae]' \
'--help[Show this message]' \
'--ignore-dependencies[Don'\''t fail uninstall, even if formula is a dependency of any installed formulae]' \
'--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]' \
'--zap[Remove all files associated with a cask. *May remove files which are shared between applications.*]' \
'--debug[Display a trace of all shell commands as they are executed]' \
'--force[Always do a slower, full update check (even if unnecessary)]' \
'--help[Show this message]' \
'--merge[Use `git merge` to apply updates (rather than `git rebase`)]' \
'--preinstall[Run on auto-updates (e.g. before `brew install`). Skips some slower steps]' \
'--verbose[Print the directories checked and `git` operations performed]'
}
# brew update-license-data
_brew_update_license_data() {
_arguments \
'--debug[Display any debugging information]' \
'--fail-if-not-changed[Return a failing status code if current license data'\''s version is the same as the upstream. This can be used to notify CI when the SPDX license data is out of date]' \
'--exclude-packages[Exclude these packages when finding resources]' \
'--extra-packages[Include these additional packages when finding resources]' \
'--help[Show this message]' \
'--ignore-non-pypi-packages[Don'\''t fail if formula is not a PyPI package]' \
'--package-name[Use the specified package-name when finding resources for formula. If no package name is specified, it will be inferred from the formula'\''s stable URL]' \
'--print-only[Print the updated resource blocks instead of changing formula]' \
'--quiet[Make some output more quiet]' \
'--silent[Suppress any output]' \
'--verbose[Make some output more verbose]' \
'--version[Use the specified version when finding resources for formula. If no version is specified, the current version for formula will be used]' \
'--appdir[Target location for Applications (default: `/Applications`)]' \
'--audio-unit-plugindir[Target location for Audio Unit Plugins (default: `~/Library/Audio/Plug-Ins/Components`)]' \
'--binaries[Disable/enable linking of helper executables (default: enabled)]' \
'--build-from-source[Compile formula from source even if a bottle is available]' \
'--cask[Treat all named arguments as casks. If no named arguments are specified, upgrade only outdated casks]' \
'--colorpickerdir[Target location for Color Pickers (default: `~/Library/ColorPickers`)]' \
'--debug[If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory]' \
'--dictionarydir[Target location for Dictionaries (default: `~/Library/Dictionaries`)]' \
'--display-times[Print install times for each formula at the end of the run]' \
'--dry-run[Show what would be upgraded, but do not actually upgrade anything]' \
'--fetch-HEAD[Fetch the upstream repository to detect if the HEAD installation of the formula is outdated. Otherwise, the repository'\''s HEAD will only be checked for updates when a new stable or development version has been released]' \
'--fontdir[Target location for Fonts (default: `~/Library/Fonts`)]' \
'--force[Install formulae without checking for previously installed keg-only or non-migrated versions. When installing casks, overwrite existing files (binaries and symlinks are excluded, unless originally from the same cask)]' \
'--force-bottle[Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation]' \
'--formula[Treat all named arguments as formulae. If no named arguments are specified, upgrade only outdated formulae]' \
'--greedy[Also include casks with `auto_updates true` or `version :latest`]' \
'--help[Show this message]' \
'--ignore-pinned[Set a successful exit status even if pinned formulae are not upgraded]' \
'--input-methoddir[Target location for Input Methods (default: `~/Library/Input Methods`)]' \
'--interactive[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 package]' \
'--internet-plugindir[Target location for Internet Plugins (default: `~/Library/Internet Plug-Ins`)]' \
'--keep-tmp[Retain the temporary files created during installation]' \
'--language[Comma-separated list of language codes to prefer for cask installation. The first matching language is used, otherwise it reverts to the cask'\''s default language. The default value is the language of your system]' \
'--mdimporterdir[Target location for Spotlight Plugins (default: `~/Library/Spotlight`)]' \
'--no-binaries[Disable/enable linking of helper executables (default: enabled)]' \
'--no-quarantine[Disable/enable quarantining of downloads (default: enabled)]' \
'--prefpanedir[Target location for Preference Panes (default: `~/Library/PreferencePanes`)]' \
'--qlplugindir[Target location for QuickLook Plugins (default: `~/Library/QuickLook`)]' \
'--quarantine[Disable/enable quarantining of downloads (default: enabled)]' \
'--quiet[Make some output more quiet]' \
'--require-sha[Require all casks to have a checksum]' \
'--screen-saverdir[Target location for Screen Savers (default: `~/Library/Screen Savers`)]' \
'--servicedir[Target location for Services (default: `~/Library/Services`)]' \