Prevent your Mac from sleeping
Turn off the caffeine
Prevent your Mac from sleeping while an certain app is running
Get the status of the current caffeination
Toggle caffeination
Prevent your Mac from sleeping for a certain time