Use the Mac App Store from the Command Line


I try to stay away from the Mac App Store. Why? Because 1. I try to avoid proprietary software as much as pososible and for the most part that’s totally viable ( at least in my case ) and 2. This.

Your case might be different. And that’s ok. But, you might want to avoid using a slow and bloated piece of software like the Mac App Store while continuing to take advantage from what it can offer you.

Here’s where mas comes in – a simple command line interface for the Mac App Store…


Install mas via Homebrew with brew install mas



To learn how to use mas, you can get a list of commands with mas help.


You can use tldr to check out a few examples of how to use mas.


NOTE: The sign in command will not work. Here’s the developer’s explanation

In macOS High Sierra (10.13) Apple removed the -[ISAccountService signInWithContext:replyBlock:] method from the StoreFoundation private Apple framework which this app relies on to authenticate users through the signin command. I have done a lot of digging and debugging but have not found another API that works to authenticate a user with the Mac App Store.

Users running older macOS versions (10.9-10.12) are unaffected.


Sign into the Mac App Store GUI app manually. Once signed in MAS app, the mas command should work fine.


And just to prove to you that I really try to avoid installing apps from the Mac App Store as much as possible, here’s the list that mas spits out of the installed Mac App Store apps on my machine.


For more info and troubleshooting check out the mas’ project page on Github.



We don't think that using an adblocker = piracy. That's simply not true. We use and recommend uBlock Origin.

However, as a small non-corporate website, we would appreciate it if you'd consider whitelisting FSM in your adblock of choice.

Alternatively, consider donating using the options below....

Monero (XMR) 43GnqUNJrTi9QyL7kEH8vM8pgWGCE6bjv1FSRipeNMM4TTeNnUVsRBb6MfMpQYxtLE7ReonxVVSXz2rFCEdW5H11LC3x73b
Bitcoin (BTC) 1Hfuq77gKKFJeNcq4EP4dQK3yDRWrFEwJR
Bitcoin Cash (BCH) qzmdm6e6q5wf2p6sxz2mst7cenz60newwc5m4e9js8
Ether (ETH) 0x5f02869278C24A6579d3820f52AD15936D6F9d69
More content?  
Ads Blocker Image Powered by Code Help Pro

Congrats on using an adblocker. We mean it.

Please support us by disabling your AdBlocker or whitelist us.

Thank you! ❤️