.nh .TH "GH-LABEL-LIST" "1" "Oct 2022" "" "GitHub CLI manual" .SH NAME .PP gh-label-list - List labels in a repository .SH SYNOPSIS .PP \fB\fCgh label list [flags]\fR .SH DESCRIPTION .PP Display labels in a GitHub repository. .PP When using the \fB\fC--search\fR flag results are sorted by best match of the query. This behavior cannot be configured with the \fB\fC--order\fR or \fB\fC--sort\fR flags. .SH OPTIONS .TP \fB\fC-q\fR, \fB\fC--jq\fR \fB\fC\fR Filter JSON output using a jq expression .TP \fB\fC--json\fR \fB\fC\fR Output JSON with the specified fields .TP \fB\fC-L\fR, \fB\fC--limit\fR \fB\fC\fR Maximum number of labels to fetch .TP \fB\fC--order\fR \fB\fC\fR Order of labels returned: {asc|desc} .TP \fB\fC-S\fR, \fB\fC--search\fR \fB\fC\fR Search label names and descriptions .TP \fB\fC--sort\fR \fB\fC\fR Sort fetched labels: {created|name} .TP \fB\fC-t\fR, \fB\fC--template\fR \fB\fC\fR Format JSON output using a Go template; see "gh help formatting" .TP \fB\fC-w\fR, \fB\fC--web\fR List labels in the web browser .SH OPTIONS INHERITED FROM PARENT COMMANDS .TP \fB\fC-R\fR, \fB\fC--repo\fR \fB\fC<[HOST/]OWNER/REPO>\fR Select another repository using the [HOST/]OWNER/REPO format .SH EXAMPLE .PP .RS .nf # sort labels by name $ gh label list --sort name # find labels with "bug" in the name or description $ gh label list --search bug .fi .RE .SH SEE ALSO .PP \fB\fCgh-label(1)\fR