.nh .TH "GT-SEARCH-ISSUE" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-search-issue - Search issues .SH SYNOPSIS \fBgt search issue [...] [flags]\fP .SH DESCRIPTION Search the issues of every repository you can access on the instance, or of one repository with --repo. Words of the query match titles and bodies. Filters combine: a result must match all of them. Several --label names require --repo, as instance-wide search would return issues with any of them. .SS JSON FIELDS .EX author, body, created_at, id, number, repository, state, title, type, updated_at, url .EE .SH OPTIONS \fB--assigned\fP[=false] Assigned to you .PP \fB-A\fP, \fB--author\fP="" Filter by author; @me for yourself .PP \fB--authored\fP[=false] Created by you .PP \fB-h\fP, \fB--help\fP[=false] help for issue .PP \fB-l\fP, \fB--label\fP=[] Filter by label \fBnames\fR; a result must have all of them (several require --repo) .PP \fB-L\fP, \fB--limit\fP=30 Maximum number of results (1..1000) .PP \fB--mentioned\fP[=false] Mentioning you .PP \fB-m\fP, \fB--milestone\fP=[] Filter by milestone \fBtitles\fR .PP \fB--owner\fP="" Search only the repositories of this \fBowner\fR .PP \fB--page\fP=1 Result page .PP \fB--since\fP="" Updated since a date, timestamp, or duration ago .PP \fB-s\fP, \fB--state\fP="open" Filter by state {open|closed|all} .PP \fB--team\fP="" Search only the repositories of this organization \fBteam\fR (requires --owner) .PP \fB--until\fP="" Updated before a date, timestamp, or duration ago .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 search issue "login error" # Search one repository; its labels and milestones are checked $ gt search issue crash -R alice/project --label bug --milestone v1.0 .EE .SH SEE ALSO \fBgt-search(1)\fP