.nh .TH "GT-ADMIN-USER-EDIT" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-admin-user-edit - Edit an account .SH SYNOPSIS \fBgt admin user edit [flags]\fP .SH DESCRIPTION Edit an account .SS JSON FIELDS .EX active, admin, created_at, description, email, full_name, id, location, prohibit_login, restricted, url, username, visibility, website .EE .SH OPTIONS \fB--active\fP[=false] Activate account (use =false to revoke) .PP \fB--admin\fP[=false] Administrator privileges (use =false to revoke) .PP \fB--allow-create-organization\fP[=false] Allow creating organizations (use =false to revoke) .PP \fB--allow-git-hook\fP[=false] Allow Git hooks (use =false to revoke) .PP \fB--allow-import-local\fP[=false] Allow local repository imports (use =false to revoke) .PP \fB--description\fP="" Profile description .PP \fB--email\fP="" Email address .PP \fB--full-name\fP="" Display name .PP \fB-h\fP, \fB--help\fP[=false] help for edit .PP \fB--location\fP="" Location .PP \fB--max-repo-creation\fP=0 Repository creation limit (-1 uses the instance default) .PP \fB--must-change-password\fP[=false] Require password change on next sign-in (use =false to disable) .PP \fB--password\fP="" Password (prefer --password-file) .PP \fB--password-file\fP="" Read password from file or - for stdin; remove one trailing line ending .PP \fB--prohibit-login\fP[=false] Prohibit signing in (use =false to revoke) .PP \fB--restricted\fP[=false] Restrict account access (use =false to revoke) .PP \fB--visibility\fP="" Profile visibility {public|limited|private} .PP \fB--website\fP="" Website URL .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 admin user edit bob --full-name "Bob Builder" --restricted # reset a password and require a new one on the next sign-in $ gt admin user edit bob --password-file pw.txt --must-change-password # revoke administrator privileges $ gt admin user edit bob --admin=false .EE .SH SEE ALSO \fBgt-admin-user(1)\fP