Create a Bootable macOS Installation Disk


The createinstallmedia utility can be used to create a bootable macOS installation disk, which is useful for installing macOS on multiple Macs without downloading the installer over the Internet each time:

/path/to/macOS/ --volume /path/to/installation/media/volume --applicationpath /path/to/macOS/ --nointeraction

For example, to use an external drive named myDrive to create an installation disk for macOS High Sierra the following command can be used:

sudo /Applications/Install\ macOS\ High\ --volume /Volumes/myDrive --applicationpath /Applications/Install\ macOS\ High\ --nointeraction

Gist on GitHub