/gh-user

Get GH user logged in information

Primary LanguageShellMIT LicenseMIT

GH user

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.

Why?

Installation

Prerequisites

  • Bash

gh cli extension

You can install gh-user as a gh cli extension!

gh extensions install tspascoal/gh-user

Verify installation

gh user

Usage

just call the extension with gh user

This will return:

-User:

  • Login
  • Name
  • Email
  • Scopes The scopes of the token
  • Token type (PAT, OAuth,etc,etc)

License

This code is licensed under MIT license.