mise token github
- Usage:
mise token github [FLAGS] [HOST] - Source code:
src/cli/token/github.rs
GitHub token
Arguments
[HOST]
GitHub hostname
Default: github.com
Flags
--oauth
[experimental] 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
[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
--unmask
Show 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)