gt-search-issue(1)

gt-search-issue1

Search issues

Usage

gt search issue [<query> ...] [flags]

Overview

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.

Json fields

author, body, created_at, id, number, repository, state, title, type,
updated_at, url

Options

--assigned[=false]
Assigned to you

-A, --author=""
Filter by author; @me for yourself

--authored[=false]
Created by you

-h, --help[=false]
help for issue

-l, --label=[]
Filter by label names; a result must have all of them (several require --repo)

-L, --limit=30
Maximum number of results (1..1000)

--mentioned[=false]
Mentioning you

-m, --milestone=[]
Filter by milestone titles

--owner=""
Search only the repositories of this owner

--page=1
Result page

--since=""
Updated since a date, timestamp, or duration ago

-s, --state="open"
Filter by state {open|closed|all}

--team=""
Search only the repositories of this organization team (requires --owner)

--until=""
Updated before a date, timestamp, or duration ago

Options inherited from parent commands

--csv[=""]
Output CSV with the specified comma-separated fields, or all 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; implies --json

--json[=""]
Output JSON with the specified comma-separated fields, or all 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)

--user=""
Account name on the selected instance

Examples

$ 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

From gitea-cli 1.0.0-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.