Set a repeating schedule in Terminal

First run pmset -g sched and save the existing schedule. For example, the command below requests a wake at 07:00 and sleep at 23:00, Monday to Friday, using the Mac’s local time. MTWRF represents those weekdays. It requires an administrator password and replaces the repeating schedule, so use it only when those times and changes are intended. Run pmset -g sched afterward to inspect the result.

To remove the repeating schedule, use sudo pmset repeat cancel. This cancels the current repeating schedule; it does not restore an earlier one. Apple notes that scheduled shutdown requires the Mac to be awake and the user logged in. Unsaved documents may prevent scheduled sleep or shutdown. A wake request is also different from starting a fully powered-off Mac.

sudo pmset repeat wake MTWRF 07:00:00 sleep MTWRF 23:00:00
pmset -g sched

Keep hardware scheduling separate from app rules

WattGuard conditions can include a schedule window, sleep state, power source, and battery threshold. These rules run while WattGuard is running. They can coordinate actions such as Wi-Fi off, Bluetooth off, quitting selected apps, or running a Shortcut with a timeout.

WattGuard does not promise to boot a powered-off Mac or schedule a hardware wake. If your requirement is for the Mac to wake at a specific time, assess the macOS schedule and your model's supported behavior. Do not treat an application window as a substitute for a hardware power event.

Validate one real cycle

After making one intentional system or app-level change, verify the next real cycle. For a sleep-drain investigation, compare timing, wake history, and battery change with normal sessions. If a schedule is unsuitable or unreliable for the workflow, remove it rather than stacking more automation around it.

Sources

Explore WattGuard