gt auth
Manage authentication with Git providers.
Usage
Commands
| Command |
Description |
login |
Authenticate with a provider |
logout |
Remove stored credentials |
status |
Show authentication status |
Login
gt auth login <provider> [OPTIONS]
Providers
github - GitHub.com
gitlab - GitLab.com
Options
| Option |
Description |
--host <host> |
Custom hostname for self-hosted instances |
--token |
Use token-based auth instead of OAuth |
Examples
# GitHub OAuth (recommended)
gt auth login github
# GitHub with PAT
gt auth login github --token
# Self-hosted GitLab
gt auth login gitlab --host gitlab.company.com
Logout
gt auth logout [provider]
Options
| Option |
Description |
--all |
Logout from all providers |
Examples
# Logout from GitHub
gt auth logout github
# Logout from everything
gt auth logout --all
Status
Shows authentication status for all configured providers.