Overview
Everyokra command that outputs JSON supports the --jq flag for inline filtering. This mirrors the gh CLI pattern — no separate | jq pipe needed.
--jq implies --json automatically.
Filter completed jobs
Extract just job IDs
Comma-separated IDs (for piping into okra task)
One-liner: pipe 3 completed jobs into a multi-doc task
- Lists all jobs as JSON
- Filters to completed only
- Takes the first 3
- Joins their IDs with commas
- Passes the result as the document list to
okra task
Filter by filename pattern
Sort by page count
Count jobs by status
Combine with other commands
Bulk cancel last N jobs
Reference
The--jq flag is available on any command that supports --json output. It uses your system’s jq binary, so any valid jq expression works.