---
name: "gt-search-repo"
section: "1"
platform: "linux"
package: "gitea-cli"
version: "1.0.0-1"
release: "Arch Linux 2026-11-07"
platforms: ["linux"]
url: "https://carta.tech/man/gt-search-repo"
---

# gt-search-repo(1)

Search repositories

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

**--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)](/man/gt-search/1.md)**
