.nh .TH "GT-ADMIN-USER-CREATE" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-admin-user-create - Create an account .SH SYNOPSIS \fBgt admin user create [] [flags]\fP .SH DESCRIPTION Create an account. On a terminal, gt asks for a missing username, email address and password; the new account must change its password on its first sign-in unless --must-change-password=false is passed. .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--admin\fP[=false] Administrator privileges (use =false to revoke) .PP \fB--email\fP="" Email address .PP \fB--full-name\fP="" Display name .PP \fB-h\fP, \fB--help\fP[=false] help for create .PP \fB--must-change-password\fP[=true] 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--username\fP="" Account username .PP \fB--visibility\fP="" Profile visibility, by default the instance's default {public|limited|private} .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 create carol --email carol@example.com # read the password from a file instead of a prompt $ gt admin user create ci-bot --email ci@example.com --password-file pw.txt --must-change-password=false .EE .SH SEE ALSO \fBgt-admin-user(1)\fP