brew list installed code example
Example: brew see list of installed packages
brew list and brew list --cask
Running brew list will show a list of all your installed Homebrew packages.
In addition, brew list --cask will provide the items installed using Homebrew Cask.