docs/cli/token/github.md
mise token githubmise token github [FLAGS] [HOST]src/cli/token/github.rsGitHub token
[HOST]GitHub hostname
Default: github.com
--oauth[experimental] Resolve only via the native GitHub OAuth source (cache, refresh, or device-code flow), bypassing other token sources
--rawPrint only the token value
--refresh[experimental] 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
--unmaskShow the full unmasked token
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)