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).
| Flag | Type | Default | Description |
|---|---|---|---|
| --payload | string | JSON payload for the job | |
| --payload-file | string | Path to a file containing the JSON payload | |
| --priority | int | 0 | Job priority |
| --project | string | Project 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.jsonTrigger with payload from stdin:
echo '{"key": "value"}' | strait trigger job_123 --payload -jobs trigger
Trigger a job with full options.
| Flag | Type | Default | Description |
|---|---|---|---|
| --payload | string | JSON payload for the job | |
| --payload-file | string | Path to a file containing the JSON payload | |
| --priority | int | 0 | Job priority |
| --scheduled-at | string | RFC3339 timestamp for scheduled execution | |
| --idempotency-key | string | Key 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.
| Flag | Type | Default | Description |
|---|---|---|---|
| --items-json | string | JSON array of payloads | |
| --items-file | string | Path to a file containing a JSON array of payloads |
strait jobs trigger-bulk job_123 --items-file batch.jsonWas this page helpful?