Skip to main content

Shell Commands

The shell step type executes shell commands and captures their output for extraction and assertion.

Single Command

Multiple Commands

When you run multiple commands, they execute sequentially. The last command’s output is stored in stdout and stderr:

Parallel Commands

Use parallel: true to execute commands concurrently:
All three commands start simultaneously. The step completes when all finish. When parallel, outputs are stored as stdout_0, stdout_1, etc.:

Timeout

Prevent runaway commands with a timeout:
Valid duration formats: 30s, 5m, 1h, 500ms.

Working Directory

Run commands from a specific directory:

Extracting JSON from Output

If the shell command outputs JSON, you can extract values:

Output Variables

After a shell step, these variables are available:

Assertions on Output

Ignoring Shell Errors

Template Variables

All command strings support template variables:

What’s Next?