1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/gh-label.md
Lena 7ca1069d76
pages/*: reword descriptions without using "a CLI for" etc. (#10437)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-07-16 19:23:40 +02:00

32 lines
997 B
Markdown

# gh label
> Work with GitHub labels.
> 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 --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}} --description "{{description}}" --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}} --name {{new_name}} --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}} --help`