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