How to Create a Bootable macOS USB Installer via Terminal

If you need to install macOS on multiple Mac computers, or you want to perform a clean installation to fix persistent system issues, creating a bootable USB installer is the best method. While there are third-party apps available, the safest and most reliable way to create one is by using the official createinstallmedia command in the macOS Terminal.

What You Need

  • A USB flash drive with at least 16GB of storage. It will be completely erased.
  • The macOS installer application downloaded from the Mac App Store (it should be sitting in your Applications folder).

Step-by-Step Instructions

  1. Insert your USB drive into your Mac.
  2. Open Disk Utility (found in Applications > Utilities) and format the USB drive as Mac OS Extended (Journaled). Name the drive MyVolume to make the command easier.
  3. Open the Terminal app.
  4. Type the following command (this example assumes you are installing macOS Sonoma and named your drive MyVolume):
    sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
  5. Press Return. You will be prompted to enter your Mac’s administrator password.
  6. Terminal will warn you that the drive is about to be erased. Press Y and hit Return to confirm.

The process can take anywhere from 10 to 30 minutes depending on the speed of your USB drive. Once Terminal displays “Install media now available”, your bootable macOS USB is ready to use.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.

Receive our best articles and tips delivered straight to your inbox.