glab(1)

πŸ’… glab-label-create β€” the glab manual, bestie edition πŸŽ€

okay so picture this: you're deep in the glab manual (yes, that glab, the GitLab CLI one, hi πŸ‘‹) and you've found the page for glab-label-create. it's giving "tiny command, big slay". let's get into it ✨


✨ NAME ✨

glab-label-create β€” create a label in a project. that's it. that's the whole job. iconic behavior honestly 🏷️


🌸 SYNOPSIS 🌸

glab label create [flags]

short, sweet, and absolutely ready to make a label for you 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: you use the flags to set the label's name, color, description, and priority. that's the whole toolkit 🧰

⚠️ heads up bestie: the --name flag is required. no name, no label. periodt.

and if you don't bother specifying a color, --color defaults to #428BCA. cute of it, honestly πŸ’™

by default the label gets created in the current repository β€” like, wherever you're standing. but if you want to target another project, just use --repo and point it somewhere else 🌈


πŸ’– OPTIONS πŸ’–

  • -c, --color="#428BCA" β€” the color of the label. plain or HEX code, your call. default is literally #428BCA 🎨
  • -d, --description="" β€” label description. defaults to empty, so spill the tea or don't 🍡
  • -n, --name="" β€” the name of the label. defaults to empty in the flag, but remember: --name is required, so fill it in πŸ’…
  • -p, --priority=0 β€” label priority. defaults to 0 ⭐

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these ones come from the parent command, so you get them for free, no cap:

  • -h, --help[=false] β€” show help for this command. defaults to false πŸ™ˆ
  • -R, --repo="" β€” select another repository. you can use either OWNER/REPO or GROUP/NAMESPACE/REPO. the full URL or Git URL is also accepted. so many doors, all open πŸšͺ✨

🌟 EXAMPLE 🌟

okay bestie, real-world demos, let's go:

# Create a label in the current repository
glab label create --name bug --color "#FF0000" --description "Something is broken"

# Create a label in another project
glab label create --name bug -R owner/repo

see? one for the home team, one for the neighbor's repo. both slay πŸ’€πŸ”₯


🧚 SEE ALSO 🧚

  • glab-label(1) β€” go hang out with the parent label page, it's cool too 🫢

and that's the whole page! auto generated by spf13/cobra, from the Nov 2026 era, living inside the glab(1) manual πŸŽ€

mwah πŸ’‹ go make some labels, you're doing amazing sweetie 🌈⭐

πŸ“¦ where this page comes from