|||

Mac App Store Command Line Interface

What is mas-cli?

As stated in the mas-cli README, mas-cli is a simple command line interface for the Mac App Store. Designed for scripting and automation.

It allows all the GUI actions normally done in the Mac App Store, such as list installed apps, search for apps, install, upgrade, and purchase apps.

https://github.com/mas-cli/mas.git

Install mas-cli

Install the mas-cli at the command line by typing brew install mas.

brew install mas

List Available Command Options

Type mas with no options to see a list of available options.

List Installed App Store Apps

Typing mas list at the command line will show all App Store installed applications and their product identifiers.

mas list

Search for App Store Apps

Typing mas search at the command line will search the Mac App Store and return matching identifiers.

mas search twitter

Install App Store Apps

To install an app, at the command line type mas install with an application identifier. in the example the application identifier is for TweetDeck.

mas install 485812721

Listing and Installing Pendng Updates

To list applications with pending updates at the command line type mas outdated, and to install all the pending updates type mas upgrade.

mas outdated
mas upgrade

Up next Update macOS with softwareupdate command Update macOS with an all in one alias
Latest posts Update macOS with an all in one alias Mac App Store Command Line Interface Update macOS with softwareupdate command Markdown Crash Course Video What’s New with Fusion and Workstation [HCP1833] File IO in Python Overview of vSphere 7 Video What is ISO? Migrating Website HTML details Tag Microsoft RD Client iOS App Create VMware ESXi USB Install Media Intel NUC Lab Hosts Hardware Setup Installing Microsoft SQL 2016, and Management Studio Deploy VMware vCenter Appliance (VCSA) Installing the First Two Domain Controllers in the VMware ESXi 6.7 Lab Environment Macchanger Utility, and Usage Install a Kali Linux VM in a VMware ESXi 6.7 Environment Install Ubuntu 18.04 Virtual Machine in a VMware ESXi 6.7 Environment Install xRDP on Ubuntu 18.04 Install Chromium on Ubuntu 18.04 Install OpenSSH on Ubuntu 18.04 Install VMware Workstation 14 on Ubuntu 18.04 Nested ESXi server Laboratorium Rattus The Animal Within Who is Veeam? RSAC OnDemand Videos Create a Windows 10 Sandbox VM on VMware Workstation 14 RSA Conference 2018 Installing VMware Workstation 14 on Windows 10 VMware vExpert 2018 Announcement, Great News