Run macOS Shortcuts by name from the command line and pass file input/output using the shortcuts CLI

domain: support.apple.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. List available shortcuts with: shortcuts list
  2. Run a shortcut by name with: shortcuts run "Shortcut Name"
  3. Pass an input file with the -i / --input-path flag: shortcuts run "Shortcut Name" -i /path/to/input.txt
  4. Capture output to a file with the -o / --output-path flag; the file extension hints the desired format: shortcuts run "Shortcut Name" -o /tmp/result.pdf
  5. Inspect available sub-commands with: shortcuts help — valid commands include run, list, view, and sign.

Known gotchas

Related routes

Pass input files and capture output from a macOS Shortcuts automation using the shortcuts command-line tool's -i/-o flags
desktop-automation · 6 steps · unrated
Run and chain a macOS Shortcut from the command line alongside osascript
support.apple.com · 6 steps · unrated
invoke Apple Shortcuts from shell scripts using the shortcuts CLI with input/output file piping
support.apple.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans