LinuxCommandLibrary

gh-label

Work with GitHub labels on the command-line.

TLDR

List labels for the repository in the current directory

$ gh label list
copy


View labels for the repository in the current directory in the default web browser
$ gh label list --web
copy


Create a label with a specific name, description and color in hexadecimal format for the repository in the current directory
$ gh label create [name] --description "[description]" --color [color_hex]
copy


Delete a label for the repository in the current directory, prompting for confirmation
$ gh label delete [name]
copy


Update the name and description for a specific label for the repository in the current directory
$ gh label edit [name] --name [new_name] --description "[description]"
copy


Clone labels from a specific repository into the repository in the current directory
$ gh label clone [owner]/[repository]
copy


Display help for a subcommand
$ gh label [subcommand] --help
copy

Copied to clipboard