Mas Updates and Installs Mac App Store Apps From the Command Line
Mac: To manually update any apps you download from the Mac App Store, you must open the app, click the download tab, wait for the update, then click the Update All button. Mas is a small command line interface that lets you do all of this from your favorite Terminal application.
To install Mas, you first need to install Homebrew and then type brew install mas
to install it. Once that’s done, you have a few simple commands for all Mac App Store updates:
-
mas list
gives you a list of all installed applications. -
mas outdated
shows all applications with pending updates. -
mas upgrade
upgrades all applications. -
mas search app name
searches the App Store for an app. You will want to write down the App ID number if you want to install it. -
mas install application number
installs this application.
It’s a little harder to figure out how to use Mas for app purchases, but if you know what you’re looking for or just want to update your apps, it works great.
This will not handle macOS system updates that also appear in the Mac App Store, but you can run softwareupdate -l
to get a list of them, and sudo softwareupdate -iva
to update them.
Mac | GitHub via How-To Geek