.nh .TH "GT-PR-ATTACHMENT-EDIT" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-pr-attachment-edit - Rename an attachment .SH SYNOPSIS \fBgt pr attachment edit { | } [flags]\fP .SH DESCRIPTION Rename an attachment .SS ARGUMENTS .EX A pull request can be supplied as argument in any of the following formats: - by number, e.g. "13" or "#13" - by URL, e.g. "https://gitea.com/OWNER/REPO/pulls/13" - by repository and number, e.g. "OWNER/REPO#13" .EE .SS JSON FIELDS .EX created_at, download_count, id, name, size, 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 edit .PP \fB--name\fP="" New file \fBname\fR .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--template\fP="" Format JSON output using a Go \fBtemplate\fR; implies --json (see gt help formatting) .PP \fB--user\fP="" Account \fBname\fR on the selected instance .SH EXAMPLE .EX $ gt pr attachment edit 13 9 --name crash-2026-10-11.log .EE .SH SEE ALSO \fBgt-pr-attachment(1)\fP