MyVolume
in these commands with the name of your volume.--applicationpath
argument and installer path, similar to the way this is done in the command for El Capitan.createinstallmedia
command and the arguments that you can use with it, make sure that the macOS installer is in your Applications folder, then enter the appropriate path in Terminal: