GH-LABEL-CREATE(1)
π gh-label-create β bestie's guide to making labels β¨
okay so this is the gh-label-create(1) page from the GitHub CLI manual, and honestly? it's giving "small command, big main character energy." let's get into it π«Ά
πΈ SYNOPSIS πΈ
gh label create <name> [flags]
that's it. that's the whole vibe check. you give it a name, you sprinkle some flags, you slay π
β¨ DESCRIPTION β¨
so here's the tea: gh label create makes a new label on GitHub. and if the label already exists? you can update it with --force, no cap π₯
you must specify a name for the label β that part is non-negotiable bestie, it's the whole point. the description and color are optional. and if you don't give it a color? a random one gets chosen for you, which is honestly kind of iconic β surprise me energy π
β οΈ heads up: the label color needs to be a 6 character hex value. like E99695. six characters, hex, periodt. π
π¦ OPTIONS π¦
-c,--color <string>β the color of the label π-d,--description <string>β the description of the label, aka its little personality blurb βοΈ-f,--forceβ if the label already exists, this updates its color and description instead of just being sad about it. very "we're doing a glow-up" of you π
π OPTIONS INHERITED FROM PARENT COMMANDS π
-R,--repo <[HOST/]OWNER/REPO>β pick a different repository using the[HOST/]OWNER/REPOformat. yes, that exact format, don't freestyle it π§
π EXIT CODES π
0: Successful execution β we ate and left no crumbs β¨1: Error β it's giving struggle π2: Command canceled β you changed your mind, valid π4: Authentication required β log in first bestie π
π NOTE: specific commands may have additional exit codes. refer to the command's help for more information. iykyk π«Ά
β EXAMPLE β
here's literally the cutest little example, creating a bug label:
# Create new bug label
$ gh label create bug --description "Something isn't working" --color E99695
see how the description says "Something isn't working"? relatable. and E99695 is that soft pink-red hex, obsessed πΈ
π₯ SEE ALSO π₯
gh-label(1)β go read the parent, it's the blueprint π
lowkey the easiest command in the whole CLI and yet here we are, thriving. go forth and label your issues, bestie β you're gonna do amazing π
that's a wrap! brought to you by GitHub CLI v2.102.0, dated Oct 2026 β mwah, catch you on the next manpage πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms