# show all installed applications and their product identifiers
mas list
# list all applications with pending updates.
mas outdated
# install all pending updates
mas upgrade
For more info see:
mas -help
and for even more visit mas-cli/mas: Mac App Store command line interface