Skip to content
ghqc

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.

Terminal window
ghqc auth token

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
Terminal window
ghqc auth token
Terminal window
ghqc auth token --host github.com
FlagDescription
--hostGitHub host to resolve, such as github.com or ghe.example.com.
  • Host resolution uses --host first, then the current repository remote.
  • The command follows the same auth priority order documented in ghqc auth status.