Learn how to run a shortcut on your Mac with the Terminal command line interface instead of the usual graphical user interface.

Shortcuts are handy and powerful automations that can get things done on your iOS, iPadOS, or macOS devices, but let’s say you’re using your Mac and you want to trip off a shortcut like a pro — how would you do it? With Terminal, of course.
Also see: How to automatically play music at startup on Mac
Run shortcuts using the macOS Terminal
1) Open a Terminal window on your Mac
2) Find a shortcut that you want to launch and note its name.
3) In the Terminal window you opened earlier, enter the following command and press the return/enter key to launch the shortcut:
shortcuts run "enter shortcut name here"
So, if your shortcut’s name is Open App, the command line will be: shortcuts run "Open App"
You can also use \ space
to account for the space in the shortcut name. So, in addition to using shortcuts run "Open App"
, you can also use shortcuts run Open\ App
The Terminal now deploys your shortcut, and it should produce the desired output just as using the graphical user interface would.
Please note that every shortcut is different, and so what happens next depends entirely on the shortcut you decided to launch.
While running shortcuts via Terminal isn’t as time-friendly as using the graphical user interface that most Mac users already take advantage of, it’s a great way to show off and make everyone around think you’re a pro.
Additionally, you can check this detailed Apple Support document that lists more facts about running shortcuts from Mac’s Terminal.
On a related note: