mas

From RaySoft

A simple command line interface for the Mac App Store. Designed for scripting and automation.[1]

Syntax

mas SUBCOMMAND [VALUE ...]

Subcommand

install IDENTIFIER
Install or update an application with an IDENTIFIER.
list
Show all installed applications and their product identifiers.
outdated
List all applications with pending updates.
search NAME
Search for applications by NAME.
signin ACCOUNT [PASSWORD]
Sign into the Mac App Store for the first time.
upgrade [IDENTIFIER ...]
Install all pending updates or perform selectively by providing the IDENTIFIER(s).

Examples

Search the application to get its identifier
mas search 'Reeder'

Output:

1529448980  Reeder 5  (5.0.6)
Use the identifier to install the application
mas install '1529448980'
Install all my tools

~/dev/deploy-apps-libs.sh

Update the system and all my tools

~/dev/maintain-macos.sh

References