If you have a keyboard with an eject key, you can use ⌃⌥⌘ (control-option-command-eject).
If you have a laptop with a power key in place of an eject key, the power key can be substituted for eject in OS X v10.8 (Mountain Lion) and newer versions of OS X.
Other keyboard shortcuts:
- ⌃⌘ restarts the computer
- ⌥⌘ puts the computer to sleep
- ⌃⇧ puts displays to sleep
- ⌃ opens the dialog shown when pressing a power button or power key
- ⇧⌘Q logs out after showing a confirmation dialog
- ⌥⇧⌘Q logs out without showing a confirmation dialog
My keyboard doesn't have an eject or power key, so I normally use Alfred:

You could also assign a keyboard shortcut to a script like this:
tell app "System Events" to shut down
The shut down command sends loginwindow a kAEShutDown Apple event, which starts a normal shut down sequence as described in the Daemons and Services Programming Guide. sudo shutdown -h now does not for example allow graphical applications to ask for confirmation if there are unsaved changes.
I've read in numerous places that it's possible to shut down your Mac by holding down Ctrl/Option/Cmd and the power button. However, for me, it just signs me out.
Does this shortcut no longer work or is it only certain devices?
I have a MacBook Pro 13 with Touch Bar and running Ventura 13.1
If you have a keyboard with an eject key, you can use ⌃⌥⌘ (control-option-command-eject).
If you have a laptop with a power key in place of an eject key, the power key can be substituted for eject in OS X v10.8 (Mountain Lion) and newer versions of OS X.
Other keyboard shortcuts:
- ⌃⌘ restarts the computer
- ⌥⌘ puts the computer to sleep
- ⌃⇧ puts displays to sleep
- ⌃ opens the dialog shown when pressing a power button or power key
- ⇧⌘Q logs out after showing a confirmation dialog
- ⌥⇧⌘Q logs out without showing a confirmation dialog
My keyboard doesn't have an eject or power key, so I normally use Alfred:

You could also assign a keyboard shortcut to a script like this:
tell app "System Events" to shut down
The shut down command sends loginwindow a kAEShutDown Apple event, which starts a normal shut down sequence as described in the Daemons and Services Programming Guide. sudo shutdown -h now does not for example allow graphical applications to ask for confirmation if there are unsaved changes.
Well, while it's not "keyboard only" per se, you can open up a terminal and type in sudo shutdown -h now, which will send a signal to the kernel to shutdown the computer.
I'm not sure if that was exactly what you were looking for, but it should be a viable solution.
Apparently, another option is to use Command-Option-Control-Media Eject key, which will quit all applications and let you save documents/work and then shuts down the mac.
What is "shutdown your mac" keyboard shor… - Apple Community
macos - shortcut keys for shutdown, sleep and restart for mac - Stack Overflow
How to set up a keyboard shortcut for "Shut Down..."? | MacRumors Forums
Automatically Shutdown Mac
Videos
In System Preferences → Mission Control
- Change "Show Desktop" to F10
- Change "Show Dashboard" to F11
In System Preferences → Keyboard, open App Shortcuts.
- Click + to add a new shortcut.
- Leave Application as "All Applications".
- In Menu Title enter exactly this phrase (without quotation marks): "Shut Down…"
- Click cursor in the Keyboard shortcut field, then on keyboard hold "fn" key then select "F12" on Touch Bar
- Holding "fn" key and selecting "F12" on Touch Bar will bring up the shutdown prompt.
- Holding "fn" key and selecting "F10" will show desktop, holding "F11" will show dashboard.
"Have you tried using TOUCH ID as a substitute for Power Button in the regular shortcuts?"
holding down Touch ID will power off the computer, but it's a hard poweroff similar to holding down the power button on older machines for 5 seconds. I also can find no method for using the keyboard to initiate a normal shutdown. Bizarrely, the TouchBar has a sleep command that can be configured (see the bit about customize and expand here), but using modifier keys with the Touchbar sleep command like cmd or cmd-opt or cmd-opt-ctr will launch into the Energy Saver pane in System Preferences rather than sleep, restart or shut down..weird. Hopefully they'll add/fix this in a future software update. This is a BIG drawback for me as well in the new machine :(
Hi, I found the shortcut depicted below in a post on an AppleInsider blog. The intent of the shortcut is to close all applications. I have incorporated the shortcut and placed it on my dock. I initiate the shortcut right before I shut down my computer. My problem is that after invoking the shortcut, I still have to access the apple menu to initiate the shutdown.
My question is: is there a way to append the shortcut below to quit all applications and automatically shut down the computer as well?
Open Shortcuts on your Mac
Click the Plus icon in the upper right of the application to create a new Shortcut
In the Search Bar on the right side of the screen, type in "Quit"
Select "Quit App" under the Scripting section from the search results
When the action gets added, select "App" from within the action prompt
Select "All Apps" from the menu
Choose if you want any apps to stay open when closing others by clicking on the "Except" text of the Shortcut
Name your Shortcut and give it an icon to identify it by
Close the Shortcut by clicking on the red traffic icon