gh-auth1
Authenticate gh and git with github
Usage
gh auth
<command>
[flags]
Available commands
|
Log in to a GitHub account |
|---|---|
|
Log out of a GitHub account |
|
Refresh stored authentication credentials |
|
Setup git with GitHub CLI |
|
Display active account and authentication state on each known GitHub host |
|
Switch active GitHub account |
|
Print the authentication token gh uses for a hostname and account |
Exit status
0: Successful execution
1: Error
2: Command canceled
4: Authentication required
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.
Releases
3 releases since Debian 12 (Bookworm); the text changed 2 times.