Scroll to navigation

GT-SEARCH-REPO(1) gitea-cli Manual GT-SEARCH-REPO(1)

NAME

gt-search-repo - Search repositories

SYNOPSIS

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

DESCRIPTION

Search the names and descriptions of repositories, or their topics with --topic.

JSON FIELDS

actions_enabled, archived, clone_url, default_branch, description, empty,
fork, forks_count, full_name, id, mirror, mirror_interval, name,
open_issues_count, open_pr_count, original_url, parent, private, ssh_url,
stars_count, template, topics, updated_at, url, website

OPTIONS

--archived[=false] Only archived repositories (use =false for active)

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

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

--order="asc" Sort order (requires --sort) {asc|desc}

--owner="" Only repositories of this user or organization

--page=1 Result page

--private[=false] Only private repositories (use =false for public)

--sort="" Sort by (default: alphabetical, your own repositories first) {alpha|created|updated|size|id}

--topic[=false] Match repository topics

--type="" Only repositories of this kind {fork|source|mirror}

OPTIONS INHERITED FROM PARENT COMMANDS

--csv[=""] Output CSV with the specified comma-separated fields, or all fields

--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

--sudo="" Perform API requests as this user (requires an administrator account)

--template="" Format JSON output using a Go template; implies --json (see gt help formatting)

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

EXAMPLE

# Search repositories about a CLI
$ gt search repo command line
# Search the archived repositories of an organization
$ gt search repo --owner acme --archived
# Search by topic, most recently updated first
$ gt search repo go --topic --sort updated --order desc

SEE ALSO

gt-search(1)

Nov 2026 gitea-cli