Create Shortcuts Programmatically

Is it possible to generate Apple Shortcuts from a command line script?

My goal is to create a python or javascript program that will generate a .shortcut file to load onto devices. Sourcing the shortcut logic from a file with proper syntax. JSON or Markdown.

This project is what I’m looking for except there’s the issue that Shortcuts need a signed certificate to be shared even as a file.

Does this community have any experience with this?

Here is a clue:
Decompiling Apple Shortcuts

Apparently it used to be possible to self-sign a shortcut on Sonoma or before but the latest shortcuts CLI tool appears to have lost this signing ability.

Does anyone have suggestions for self-signing shortcuts without using iCloud share link?

Current outlook/hypothesis:
VM of Sonoma with iCloud signed in self-sign the .shortcutfile for ‘people-who-know-me’

Have you looked at Jellycuts?

Ref. Episode 81:

1 Like

Considering Jellycuts but strongly prefer a technical solution without another app dependency.
Thanks for the link I’ll listen to the episode.

Unfortunately, it seems JellyCuts is no longer actively maintained. Or at best has very limited updates. And the macOS version is nowhere to be found.