Mac App Store command line interface. mas-cli is a simple command line interface for the Mac App Store. Designed for scripting and automation. mas requires Swift 5 runtime support. macOS 10.14.4 and later include it, but earlier releases did not. Each application in the Mac App Store has a product identifier which is also used for mas-cli commands. Using mas list will show all installed applications and their product identifiers. It is possible to search for applications by name using mas search which will search the Mac App Store and return matching identifiers. Include the --price flag to include prices in the result. mas is integrated with homebrew-bundle. If mas is installed, and you run brew bundle dump, then your Mac App Store apps will be included in the Brewfile created. See the homebrew-bundle docs for more details. mas operates via the same system services as the Mac App Store.
Features
- Homebrew is the preferred way to install
- We provide a custom Homebrew tap with pre-built bottles for all macOS versions since 10.11
- Swift 5 Runtime Support
- Each application in the Mac App Store has a product identifier which is also used for mas-cli commands
- It is possible to search for applications by name using mas search which will search the Mac App Store
- Use mas outdated to list all applications with pending updates