Skip to content
1 min read

fj label

Work with labels

fj label [OPTIONS] <COMMAND>

Every command also accepts the global flags: --host, --debug, --no-pager, --json-fields.

fj label list

List labels in a repo

fj label list [OPTIONS]

Options

  • -R, --repo <REPO> — Target repository as <owner>/<name>. Inferred from the git remote when omitted
  • --json — Emit JSON instead of a table

fj label create

Create a new label

fj label create [OPTIONS] <NAME>

Arguments

  • <NAME> — Label name

Options

  • -R, --repo <REPO> — Target repository as <owner>/<name>. Inferred from the git remote when omitted
  • --color <COLOR> — Color as 6-char hex (with or without #) [default: ededed]
  • --description <DESCRIPTION> — Label description

fj label edit

Edit a label’s name, color, or description

fj label edit [OPTIONS] <NAME>

Arguments

  • <NAME> — Label name to edit

Options

  • -R, --repo <REPO> — Target repository as <owner>/<name>. Inferred from the git remote when omitted
  • --rename <RENAME> — New name
  • --color <COLOR> — Label color (hex, e.g. d73a4a)
  • --description <DESCRIPTION> — Label description

fj label delete

Delete a label

fj label delete [OPTIONS] <NAME>

Arguments

  • <NAME> — Label name

Options

  • -R, --repo <REPO> — Target repository as <owner>/<name>. Inferred from the git remote when omitted
  • -y, --yes — Skip the confirmation prompt

fj label clone

Copy labels from another repo into this one

fj label clone [OPTIONS] <SOURCE>

Arguments

  • <SOURCE> — Source repo as <owner>/<name> to copy labels from

Options

  • -R, --repo <REPO> — Target repository as <owner>/<name>. Inferred from the git remote when omitted
  • --force — Overwrite color/description of labels that already exist here
Contributors
  • Stephen Way