The gibmacOS is a Python2/3 script that can download macOS components direct from Apple and create installers from it.
To run this script simple issue the following command in your terminal:
./gibMacOS.command
This will give you a prompt to select the macOS version you wish to download. After downloading the correct version we can create an installer with:
./BuildmacOSInstallApp.command
Add the download folder as outputed by the first step. An installer will be added to your folder.
You can now create bootable media for your version. For reference check out the official Apple documentation: https://support.apple.com/en-us/HT201372
- FoxletFox for FetchMacOS and outlining the URL setup
- munki for his macadmin-scripts
- timsutton for brigadier
- wolfmannight for manOSDownloader_rc off which BuildmacOSInstallApp.command is based