GH-LABEL-LIST(1) GitHub CLI manual GH-LABEL-LIST(1)

# [NAME](#NAME)

gh-label-list - List labels in a repository

# [SYNOPSIS](#SYNOPSIS)

**gh label list \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Display labels in a GitHub repository.

When using the **--search** flag results are sorted by best match of the query. This behavior cannot be configured with the **--order** or **--sort** flags.

# [OPTIONS](#OPTIONS)

[**-q**, **--jq** **&lt;expression&gt;**](#q)

Filter JSON output using a jq expression

[**--json** **&lt;fields&gt;**](#json)

Output JSON with the specified fields

[**-L**, **--limit** **&lt;int&gt; (default 30)**](#L)

Maximum number of labels to fetch

[**--order** **&lt;string&gt; (default "asc")**](#order)

Order of labels returned: {asc|desc}

[**-S**, **--search** **&lt;string&gt;**](#S)

Search label names and descriptions

[**--sort** **&lt;string&gt; (default "created")**](#sort)

Sort fetched labels: {created|name}

[**-t**, **--template** **&lt;string&gt;**](#t)

Format JSON output using a Go template; see "gh help formatting"

[**-w**, **--web**](#w)

List labels in the web browser

# [OPTIONS INHERITED FROM PARENT COMMANDS](#OPTIONS_INHERITED_FROM_PARENT_COMMANDS)

[**-R**, **--repo** **&lt;\[HOST/\]OWNER/REPO&gt;**](#R)

Select another repository using the \[HOST/]OWNER/REPO format

# [ALIASES](#ALIASES)

gh label ls

# [JSON FIELDS](#JSON_FIELDS)

**color**, **createdAt**, **description**, **id**, **isDefault**, **name**, **updatedAt**, **url**

# [EXIT CODES](#EXIT_CODES)

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

# [EXAMPLE](#EXAMPLE)

```
# Sort labels by name
$ gh label list --sort name
# Find labels with "bug" in the name or description
$ gh label list --search bug
```

# [SEE ALSO](#SEE_ALSO)

[**gh-label(1)**](/man/os/gh/gh-label.1)

Oct 2026

---

Document: gh-label-list(1) from gh 2.102.1-r0 (Chainguard OS)
Source: https://github.com/cli/cli
