1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-15 12:15:31 +02:00
tldr/pages/common/gh-label.md

33 lines
1 KiB
Markdown
Raw Normal View History

2022-10-04 00:29:08 -03:00
# gh label
> Work with GitHub labels.
2022-10-04 00:29:08 -03:00
> More information: <https://cli.github.com/manual/gh_label>.
- List labels for the repository in the current directory:
`gh label list`
- View labels for the repository in the current directory in the default web browser:
`gh label list {{[-w|--web]}}`
2022-10-04 00:29:08 -03:00
- 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}}`
2022-10-04 00:29:08 -03:00
- 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}}"`
2022-10-04 00:29:08 -03:00
- 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}} --help`