sudo pmset -b sleep 0; sudo pmset -b disablesleep 1
and after reenable with
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0
or the mac will never sleep again
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1
and after reenable with
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0
or the mac will never sleep again