1GH-LABEL-LIST(1) GitHub CLI manual GH-LABEL-LIST(1)
2
3
4
6 gh-label-list - List labels in a repository
7
8
9
11 gh label list [flags]
12
13
14
16 Display labels in a GitHub repository.
17
18
19 When using the --search flag results are sorted by best match of the
20 query. This behavior cannot be configured with the --order or --sort
21 flags.
22
23
24
26 -q, --jq <expression>
27 Filter JSON output using a jq expression
28
29
30 --json <fields>
31 Output JSON with the specified fields
32
33
34 -L, --limit <int>
35 Maximum number of labels to fetch
36
37
38 --order <string>
39 Order of labels returned: {asc|desc}
40
41
42 -S, --search <string>
43 Search label names and descriptions
44
45
46 --sort <string>
47 Sort fetched labels: {created|name}
48
49
50 -t, --template <string>
51 Format JSON output using a Go template; see "gh help formatting"
52
53
54 -w, --web
55 List labels in the web browser
56
57
58
60 -R, --repo <[HOST/]OWNER/REPO>
61 Select another repository using the [HOST/]OWNER/REPO format
62
63
64
66 # sort labels by name
67 $ gh label list --sort name
68
69 # find labels with "bug" in the name or description
70 $ gh label list --search bug
71
72
73
74
75
77 gh-label(1)
78
79
80
81 Nov 2023 GH-LABEL-LIST(1)