gh-label - Man Page
Manage labels
Examples (TL;DR)
- List labels for the repository in the current directory: gh label [ls|list]
- View labels for the repository in the current directory in the default web browser: gh label [ls|list] [-w|--web]
- Create a label with a specific name, description and color in hexadecimal format for the repository in the current directory: gh label create name [-d|--description] "description" [-c|--color] color_hex
- Delete a label for the repository in the current directory, prompting for confirmation: gh label delete name
- Update the name and description for a specific label for the repository in the current directory: gh label edit name [-n|--name] new_name [-d|--description] "description"
- Clone labels from a specific repository into the repository in the current directory: gh label clone owner/repository
- Display help for a subcommand: gh label subcommand [-h|--help]
Synopsis
gh label <command> [flags]
Description
Work with GitHub labels.
Available Commands
- gh-label-clone(1)
- Clones labels from one repository to another 
- gh-label-create(1)
- Create a new label 
- gh-label-delete(1)
- Delete a label from a repository 
- gh-label-edit(1)
- Edit a label 
- gh-label-list(1)
- List labels in a repository 
Options
- -R, --repo <[HOST/]OWNER/REPO>
- Select another repository using the [HOST/]OWNER/REPO format 
Exit Codes
0: Successful execution
1: Error
2: Command canceled
4: Authentication required
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.
See Also
Referenced By
gh(1), gh-label-clone(1), gh-label-create(1), gh-label-delete(1), gh-label-edit(1), gh-label-list(1).
Oct 2025 GitHub CLI manual