.nh .TH "GT-RELEASE-EDIT" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-release-edit - Edit releases .SH SYNOPSIS \fBgt release edit ... [flags]\fP .SH DESCRIPTION Edit the title, notes, tag, target, draft or prerelease state of releases. Without flags on a terminal, a form starts from the current values of each release and only what it changes is sent. In a clone, a target that is no branch on the server, such as HEAD or a short SHA, names the commit it resolves to in the clone. .SS JSON FIELDS .EX assets, author, body, created_at, draft, id, prerelease, published_at, tag, target, title, url .EE .SH OPTIONS \fB-d\fP, \fB--draft\fP[=false] Save the release as a draft .PP \fB-e\fP, \fB--editor\fP[=false] Write release notes in an editor .PP \fB-h\fP, \fB--help\fP[=false] help for edit .PP \fB-n\fP, \fB--notes\fP="" Release notes .PP \fB-F\fP, \fB--notes-file\fP="" Read release notes from a file, or - for standard input .PP \fB-p\fP, \fB--prerelease\fP[=false] Mark the release as a prerelease .PP \fB--tag\fP="" Change the release's tag (one release only) .PP \fB--target\fP="" Branch or commit the tag points to, when it is new .PP \fB-t\fP, \fB--title\fP="" Release title .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--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 # Edit a release in a form $ gt release edit v1.0.0 $ gt release edit v1.0.0 --title "1.0.0" --notes-file CHANGELOG.md $ gt release edit v1.0.0-rc1 v1.0.0-rc2 --prerelease=false .EE .SH SEE ALSO \fBgt-release(1)\fP