.nh .TH "GT-LABEL-IMPORT" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-label-import - Create labels from a file .SH SYNOPSIS \fBgt label import [flags]\fP .SH DESCRIPTION Create the labels of a label file, one per line: "#color name", optionally followed by " ;description" and then by the flags in one last field: " ;exclusive", " ;archived" or " ;exclusive,archived". The description can be left out before the flags, as in "#7057ff priority/high ;exclusive". gt label export writes this format, and Gitea's label templates use it. Blank lines and lines starting with "# " or "##" are comments; any other line must be a valid label. Existing labels are refused unless --force updates them. .SS JSON FIELDS .EX color, description, exclusive, id, is_archived, name .EE .SH OPTIONS \fB-f\fP, \fB--force\fP[=false] Update labels that exist already .PP \fB-h\fP, \fB--help\fP[=false] help for import .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 import labels.txt $ gt label export --repo alice/old | gt label import - --repo alice/new .EE .SH SEE ALSO \fBgt-label(1)\fP