Schedule your Mac to turn on or off in Terminal
You can use the pmset
command line utility in Terminal to schedule specific times for your Mac to start up, sleep, restart, or shut down. You can do this if you want to be sure your Mac turns on before you come to work and turns off when you aren’t working.
In the Terminal app on your Mac, enter a
pmset
command. See the pmset man page for the list of commands you can use. For example, try any of the following:pmset -g sched
: See the current schedule.sudo pmset repeat wake M 8:00:00
: Schedule your Mac to wake at 8:00 a.m. every Monday.sudo pmset repeat cancel
: Cancel the current schedule.
Press Return.
Your Mac must be awake and you must be logged in for it to shut down at the scheduled time. If you’re not logged in or if your Mac is in sleep, it won’t shut down.
If FileVault is turned on, you must log in every time your Mac starts up. No account is permitted to log in automatically.
Note: If you have any documents open with unsaved changes, your Mac might not go to sleep or shut down when scheduled.