gh api -H 'Accept: application/vnd.github+json' /repos/owner/repo

Category: GitHub CLI

gh api -H 'Accept: application/vnd.github+json' /repos/owner/repo

Make an API call with a custom Accept header

Makes an API call with a custom Accept header (needed for some GitHub API features).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.