Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
githubFeature
cli
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cli
pkg
cmd
api
on
query-builder
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 25, 2021
Interactive api command
samcoe
committed
86112f2
View commit details
Copy full SHA for 86112f2
View code at this point
Browse repository at this point
Commits on Feb 11, 2021
Add more examples to `api` docs
Show description for 335f011
mislav
committed
335f011
View commit details
Copy full SHA for 335f011
View code at this point
Browse repository at this point
Commits on Nov 23, 2020
add IOStreams.ReadUserFile
vilmibm
committed
e92cd43
View commit details
Copy full SHA for e92cd43
View code at this point
Browse repository at this point
Commits on Nov 12, 2020
cleanup
samcoe
committed
414de33
View commit details
Copy full SHA for 414de33
View code at this point
Browse repository at this point
Add support for GH_TOKEN and GH_ENTERPRISE_TOKEN
samcoe
committed
a79a0bb
View commit details
Copy full SHA for a79a0bb
View code at this point
Browse repository at this point
Commits on Oct 21, 2020
Clarify the `--hostname` flag
mislav
authored
fbff1fc
View commit details
Copy full SHA for fbff1fc
View code at this point
Browse repository at this point
Document GH_HOST for api command
mislav
authored
228191b
View commit details
Copy full SHA for 228191b
View code at this point
Browse repository at this point
Move HostnameValidator to ghinstance
mislav
authored
460d55f
View commit details
Copy full SHA for 460d55f
View code at this point
Browse repository at this point
Adding a hostname flag option for use with gh api
wilso199
authored
3ecb9de
View commit details
Copy full SHA for 3ecb9de
View code at this point
Browse repository at this point
Commits on Sep 15, 2020
Add PAGER support to the `api` command
mislav
committed
50291aa
View commit details
Copy full SHA for 50291aa
View code at this point
Browse repository at this point
Commits on Sep 7, 2020
Add GITHUB_ENTERPRISE_TOKEN mention to `api` help
mislav
committed
ece17c4
View commit details
Copy full SHA for ece17c4
View code at this point
Browse repository at this point
Commits on Aug 14, 2020
Merge pull request #1517 from cli/select-host
Show description for d8c5b7b
mislav
authored
d8c5b7b
View commit details
Copy full SHA for d8c5b7b
View code at this point
Browse repository at this point
Commits on Aug 12, 2020
Allow explicitly specifying the hostname for gh operations
Show description for c095a4b
mislav
committed
c095a4b
View commit details
Copy full SHA for c095a4b
View code at this point
Browse repository at this point
Add documentation for ":branch" placeholder
mislav
authored
e7a8b1e
View commit details
Copy full SHA for e7a8b1e
View code at this point
Browse repository at this point
propagate error from closure
fsmiamoto
committed
800be37
View commit details
Copy full SHA for 800be37
View code at this point
Browse repository at this point
improve test cases
fsmiamoto
committed
bba2d6d
View commit details
Copy full SHA for bba2d6d
View code at this point
Browse repository at this point
use factory method for branch
Show description for b833428
fsmiamoto
committed
b833428
View commit details
Copy full SHA for b833428
View code at this point
Browse repository at this point
handle a detached head
fsmiamoto
committed
9ebcec9
View commit details
Copy full SHA for 9ebcec9
View code at this point
Browse repository at this point
add branch placeholder for api calls
fsmiamoto
committed
0c10f67
View commit details
Copy full SHA for 0c10f67
View code at this point
Browse repository at this point
Commits on Aug 7, 2020
Generalize REST error parsing
mmontes11
committed
27765f9
View commit details
Copy full SHA for 27765f9
View code at this point
Browse repository at this point
Commits on Aug 3, 2020
Merge pull request #1415 from cli/ghe-api
Show description for 2ab06ab
mislav
authored
2ab06ab
View commit details
Copy full SHA for 2ab06ab
View code at this point
Browse repository at this point
Commits on Jul 29, 2020
Support GraphQL `operationName` in `gh api` command
Show description for d26cd64
mislav
committed
d26cd64
View commit details
Copy full SHA for d26cd64
View code at this point
Browse repository at this point
Commits on Jul 23, 2020
Respect the hostname of current repository in queries
mislav
committed
288d013
View commit details
Copy full SHA for 288d013
View code at this point
Browse repository at this point
Commits on Jul 16, 2020
:nail_care: Improve readability of `api` example code
Show description for 75086f0
mislav
committed
75086f0
View commit details
Copy full SHA for 75086f0
View code at this point
Browse repository at this point
Add command line docs for supported environment variables
mislav
committed
9e4af47
View commit details
Copy full SHA for 9e4af47
View code at this point
Browse repository at this point
Commits on Jun 30, 2020
`api --silent` Changes:
Show description for 7a04bf1
AliabbasMerchant
committed
7a04bf1
View commit details
Copy full SHA for 7a04bf1
View code at this point
Browse repository at this point
Commits on Jun 29, 2020
Skip printing headers when --silent in api
AliabbasMerchant
committed
aa43c55
View commit details
Copy full SHA for aa43c55
View code at this point
Browse repository at this point
Commits on Jun 28, 2020
Added Test for --silent flag in api
AliabbasMerchant
committed
5e56e31
View commit details
Copy full SHA for 5e56e31
View code at this point
Browse repository at this point
--silent flag in api
AliabbasMerchant
committed
cb2308c
View commit details
Copy full SHA for cb2308c
View code at this point
Browse repository at this point
Commits on Jun 23, 2020
Automatically add `per_page=100` to paginated REST requests
Show description for c945fb4
mislav
committed
c945fb4
View commit details
Copy full SHA for c945fb4
View code at this point
Browse repository at this point
Commits on Jun 17, 2020
api command: add GraphQL support for `--paginate`
mislav
committed
f4ecd36
View commit details
Copy full SHA for f4ecd36
View code at this point
Browse repository at this point
Commits on Jun 16, 2020
Add assertion for 1st api request before pagination
mislav
committed
3f940c9
View commit details
Copy full SHA for 3f940c9
View code at this point
Browse repository at this point
api command: add support for REST pagination
mislav
committed
7907def
View commit details
Copy full SHA for 7907def
View code at this point
Browse repository at this point
Commits on Jun 11, 2020
Switch to `:owner`/`:repo` syntax for placeholders
mislav
committed
3f6d0bf
View commit details
Copy full SHA for 3f6d0bf
View code at this point
Browse repository at this point
api command: support `{owner}` and `{repo}` placeholders
Show description for acf0046
mislav
committed
acf0046
View commit details
Copy full SHA for acf0046
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.