gh api
Make authenticated HTTP requests to the GitHub API and print the response. More information: https://cli.github.com/manual/gh_api.
- Display the releases for the current repository in JSON format:
gh api repos/:owner/:repo/releases
- Create a reaction for a specific issue:
gh api ''
- Display the result of a GraphQL query in JSON format:
gh api graphql ''
- Send a request using a custom HTTP method:
gh api
- Include the HTTP response headers in the output:
gh api
- Do not print the response body:
gh api --silent
- Send a request to a specific GitHub Enterprise Server:
gh api --hostname
- Display the subcommand help:
gh api --help
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
