[Update] Unofficial Keyboard Maestro CLI

TLDR: https://github.com/Nosrac/KeyboardMaestroCLI

KeyboardMaestroCLI

An unofficial command line utility for interfacing with Keyboard Maestro. Currently only supports running macros.

Usage Example:

km run "Display Notification" -p "Yippity Doo!"

ARGUMENTS:

Name or ID of the script to run

OPTIONS:

-p, --parameter
Parameter to pass to your script
-h, --help Show help information.

ADDITIONAL SUBCOMMANDS

  enable                  Enables a macro
  disable                 Disables a macro
  macros                  List your macros
  groups                  List your macro groups
  variables               List your variables
  variable                Query, edit, delete variables
  raw                     Executes a raw script via XML

Is the only advantage over the existing script trigger just the brevity of the command?

1 Like

Yep. Apple announced their ArgumentParser for Swift library and I wanted to try something out.

It’s possible in the future I could add additional commands.

FYI, I went ahead and added several more subcommands. The most useful addition IMO is you can now set variables.