| GT-TAG-CREATE(1) | gitea-cli Manual | GT-TAG-CREATE(1) |
NAME
gt-tag-create - Create a tag
SYNOPSIS
gt tag create <tag> [flags]
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.
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.
JSON FIELDS
annotated, commit, id, message, name, tagged_at, tagger, tagger_email, tarball_url, verification_reason, verified, zipball_url
OPTIONS
--dry-run[=false] Show the write requests gt would send, without sending them
-h, --help[=false] help for create
-m, --message="" Message of an annotated tag
--target="" Branch or commit to tag (default: the default branch)
OPTIONS INHERITED FROM PARENT COMMANDS
--csv="" Output CSV with the specified comma-separated fields
--cwd="" Working directory for repository discovery
--debug[=false] Log the method, URL, status, and duration of each HTTP request to stderr
--host="" Gitea instance URL, including any base path
--interactive[=false] Allow prompts with machine output
-q, --jq="" Filter JSON output using a jq expression, of every field without --json
--json="" Output JSON with the specified comma-separated fields
--no-input[=false] Disable prompts and implicit editor/browser interactions
--remote="" Git remote used for repository discovery
-R, --repo="" Select a repository as OWNER/REPO or URL
--sudo="" Perform API requests as this user (requires an administrator account)
--template="" Format JSON output using a Go template, of every field without --json (see gt help formatting)
--user="" Account name on the selected instance
EXAMPLE
$ gt tag create v1.2.0 $ gt tag create v1.2.0 --target release/1.2 --message "Version 1.2.0"
SEE ALSO
| Nov 2026 | gitea-cli |