Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

southerndoc

Contributor
Original poster
May 15, 2006
1,891
547
USA
I'm still toying with the idea of doing a fresh installation for a new Mac Studio arriving tomorrow.

Is there a way to automatically install all purchased macOS apps from the app store if doing a clean install? Have a feeling I'll have to do it manually, but thought I would ask.
 
Is there a way to automatically install all purchased macOS apps from the app store
All? In my case it would be thousands :)

You can automate the installation of apps from the App Store with mas-cli https://github.com/mas-cli/mas
Install the latest release (mas-2.3.0.pkg at the moment https://github.com/mas-cli/mas/releases/download/v2.3.0/mas-2.3.0.pkg), sign in into the App Store and use mas from Terminal to install apps. Example for iMovie:

Code:
mas install 408981434

You can include all apps in a script and run it after a fresh install. Example for Pages, Numbers, Keynote and iMovie

Code:
#!/bin/zsh
mas install 409201541
mas install 09203825
mas install 409183694
mas install 408981434

You can get the ID of each app from App Store, share button – copy link
Pages https://apps.apple.com/app/pages/id409201541
Numbers https://apps.apple.com/app/numbers/id409203825
Keynote https://apps.apple.com/app/keynote/id409183694
iMovie https://apps.apple.com/app/imovie/id408981434
 
Can you run Migration Assistant after setting up the computer to install the apps? I’ve never tried it but wondered if it’s possible?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.