.nh .TH "GT-TEAM-EDIT" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-team-edit - Edit a team .SH SYNOPSIS \fBgt team edit [flags]\fP .SH DESCRIPTION Edit a team. --permission sets every repository unit to read or write, or grants admin access. --unit changes single units and keeps the others, unless --unit-replace is passed. Only the description of an organization's owner team can be edited. .SS ARGUMENTS .EX A team can be supplied as ORG/TEAM, such as acme/developers, where TEAM is the team's name or ID, or as its numeric ID alone. .EE .SS JSON FIELDS .EX access, all_repositories, can_create_repo, description, id, name, organization, permission, units .EE .SH OPTIONS \fB--all-repositories\fP[=false] Access every organization repository (use =false to revoke) .PP \fB--can-create-repo\fP[=false] Allow creating organization repositories (use =false to revoke) .PP \fB-d\fP, \fB--description\fP="" Team description .PP \fB-h\fP, \fB--help\fP[=false] help for edit .PP \fB--name\fP="" Team name .PP \fB--permission\fP="" Access to every repository unit; admin also manages repositories {read|write|admin} .PP \fB--unit\fP=[] Unit access to change, such as repo.wiki=write; merged into the current policy .PP \fB--unit-replace\fP[=false] Replace the whole unit policy with --unit; omitted units lose access .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 team edit acme/developers --permission write # also let the team edit the wiki $ gt team edit acme/developers --unit repo.wiki=write $ gt team edit acme/developers --name devs --description "Core developers" .EE .SH SEE ALSO \fBgt-team(1)\fP