sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/HighSierra Use code with caution.

Download and install (runs on a free 15-day trial).