Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upgh api command does not connect to GitHub Enterprise Server #1942
Labels
Comments
|
Looks like you have to set the variable GH_HOST to use this with GitHub Enterprise Server |
|
Yes! Sorry for not making this clearer. We are going to improve the documentation, as well as likely offer a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When authenticated to a GitHub Enterprise Server and running the
gh api usercommand, it always tries to connect to api.github.com rather than my Enterprise Server.Steps to reproduce the behavior
gh api userNote: I get the above
error connecting to api.github.comas my proxy server setting is not set. But it should not be connecting to api.github.com it should be connecting to https://my.enterprise.server/apiExpected vs actual behavior
I would expect it to connect to my enterprise server (https://my.enterprise.server/api) as the
gh auth statusshows:Logs