node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

Use for Enterprise #442

Closed NizarYousri closed 6 years ago

NizarYousri commented 8 years ago

How can I use this tool with Enterprise user - need more details

NizarYousri commented 8 years ago

I can't provide password for the tool - only access token

henvic commented 8 years ago

Hi, I have just noticed there isn't a token-based authentication workflow as of now.

But if your credentials are set, it works.

"github_token": "your-token", "github_user": "henvic",

For example, say my token is FE012345ABCD6789.

I can add:

"github_user": "henvic",
"github_token": "FE012345ABCD6789"

to my .gh.json (for example, for the global, ~/.gh.json on Unix).

Let me know if that works for you.

protoEvangelion commented 6 years ago

@NizarYousri Closing as we have not heard back from you. Please let us know if you are still experiencing this issue :smile: