LinuxCommandLibrary

gh-label

manage issue and PR labels

TLDR

List labels

$ gh label list
copy
Create a label
$ gh label create [name] -c [color] -d "[description]"
copy
Edit a label
$ gh label edit [name] --name [new_name]
copy
Delete a label
$ gh label delete [name]
copy
Clone labels from another repo
$ gh label clone [owner/repo]
copy

SYNOPSIS

gh label command [options]

DESCRIPTION

gh label manages repository labels used for categorizing and filtering issues and pull requests. Labels provide visual organization with customizable colors and descriptions, helping teams triage work and track issue types.
Common label patterns include bug/feature categorization, priority levels, status indicators, and area tags. The clone command copies an entire label scheme from another repository, useful for maintaining consistency across projects or setting up new repositories.
Labels are essential for automated workflows, project boards, and issue management systems. They enable quick filtering and provide visual cues in issue lists.

PARAMETERS

-c, --color color

Label color (hex without #).
-d, --description text
Label description.
--name name
New label name.
--force
Overwrite existing labels.

SUBCOMMANDS

list

List labels.
create
Create a label.
edit
Edit a label.
delete
Delete a label.
clone
Clone labels from repo.

SEE ALSO

gh(1), gh-issue(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community