brew list

List installed formulae/casks or their files. More information: https://docs.brew.sh/Manpage#list-ls-options-installed_formulainstalled_cask-.

brew list

brew list {{formula}}

brew list {{cask}}

brew list --formula

brew list --cask

brew list --pinned