Skip to main content

Overview

Variables let you parameterize runbooks. Define them in the variables section and reference them in step values with {{variableName}} syntax.

Definition

Variable fields

Variable sources

Resolution priority

At execution time, variables are resolved in priority order: secrets > data > context > env > expression > fixed > prompt. The first match wins. For a detailed breakdown of each source, see Variables & Secrets: Resolution priority.
In SDK mode, prompt source is not available. Unresolved required variables will throw an error.

Using variables in steps

Reference variables in any string field using {{variableName}}:

Sensitive variables

Mark variables as sensitive: true to prevent their values from appearing in logs and reports:
Values passed via --secrets (CLI) or the secrets option (SDK) are automatically treated as sensitive.

Batch execution with data source

When using --data, map variable names to CSV/JSON columns with dataSource:
The runbook executes once per data row, with variables populated from each row.