Auth Token
ghqc auth token prints the resolved token for the selected host using the same auth priority order that ghqc uses for API requests.
ghqc auth tokenWhy Use It
Section titled “Why Use It”This command is mainly useful when you want to:
- confirm which source is currently winning
- debug host-specific auth issues
- hand the resolved token to another local tool
Examples
Section titled “Examples”ghqc auth tokenghqc auth token --host github.comOptions
Section titled “Options”| Flag | Description |
|---|---|
--host | GitHub host to resolve, such as github.com or ghe.example.com. |
- Host resolution uses
--hostfirst, then the current repository remote. - The command follows the same auth priority order documented in
ghqc auth status.