Combining brew update commands, and commands from the posts update-macos-via-cli-with-softwareupdate and manage-mac-appstore-apps-with-mas, an all in one alias was created that will update macOS System Software, Mac App Store Apps, and brew apps.
From the update-macos-via-cli-with-softwareupdate use the command softwareupdate -ia.
From the manage-mac-appstore-apps-with-mas include the command mas upgrade.
Use the brew update, upgrade, and cleanup to install pending updates and upgrades for brew managed apps.
brew update && brew upgrade && brew cleanup
Placing the alias updatemac=“softwareupdate -ia && mas upgrade && brew update && brew upgrade && brew cleanup” in my .zshrc file allows me to excute updatemac and the command line to update system, App Store, and brew managed apps.
alias updatemac="softwareupdate -ia && mas upgrade && brew update && brew upgrade && brew cleanup"