.nh .TH "GT-TAG-CREATE" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-tag-create - Create a tag .SH SYNOPSIS \fBgt tag create [flags]\fP .SH DESCRIPTION Create a tag on the server. It points to the head of the default branch, or to --target, a branch or a commit. A message with --message makes it an annotated tag, which records who made it and why; without one it is a lightweight tag. .PP To announce the tag with notes and files, create a release with gt release create instead, which makes the tag when it does not exist. .SS JSON FIELDS .EX annotated, commit, id, message, name, tagged_at, tagger, tagger_email, tarball_url, verification_reason, verified, zipball_url .EE .SH OPTIONS \fB--dry-run\fP[=false] Show the write requests gt would send, without sending them .PP \fB-h\fP, \fB--help\fP[=false] help for create .PP \fB-m\fP, \fB--message\fP="" Message of an annotated tag .PP \fB--target\fP="" Branch or commit to tag (default: the default branch) .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--csv\fP="" Output CSV with the specified comma-separated \fBfields\fR .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, of every field without --json .PP \fB--json\fP="" Output JSON with the specified comma-separated \fBfields\fR .PP \fB--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .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--template\fP="" Format JSON output using a Go \fBtemplate\fR, of every field without --json (see gt help formatting) .PP \fB--user\fP="" Account \fBname\fR on the selected instance .SH EXAMPLE .EX $ gt tag create v1.2.0 $ gt tag create v1.2.0 --target release/1.2 --message "Version 1.2.0" .EE .SH SEE ALSO \fBgt-tag(1)\fP