Create a bootable ISO of OS X / macOS, from the installation app file.
The appropriate installation app file(s) must be located in /Applications
i.e.
/Applications/Install macOS Monterey.app
/Applications/Install macOS Big Sur.app
/Applications/Install macOS Catalina.app
/Applications/Install macOS Mojave.app
/Applications/Install macOS High Sierra.app
/Applications/Install macOS Sierra.app
/Applications/Install OS X El Capitan.app
/Applications/Install OS X Yosemite.app
/Applications/Install OS X Mavericks.app
Mac users can download theses files from the App Store.
Install with Homebrew
$ brew tap busterc/tap
$ brew install osx-iso
$ osxiso
1) macOS Monterey 4) macOS Mojave 7) OS X El Capitan 10) Quit
2) macOS Big Sur 5) macOS High Sierra 8) OS X Yosemite
3) macOS Catalina 6) macOS Sierra 9) OS X Mavericks
Select OS or Quit:
ISC License (ISC)
Copyright © 2015-2021, Buster Collings
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.