.nh .TH "GT-LABEL-CREATE" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-label-create - Create a label .SH SYNOPSIS \fBgt label create [flags]\fP .SH DESCRIPTION Create a label. Without --color, the label gets a random color. A label with the same name, ignoring case, is refused unless --force updates it. Without a name on a terminal, prompts ask for the name, color and description. .SS JSON FIELDS .EX color, description, exclusive, id, is_archived, name .EE .SH OPTIONS \fB--archived\fP[=false] Archive the label so that it cannot be applied anymore .PP \fB-c\fP, \fB--color\fP="" Color as six hexadecimal \fBdigits\fR, such as d73a4a .PP \fB-d\fP, \fB--description\fP="" Description of the label .PP \fB--exclusive\fP[=false] Allow only one label of its scope, such as priority/high, per issue .PP \fB-f\fP, \fB--force\fP[=false] Update the label if one with the same name exists .PP \fB-h\fP, \fB--help\fP[=false] help for create .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--csv\fP[=""] Output CSV with the specified comma-separated \fBfields\fR, or all fields .PP \fB--cwd\fP="" Working \fBdirectory\fR for repository discovery .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--org\fP="" Manage the labels of an \fBorganization\fR instead of a repository .PP \fB--remote\fP="" Git \fBremote\fR used for repository discovery .PP \fB-R\fP, \fB--repo\fP="" Select a repository as \fBOWNER/REPO\fR or URL .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 label create bug --color d73a4a --description "Something is broken" $ gt label create "priority/high" --exclusive # Update the label if it exists $ gt label create bug -c ee0701 --force .EE .SH SEE ALSO \fBgt-label(1)\fP