Show information about the user currently logged (or token being used) in with GitHub CLI.
This means either the user logged it or token being used (eg: GH_TOKEN).
Note
The CLI auth status
does the same thing as this extension with the exception of identifying the token type.
Bash
You can install gh-user
as a gh cli extension!
gh extensions install tspascoal/gh-user
gh user
just call the extension with gh user
This will return:
-User:
- Login
- Name
- Scopes The scopes of the token
- Token type (PAT, OAuth,etc,etc)
This code is licensed under MIT license.