docs/cli/token/github.md
mise token githubmise token github [FLAGS] [HOST]src/cli/token/github.rsDisplay 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.
[HOST] — GitHub hostname
Default: github.com
--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 helpExamples:
$ 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)