CLI
sazabi automations
Command reference for sazabi automations.
sazabi automations — Manage scheduled automations. Subcommands: list, get, create, update, enable, disable, runs.
sazabi automations
Manage scheduled automations
sazabi automations <subcommand>sazabi automations list # List all automations
sazabi automations get <automation-id> # Get one automation
sazabi automations create deploy-nightly --script health --cron-expression '0 3 * * *' # Create from a DB-backed script by name
sazabi automations update <automation-id> --cron-expression '0 4 * * *' # Change the schedule
sazabi automations enable <automation-id> # Enable an automation
sazabi automations disable <automation-id> # Disable an automation
sazabi automations runs list <automation-id> # List runs for an automation
sazabi automations runs get <automation-id> <run-id> # Get one run
sazabi automations runs logs <automation-id> <run-id> # Get captured logs for a runsazabi automations list
List automations in the active project
sazabi automations list [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
--search | string | No | Filter by automation name (case-insensitive) |
--status | string | No | Filter by status: active or paused |
--source | string | No | Filter by source: sazabi_managed or custom |
--health | string | No | Filter by health: healthy, failing, or never_run |
--sort | string | No | Sort by: name, last_run, failures, or runs |
--limit | string | No | Maximum number of automations to return (default: 50, max: 100) |
--cursor | string | No | Pagination cursor from previous response |
sazabi automations list # List all automations
sazabi automations list --status paused # List paused automationssazabi automations get
Get one automation by ID
sazabi automations get <automation-id> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
sazabi automations get <automation-id> # Get one automationsazabi automations create
Create an automation
sazabi automations create <name> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
--description | string | No | Human-readable description (required for log-match automations) |
--script-id | string | No | Project script ID to run (cron automations) |
--script | string | No | Project script name to run (cron automations) |
--expression-id | string | No | Log-match expression ID to bind (creates a log-match investigation automation) |
--cron-expression | string | No | Cron schedule expression |
--timezone | string | No | IANA timezone for the schedule |
--timeout-seconds | string | No | Run timeout in seconds (1-3600) |
--enabled | boolean | No | Create the automation enabled |
sazabi automations create deploy-nightly --script health --cron-expression '0 3 * * *' # Create from a DB-backed script by name
sazabi automations create deploy-nightly --script-id <script-id> # Create by script ID
sazabi automations create "Investigate Plain tickets" --expression-id <uuid> --description "When a new Plain ticket is created, investigate …" # Create a log-match investigation automationsazabi automations update
Update an automation
sazabi automations update <automation-id> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
--name | string | No | New automation name |
--description | string | No | New human-readable description |
--clear-description | boolean | No | Clear the automation description |
--cron-expression | string | No | New cron schedule expression |
--timezone | string | No | New IANA timezone for the schedule |
--timeout-seconds | string | No | New run timeout in seconds (1-3600) |
sazabi automations update <automation-id> --cron-expression '0 4 * * *' # Change the schedulesazabi automations enable
Enable an automation
sazabi automations enable <automation-id> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
sazabi automations enable <automation-id> # Enable an automationsazabi automations disable
Disable an automation
sazabi automations disable <automation-id> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
sazabi automations disable <automation-id> # Disable an automationsazabi automations runs
Inspect automation runs
sazabi automations runs <subcommand>sazabi automations runs list <automation-id> # List runs for an automation
sazabi automations runs get <automation-id> <run-id> # Get one run
sazabi automations runs logs <automation-id> <run-id> # Get captured logs for a runsazabi automations runs list
List runs for an automation
sazabi automations runs list <automation-id> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
--status | string | No | Filter by run status: running, succeeded, failed, timed_out, or cancelled |
--limit | string | No | Maximum number of runs to return (default: 50, max: 100) |
--cursor | string | No | Pagination cursor from previous response |
sazabi automations runs list <automation-id> # List runs for an automation
sazabi automations runs list <automation-id> --status failed # List failed runssazabi automations runs get
Get one automation run by ID
sazabi automations runs get <automation-id> <run-id> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
sazabi automations runs get <automation-id> <run-id> # Get one automation runsazabi automations runs logs
Get the captured logs for an automation run
sazabi automations runs logs <automation-id> <run-id> [options]| Flag | Type | Required | Description |
|---|---|---|---|
--token | string | No | Override token |
--api-base-url | string | No | Override API base URL |
--json | boolean | No | Output as JSON |
--project-id | string | No | Override active project ID |
sazabi automations runs logs <automation-id> <run-id> # Get captured logs for a run