glab-label
Manage GitLab labels from the command line
TLDR
List labels on the current repository
$ glab label list
List labels in another repository$ glab label list -R [owner/repository]
List labels in a group$ glab label list -g [group]
Create a label$ glab label create -n [name] -c [color] -d "[description]"
Rename a label by its numeric id$ glab label edit -l [id] -n [new-name]
Delete a label$ glab label delete [name]
SYNOPSIS
glab label command [flags]
DESCRIPTION
glab label creates, lists, edits, and deletes labels on a GitLab project or group. It is a subcommand of glab, not a separate program. With no repository flag, list, create, edit, and delete use the GitLab project that matches the git remote in the current directory.Colors accept a name or a hex value. The numeric id that edit requires is the id GitLab shows for the label, not the title.
PARAMETERS
list
List labels. ls is an alias. -R selects a repository. -g selects a group instead of a project.create
Create a label. -n is the name. -c is a color name or a hex color (the default is a blue). -d is the description.edit
Change a label. -l is the numeric label id. -n sets a new name. -d sets the description.delete name
Delete the named label from the current repository.-h, --help
Show help and exit.
INSTALL
sudo apt install glab
sudo dnf install glab
sudo pacman -S glab
sudo apk add glab
sudo zypper install glab
brew install glab
nix profile install nixpkgs#glab
SEE ALSO
glab(1), glab-issue(1), glab-mr(1)
