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

# [NAME](#NAME)

gh-label-edit - Edit a label

# [SYNOPSIS](#SYNOPSIS)

**gh label edit &lt;name&gt; \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Update a label on GitHub.

A label can be renamed using the **--name** flag.

The label color needs to be 6 character hex value.

# [OPTIONS](#OPTIONS)

[**-c**, **--color** **&lt;string&gt;**](#c)

Color of the label

[**-d**, **--description** **&lt;string&gt;**](#d)

Description of the label

[**-n**, **--name** **&lt;string&gt;**](#n)

New name of the label

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

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

```
# Update the color of the bug label
$ gh label edit bug --color FF0000
# Rename and edit the description of the bug label
$ gh label edit bug --name big-bug --description "Bigger than normal bug"
```

# [SEE ALSO](#SEE_ALSO)

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

Oct 2026

---

Document: gh-label-edit(1) from gh 2.103.3-r1 (Chainguard OS)
Source: https://github.com/cli/cli
