talira

Mac App Store command-line interface

open sourceMITself-hostablefree

mas is a command-line interface for the Mac App Store, designed for scripting and automation. It searches the store, looks up app details, lists installed and outdated apps, gets free apps, installs apps you already own, updates and uninstalls them, and outputs JSON for scripts. Homebrew Bundle uses it to put App Store apps in a Brewfile, and Topgrade uses it for updates. Installing and updating need an Apple Account signed in to the App Store and root privileges, and installed apps are found through Spotlight. MIT licensed, written in Swift.

Ways to install

Problems it solves

  • install my Mac App Store apps from a script when setting up a new Mac
  • include App Store apps in my Brewfile alongside Homebrew packages
  • update all my Mac App Store apps from the terminal
  • see which App Store apps on my Mac have updates waiting
  • find an App Store app's ID so I can automate installing it
  • list the App Store apps installed on a Mac as JSON
  • uninstall App Store apps from the command line

Features

  • search and lookup App Store apps
  • list installed and outdated apps
  • get free apps and install owned apps
  • update and uninstall apps
  • lucky installs the first match
  • JSON output
  • accepts ADAM IDs and bundle IDs
  • Homebrew Bundle and Topgrade integration

Limitations

  • Can't buy paid apps: purchase them in the App Store first, then install them with mas3
  • Doesn't install iOS or iPadOS apps on a Mac: only Mac App Store apps3
  • Doesn't update macOS or Safari: use softwareupdate for system software3

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what mas does.

  1. Mac App Store Discover, buy and download Mac apps, and keep them updated

Compare mas with the top 3