GH-LABEL-EDIT(1)

πŸ’… gh-label-edit(1) β€” the GitHub CLI manual, bestie edition

ok so real talk, this is gh-label-edit(1) from the GitHub CLI manual, and it's literally the glow-up page for your repo labels. let's get into it ✨


✨ NAME ✨

gh-label-edit β€” edit a label 🏷️


πŸ¦‹ SYNOPSIS πŸ¦‹

gh label edit <name> [flags]

that's it. that's the whole vibe. <name> is the label you're about to make over πŸ’–


🌸 DESCRIPTION 🌸

Update a label on GitHub. no cap, that's the entire job description πŸ”₯

A label can be renamed using the --name flag. yes bestie, you can fully rebrand πŸŽ€

The label color needs to be 6 character hex value. six characters, hex, that's the rule β€” don't come at it with red or a three-digit shortcut, it's giving rules-are-rules πŸ’€


πŸ‘‘ OPTIONS πŸ‘‘

  • -c, --color <string> β€” Color of the label 🌈
  • -d, --description <string> β€” Description of the label πŸ“
  • -n, --name <string> β€” New name of the label ✨ (this is the rename one, icon behavior)

🧚 OPTIONS INHERITED FROM PARENT COMMANDS 🧚

  • -R, --repo <[HOST/]OWNER/REPO> β€” Select another repository using the [HOST/]OWNER/REPO format 🫢 (yes, the [HOST/] part is optional, it's flexible like that)

πŸ’€ EXIT CODES πŸ’€

  • 0: Successful execution 🌟 (slay)
  • 1: Error 😭
  • 2: Command canceled πŸ™ˆ
  • 4: Authentication required πŸ” (go log in bestie)
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

πŸ“ EXAMPLE πŸ“

ok these are the actual moves, copy them exactly, no edits:

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

the first one is a color-only glow-up πŸ’… the second one renames bug to big-bug and rewrites the description in the same breath β€” main character energy fr fr πŸ”₯


⭐ SEE ALSO ⭐

  • gh-label(1) β€” the whole label fam, go say hi 🫢

and that's the page!! πŸ’– brought to you by GitHub CLI v2.102.0, dated Oct 2026, and this lil manpage right here is GH-LABEL-EDIT(1) β€” mwah, go edit some labels bestie πŸŽ€βœ¨

πŸ“¦ where this page comes from