.nh .TH "GT-AUTH-STATUS" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-auth-status - Show the accounts gt can use .SH SYNOPSIS \fBgt auth status [flags]\fP .SH DESCRIPTION Show the accounts gt can use on each instance, the active one, and how they authenticate. A GITEA_TOKEN replaces the active account of its instance. Fails with exit code 4 when there is no account, or when a credential is missing or rejected, and with exit code 1 when --verify gets no answer from an instance. With --json it exits 0 either way; read credential_available, verified and error. .SS JSON FIELDS .EX active, credential_available, credential_store, error, expires_at, git_credential_helper, host, method, scopes, user, verified .EE .SH OPTIONS \fB-h\fP, \fB--help\fP[=false] help for status .PP \fB--verify\fP[=false] Check each credential against its instance .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--csv\fP[=""] Output CSV with the specified comma-separated \fBfields\fR, or all fields .PP \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-q\fP, \fB--jq\fP="" Filter JSON output using a jq \fBexpression\fR; implies --json .PP \fB--json\fP[=""] Output JSON with the specified comma-separated \fBfields\fR, or all fields .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 .SH EXAMPLE .EX $ gt auth status # Check the credentials against their instances $ gt auth status --verify $ gt auth status --host gitea.com --json .EE .SH SEE ALSO \fBgt-auth(1)\fP