sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/隨身碟名稱 --applicationpath /Applications/Install\ macOS\ Sierra.app/ --nointeraction
#隨身碟名稱USB
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ Sierra.app/ --nointeraction
For Mojave
sudo /Applications/Install\ macOS\ Mojave.app//Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ Mojave.app/ --nointeraction