.nh .TH "GT-TEAM-CREATE" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-team-create - Create a team .SH SYNOPSIS \fBgt team create [] [flags]\fP .SH DESCRIPTION Create a team in an organization. Name it as the second argument, as ORG/NAME, or with --name. .PP --permission grants read or write access to every repository unit, or admin access. Use --unit to set single units instead, or to override some of them. .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 create .PP \fB--name\fP="" Team name .PP \fB--permission\fP="read" Access to every repository unit; admin also manages repositories {read|write|admin} .PP \fB--unit\fP=[] Unit access, such as repo.code=write,repo.wiki=read; overrides --permission per unit .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 create acme developers --permission write $ gt team create acme/reviewers --unit repo.code=read,repo.pulls=write # give the team access to every repository of the organization $ gt team create acme ops --permission admin --all-repositories .EE .SH SEE ALSO \fBgt-team(1)\fP