In this guide

Run Command

Run a shell command on the server and get what it printed.

Action referenceChange

What this action does #

First, connect SSH in Services. Then open Actions → + → SSH and choose Run Command.

What a run does

Running or testing this action does something on the computer itself.

More about this action

Runs the command in the user's login shell, from their home folder, exactly as typed. Output is what the command printed; Error Output is what it printed as errors. A command that ends with a non-zero exit code stops the action, unless Stop on Failure is off — then Exit Code says how it ended.

Inputs to fill in #

Open an input to choose its value. Keep a fixed value with Text, receive it from Shortcuts, ask when the action runs, or use an Earlier Step. Read how input sources work.

Command

RequiredText

Any shell command. Insert values from Shortcuts or an earlier step with {…}.

Example value (replace with your own):
uptime

Stop on Failure

OptionalOn or off

On, a command that fails stops the action with its message. Off, the action carries on and Exit Code says what happened.

Default: true

What comes back #

In the action editor, open Output → Returned Value to choose fields for your shortcut. These are the response fields described by the app; a service may omit an optional field or return an empty list. JSON File contains the full response.

Returned fieldTypeMeaning
outputstringWhat the command printed.
errorOutputstringWhat the command printed as errors.
exitCodeinteger0 when the command succeeded.

Run it from Shortcuts #

  1. Give the action a recognizable name and tap Save.
  2. In Apple Shortcuts, add Shortcutify’s Execute Action and select the saved action.
  3. Supply any Param or File slots you bound in the inputs, then run the shortcut.

If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.

Advanced reference #

Request, permissions, and identifiers

On the computer: command, over a signed-in SSH session. No web request is made.

Action identifier: ssh.command.run.v1

No additional per-action permissions are declared in the app’s catalog. The integration’s connection and account access rules still apply.

InputKey
Commandcommand
Stop on FailurefailOnError

SSH setup reference