TL;DR
Prevent your Mac from sleeping β without changing system settings. Perfect for downloads, backups, or long-running scripts.
How It Works
- Open Terminal (Cmd+Space β type "Terminal")
- Enter command:
caffeinateand press Enter - Your Mac won't sleep anymore (display can still turn off, but system stays active)
- Stop it: Press Ctrl+C in Terminal
Variants:
caffeinate -dβ display stays on toocaffeinate -t 3600β for 1 hour (3600 seconds)caffeinate -w <PID>β until a specific process finishes
Why This Helps
caffeinate is a macOS tool that temporarily overrides Power Management. Useful for:
- Downloads (overnight)
- Backups (TimeMachine, Cloud)
- Long scripts (automation, development)
- Presentations (display on, no screensaver interruptions)
Note: The Terminal window must stay open. You can run it in the background: caffeinate &
β οΈ Important: Don't forget to stop caffeinate β otherwise your Mac will never sleep!
Nerd Bonus: The name is a play on caffeine (coffee keeps you awake). β