Skip to content

Instantly share code, notes, and snippets.

@2lach
Last active August 7, 2021 19:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2lach/3aa20fa740d5a3637c425f34c0c012be to your computer and use it in GitHub Desktop.
Save 2lach/3aa20fa740d5a3637c425f34c0c012be to your computer and use it in GitHub Desktop.
How to create a macOS installer on usb oneliner

Create installer MacOS/OSX

First of all: Insert USB drive (usally 8GB+ is needed). format w disk utility to GUID Partition Map and Mac OS Extended (Journaled).

can be downloaded from App Store or with: softwareupdate --fetch-full-installer

full syntax for specfic version is needed: softwareupdate --fetch-full-installer --full-installer-version 10.13.6

When it's downloaded run:

Example with Mojave

sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/<USBDRIVE_NAME> --nointeraction --downloadassets

For a beta version:

sudo /Applications/Install\ macOS\ Mojave\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/<USBDRIVE_NAME> --nointeraction --downloadassets

The “–downloadassets” flag is new in macOS Mojave It downloads assets which may be required during installation.

install commands and general re-install guide

Get the MacOS version you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment