what’s keeping my Mac awake

pmset -g assertions

link: https://www.macworld.com/article/1168151/find-out-whats-keeping-your-mac-awake.html

If you are looking for the nuclear option like I was:

sudo systemsetup -setcomputersleep Never 

Schedules a repeating wake or power on event every tuesday at 12:00 noon, and a repeating sleep event every night at 8:00 PM.

pmset repeat wakeorpoweron T 06:00:00




link here:https://gist.github.com/pwnsdx/2ae98341e7e5e64d32b734b871614915