$ brew list
$ brew search <package-name>
$ brew outdated
$ brew update # updates brew itself
$ brew upgrade # upgrades all packages installed via brew
$ brew cleanup # by default, brew doesn't uninstall old versions. cleanup command will do the job
$ brew doctor # Checks brew state and returns error, if there are any issues