.nh .TH "GT-AUTH-LOGOUT" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-auth-logout - Log out of an account .SH SYNOPSIS \fBgt auth logout [] [flags]\fP .SH DESCRIPTION Log out of an account: gt forgets the account and deletes its stored credential. Git's other credential helpers are asked to forget what they stored for the account on the instance, such as a copy of its token that a keychain kept after a push. When the instance of default_host has no account left, default_host moves to the only other instance with accounts, or is unset. .SH OPTIONS \fB-h\fP, \fB--help\fP[=false] help for logout .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--debug\fP[=false] Log the method, URL, status, and duration of each HTTP request to stderr .PP \fB--host\fP="" Gitea instance \fBURL\fR, including any base path .PP \fB--interactive\fP[=false] Allow prompts with machine output .PP \fB--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .PP \fB--sudo\fP="" Perform API requests as this \fBuser\fR (requires an administrator account) .PP \fB--user\fP="" Account \fBname\fR on the selected instance .PP \fB-y\fP, \fB--yes\fP[=false] Accept confirmations without prompting .SH EXAMPLE .EX $ gt auth logout $ gt auth logout bob --host gitea.com # Without confirmation $ gt auth logout alice --yes .EE .SH SEE ALSO \fBgt-auth(1)\fP