LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

glab-label

Manage GitLab labels from the command line

TLDR

List labels on the current repository
$ glab label list
copy
List labels in another repository
$ glab label list -R [owner/repository]
copy
List labels in a group
$ glab label list -g [group]
copy
Create a label
$ glab label create -n [name] -c [color] -d "[description]"
copy
Rename a label by its numeric id
$ glab label edit -l [id] -n [new-name]
copy
Delete a label
$ glab label delete [name]
copy

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
copy
sudo dnf install glab
copy
sudo pacman -S glab
copy
sudo apk add glab
copy
sudo zypper install glab
copy
brew install glab
copy
nix profile install nixpkgs#glab
copy

SEE ALSO

glab(1), glab-issue(1), glab-mr(1)

RESOURCES

Copied to clipboard
Kai