Before you install, make sure that your Mac is connected to the Internet, which allows installation of both macOS and any firmware updates available for your Mac.
Use Mobile Device Management (MDM)
Use the 'startosinstall' method
If you're installing from and to your computer's startup disk, you can use the
startosinstall command in the Contents/Resources directory of the macOS installer.
- To specify more packages to install after macOS, add the
--installpackageflag. To build these packages, use the
- If you're installing macOS 10.13.4 or later and the volume is part of an APFS container, you can use the
--eraseinstallflag to erase your current startup disk first. This process erases all volumes in the APFS container unless you also add the
--preservecontainerflag, available in macOS Mojave 10.14.
- For more information about
startosinstall, add the
--usageflag to the command.
Use another installation method
Apple doesn't recommend or support monolithic system imaging as an installation method. The system image might not include model-specific information such as firmware updates.