erase-install
A script that automates downloading macOS installers
...It supports options for downloading the latest macOS version, preserving user settings, automating pre- and post-install scripts, and initiating the erase-and-install process without manual intervention. Itβs widely used in managed environments and compatible with MDM workflows.