Step 1: Install Homebrew

Go to and download and install HomeBrew. HomeBrew is a Mac OS package manager, a CLI utility for downloading and installing binaries for Mac OS.

Step 2: Install Macintosh App Store CLI (Command Line Interface) utility via HomeBrew

From your terminal, run the following command, brew install mas

This will only take a minute or so for the application to download and install.

Step 3: Download old macOS via the mas-cli utilty

The Mas CLI will let you download anything that you have purchased in the past. The way it works is running the command followed by the app store ID number. The following code would be used to download 10.7.

Example: mas install 444303913

Below is a list of Mac Store IDs for older versions of OS X. Note: you'll need a valid Apple Store ID that "purchased" older Mac OS versions via the App store You can see your purchases and their IDs using mas List.

  • OS X 10.7 Lion:444303913
  • OS X 10.8 Mountain Lion:537386512
  • OS X 10.9 Mavericks:675248567
  • OS X 10.10 Yosemite:915041082
  • OS X 10.11 El Capitan:1018109117
  • macOS 10.12 Sierra:1127487414
  • macOS 10.13 High Sierra:1246284741