These advanced steps are primarily for system administrators and others who are familiar with the command line. You don't need a bootable installer to upgrade macOS or reinstall macOS, but it can be useful when you want to install on multiple computers without downloading the installer each time.
The simplest way to create a boot USB drive is to download DiskMaker X and use it to create your drive. Generally, the latest version supports only the latest version of macOS; if you want to install something older than macOS High Sierra, check the list of older versions and download one that’s compatible with your chosen operating system.
MyVolumein these commands with the name of your volume.
* If your Mac is using macOS Sierra or earlier, include the
--applicationpath argument and installer path, similar to the way this is done in the command for El Capitan.
After typing the command:
Yto confirm that you want to erase the volume, then press Return. Terminal shows the progress as the volume is erased.
Determine whether you're using a Mac with Apple silicon, then follow the appropriate steps:
A bootable installer doesn't download macOS from the internet, but it does require an internet connection to get firmware and other information specific to the Mac model.
For information about the
createinstallmedia command and the arguments you can use with it, make sure that the macOS installer is in your Applications folder, then enter the appropriate path in Terminal: