Strait Docs
CLI

Trigger jobs and bulk trigger jobs from the CLI.

strait trigger

Shortcut for jobs trigger. Resolves job by ID first, then by slug (requires --project for slug resolution).

FlagTypeDefaultDescription
--payloadstringJSON payload for the job
--payload-filestringPath to a file containing the JSON payload
--priorityint0Job priority
--projectstringProject ID (required for slug resolution)

Examples

Trigger by ID with inline payload:

strait trigger job_123 --payload '{"key": "value"}'

Trigger by slug with payload from file:

strait trigger my-job-slug --project my-project --payload-file payload.json

Trigger with payload from stdin:

echo '{"key": "value"}' | strait trigger job_123 --payload -

jobs trigger

Trigger a job with full options.

FlagTypeDefaultDescription
--payloadstringJSON payload for the job
--payload-filestringPath to a file containing the JSON payload
--priorityint0Job priority
--scheduled-atstringRFC3339 timestamp for scheduled execution
--idempotency-keystringKey to ensure the job is triggered only once
strait jobs trigger job_123 --scheduled-at "2026-03-07T12:00:00Z"

jobs trigger-bulk

Trigger multiple instances of a job.

FlagTypeDefaultDescription
--items-jsonstringJSON array of payloads
--items-filestringPath to a file containing a JSON array of payloads
strait jobs trigger-bulk job_123 --items-file batch.json
Was this page helpful?

On this page