gh pr list --json number,title,headRefName --jq '.[] | "\(.number) \(.title)"'
List PRs as custom JSON-formatted lines
--json selects machine-readable fields and --jq applies a jq filter to reshape them, here printing number and title per line. The jq expression runs over the array of PR objects. This pattern feeds scripts, dashboards, and other tools without parsing gh's pretty table.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.