gh-label-create - Man Page

Create a new label

Synopsis

gh label create <name> [flags]

Description

Create a new label on GitHub, or updates an existing one with --force.

Must specify name for the label. The description and color are optional. If a color isn't provided, a random one will be chosen.

The label color needs to be 6 character hex value.

Options

-c,  --color <string>

Color of the label

-d,  --description <string>

Description of the label

-f,  --force

Update the label color and description if label already exists

Options Inherited from Parent Commands

-R,  --repo <[HOST/]OWNER/REPO>

Select another repository using the [HOST/]OWNER/REPO format

Example

# create new bug label
$ gh label create bug --description "Something isn't working" --color E99695

See Also

gh-label(1)

Referenced By

gh-label(1).

Sep 2022 GitHub CLI manual