How to authenticate Octokit via the GitHub CLI? #2614
Unanswered
electrovir
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use Octokit for a TypeScript script that I want to run locally on my own computer (only).
I already have the GitHub CLI installed (
gh
) and authenticated. How do I utilize that already-authenticated service to authenticate an Octokit class instance?I could just execute raw shell commands from my script (like
gh pr list
) but then I get none of the Octokit types or convenient API.Beta Was this translation helpful? Give feedback.
All reactions