macOS Downloader is a command line tool for downloading macOS installers and beta updates
Download the latest version of macOS Downloader from the GitHub releases page.
Unzip the download and open Terminal. Type chmod +x and drag the script file to Terminal, then hit enter. Then drag the script file to Terminal, and hit enter.