softwareupdate --fetch-full-installer
softwareupdate
command has some neat tricks up its sleeve, as pointed out by Armin Briegel:--fetch-full-installer
flag has a sub-flag: --full-installer-version
which allows you to download a specific version.softwareupdate --fetch-full-installer --full-installer-version 10.13.6