keepcalculator

06 Numbers and Powers

Mac Startup via Command Line: How to Schedule

Card No. 06·85006 · Updated · Standard formula, shown below

You can schedule your Mac to start up automatically using the pmset command in Terminal, which sets a wake or power-on time that the system firmware honors even if the Mac is fully shut down. The core command is sudo pmset repeat wakeorpoweron MTWRFSU 08:00:00, which schedules a daily 8:00 AM startup, and you can clear it with sudo pmset repeat cancel. This article explains the exact syntax, how to set one-time or recurring schedules, common pitfalls, and how to verify your settings.

What pmset Does and Why It Works

pmset (power management settings) is the built-in macOS tool for controlling power behavior. When you use the repeat subcommand, the schedule is written to the Mac’s NVRAM (non-volatile memory) or the System Management Controller (SMC), depending on the model. Because the schedule lives in firmware, it works even when the Mac is completely shut down—not just asleep. This is the same mechanism used by the Energy Saver / Battery settings pane in System Settings, but the command line gives you more control and allows scripting.

Note that pmset repeat schedules a wake or power on event, not a shutdown. To schedule a shutdown, you would use sudo pmset repeat shutdown with a time, but that is a separate setting.

Prerequisites and Basic Syntax

You need to run pmset with sudo, because changing power schedules requires administrator privileges. Open Terminal (in /Applications/Utilities) and type:

sudo pmset repeat wakeorpoweron MTWRFSU 08:00:00

The letters MTWRFSU represent the days of the week: M=Monday, T=Tuesday, W=Wednesday, R=Thursday, F=Friday, S=Saturday, U=Sunday. You can use any combination, in any order, but each letter can only appear once. For a single day, you would write just that letter, e.g., M for Monday only.

You can also use wake instead of wakeorpoweron—the difference is that wake only wakes the Mac from sleep, while wakeorpoweron also powers it on from a full shutdown. For most scheduling purposes, wakeorpoweron is what you want.

How to Set a One-Time Schedule

If you need the Mac to start only once at a specific date and time, use the schedule subcommand instead of repeat. The syntax is:

sudo pmset schedule wakeorpoweron "MM/dd/yyyy HH:mm:ss"

For example, to start the Mac on March 15, 2025 at 6:30 AM:

sudo pmset schedule wakeorpoweron "03/15/2025 06:30:00"

This is a one-time event; it will not repeat. To cancel it before it fires, use sudo pmset schedule cancel.

How to Check and Cancel the Schedule

To see what schedules are currently set, run:

pmset -g sched

This prints something like:

Repeating power events:
  wakeorpoweron at 8:00AM Monday-Friday

To remove all repeating schedules, use:

sudo pmset repeat cancel

To cancel a one-time schedule, use:

sudo pmset schedule cancel

These commands are safe—they only clear the schedule, not any other power settings.

Common Problems and How to Avoid Them

  • Schedule doesn’t work when the Mac is shut down: On some older Macs, wakeorpoweron may not work if the Mac is fully off. Test with your model. If it fails, try using wake instead, but that only works from sleep.
  • Using the wrong day letters: A common mistake is using R for Wednesday or U for Saturday. Remember: R=Thursday, U=Sunday.
  • Time zone issues: The schedule uses the time zone set in System Settings. If you travel, the schedule will fire at the local time of the new time zone. There is no way to set a UTC-based schedule with pmset.
  • Permissions errors: If you get “You cannot change the settings of this computer,” make sure you are using sudo and that your user account has administrator privileges.
  • Schedule not showing in System Settings: The Energy Saver pane may not display schedules set via command line, but they are active. Use pmset -g sched to verify.

Alternatives to pmset

If you prefer a GUI, the Energy Saver (or Battery) settings in System Settings has a “Schedule” button that lets you set a startup or wake time. However, it only offers a simple daily or weekday/weekend choice, not arbitrary day combinations. For more complex schedules, you can use a third-party app, but pmset is built-in and free.

Another alternative is to use the caffeinate command to prevent sleep, but that does not schedule a startup—it only keeps the Mac awake. For true scheduling, pmset is the standard tool.

Frequently Asked Questions

Does pmset work on Apple Silicon Macs?

Yes, pmset works on Apple Silicon (M1, M2, etc.) and Intel Macs. The schedule is stored in the same way, and the command syntax is identical. However, if your Mac has a firmware password set, you may need to enter it before the schedule can be changed.

Can I schedule a startup for weekdays only?

Yes, use the letters for the days you want, e.g., MTWRF for Monday through Friday. There is no built-in “weekday” keyword, so you must list the letters.

Why does my Mac not start up when shut down?

Some Mac models (especially older ones) do not support power-on from a full shutdown via pmset. They only support wake from sleep. Check your model’s specifications or test it. If it doesn’t work, you can set the Mac to sleep instead of shutting down, and use wake.

What is the difference between wake and wakeorpoweron?

wake only wakes the Mac from sleep (it must be asleep, not off). wakeorpoweron will also power on from a full shutdown. Use wakeorpoweron for most cases.

How do I set a schedule that repeats every day?

Use all seven letters: MTWRFSU. For example: sudo pmset repeat wakeorpoweron MTWRFSU 07:30:00.

Can I schedule a shutdown as well?

Yes, you can use sudo pmset repeat shutdown MTWRFSU 23:00:00 to shut down at 11 PM on weekdays. However, be careful: if the Mac is already off, the shutdown schedule will do nothing. Also, scheduled shutdowns can interrupt unsaved work, so use with caution.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →