mas wraps Mac App Store operations in a CLI for search, install, update, and uninstall. It targets scripting and automation on macOS with JSON output options.
Overview
mas is a command-line interface to the Mac App Store, built for scripting and hands-off automation on Mac computers. Instead of clicking through the store UI, you run terminal commands to discover apps, inspect metadata, manage installed titles, and keep software current.
Core commands cover searching and looking up apps, listing what is installed, detecting outdated releases, downloading free titles, installing purchases, bulk updates, uninstalls, and opening store or vendor pages. Many listing commands accept a JSON flag for structured output suitable for pipelines.
Several operations depend on macOS services. Installed-app data comes from Spotlight indexing, and install or update flows may require administrator privileges and a signed-in Apple Account. Outdated detection can run in a fast approximate mode or a slower accurate mode that consults download metadata to reduce false results.
App identifiers include numeric ADAM IDs and bundle IDs; mas accepts either form. Installers are distributed through GitHub releases for all macOS versions supported by each build.
Key features
- Search and lookup with JSON output
- List and inspect installed store apps
- Install, update, and uninstall apps
- Outdated detection with accuracy modes
- Spotlight-backed installed app data
- ADAM ID and bundle ID arguments
- Store page and vendor shortcuts
- Configuration and version commands
Use cases
- Automating Mac software rollout
- Inventorying App Store installs
- Scripted bulk updates
- CI or admin maintenance tasks
- Quick app metadata lookup