Make a macOS installer with createinstallmedia and install Sonoma, the latest beta, or any macOS on multiple Macs, or do a clean install.
In this article, we’ll run through the steps necessary to create a bootable installer of the Mac operating system, whether it’s so you can install the latest version of the macOS on multiple Macs, install the latest macOS beta, perform a clean install of macOS, or just to be prepared with an emergency disk if your Mac experiences problems and you don’t want to connect to the internet in Recovery mode (or you can’t access Recovery mode).
If you want to find out how to make a bootable install of the latest macOS beta, macOS Sonoma, macOS Ventura, macOS Monterey, Big Sur, Catalina, Mojave, or an older version of Mac OS X or macOS, you’ve come to the right place.
You can also use your bootable installer to install macOS on a separate volume of your hard drive (or on a partition if you are running an older version of the Mac OS). It’s also a hassle-free way to go back to an older version of macOS and a great option if you found downloading the installer took a long time and you don’t fancy spending the next few days downloading it multiple times on multiple Macs. Once is quite enough!
Read more at MacWorld.com

