Skip to main content

Shell Script Action

Run shell commands directly from Radial using zsh.

What It Does​

The Shell Script action executes commands in zsh, letting you automate anything you can do in Terminal.

Basic Usage​

Commands run exactly as they would in your terminal:

echo "Hello"
open ~/Documents
say "Task complete"

Variables​

Capturing Output​

Use the Capture Output button to save a command's result as a variable, which can then be used in later actions.

Using Variables as Input​

Reference any variable in your script using curly braces:

echo "Hello, {userName}"
open "{filePath}"

Variables are substituted before the script runs, so you can use them anywhere in the command.

Tips​

Multi-line scripts — Chain multiple commands together:

cd ~/Documents
mkdir -p "ProjectName"
echo "Created folder"

Test in Terminal first — Paste your command into Terminal before adding it to Radial to make sure it works as expected.