Skip to content

mise token github

Display the GitHub token mise will use for a given host

Shows which token source mise would use, useful for debugging authentication issues. The token is masked by default.

Arguments

  • [HOST] — GitHub hostname

    Default: github.com

Flags

  • --oauth — Resolve only via the native GitHub OAuth source (cache, refresh, or device-code flow), bypassing other token sources
  • --raw — Print only the token value
  • --refresh — Mint a fresh OAuth token even if the cached one has not expired, via the refresh-token grant or a new device-code flow. Use after changing the GitHub App's installations or permissions: cached tokens keep their original access until they expire
  • --unmask — Show the full unmasked token
  • -h --help — Print help

Examples:

$ mise token github
github.com: ghp_…xxxx (source: GITHUB_TOKEN)

$ mise token github --unmask
github.com: ghp_xxxxxxxxxxxx (source: GITHUB_TOKEN)

$ mise token github github.mycompany.com
github.mycompany.com: (none)

$ mise token github --oauth --refresh
github.com: gho_…xxxx (source: GitHub OAuth)
MIT LicenseCopyright © 2026jdx.dev