Skip to content
3 min read

fj label

Work with labels

fj label [OPTIONS] <COMMAND>

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

Options

  • --account <ACCOUNT> — Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]
  • --color <COLOR> — When to use ANSI color in output [default: auto][possible values: auto, always, never]

fj label list

List a repo’s labels, or an organization’s with --org. The two are separate collections: a repo list never includes organization labels

fj label list [OPTIONS]

Options

  • -R, --repo <REPO> — Target repository as <owner>/<name>. Inferred from the git remote when omitted
  • --account <ACCOUNT> — Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]
  • --org <ORG> — List the organization’s own labels (shared by its repositories) instead of a repo’s
  • --json — Emit JSON instead of a table
  • --color <COLOR> — When to use ANSI color in output [default: auto][possible values: auto, always, never]

fj label create

Create a new label in a repo, or in an organization with --org

fj label create [OPTIONS] <NAME>

Arguments

  • <NAME> — Label name. With --exclusive, use the form group/name

Options

  • -R, --repo <REPO> — Target repository as <owner>/<name>. Inferred from the git remote when omitted
  • --account <ACCOUNT> — Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]
  • --org <ORG> — Create the label on the organization (shared by its repositories) instead of on a repo
  • --label-color <HEX> — Color as 6-char hex (with or without #). Named --label-color because the global --color flag controls ANSI output [default: ededed]
  • --color <COLOR> — When to use ANSI color in output [default: auto][possible values: auto, always, never]
  • --description <DESCRIPTION> — Label description
  • --exclusive — Make this an exclusive label: an issue keeps only one label from the group/ part of the name, and adding this one replaces another

fj label edit

Edit a label’s name, color, description, or exclusive flag

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
  • --account <ACCOUNT> — Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]
  • --org <ORG> — Edit the organization’s label of this name instead of a repo’s
  • --rename <RENAME> — New name
  • --color <COLOR> — When to use ANSI color in output [default: auto][possible values: auto, always, never]
  • --label-color <HEX> — New color as 6-char hex (e.g. d73a4a). Named --label-color because the global --color flag controls ANSI output
  • --description <DESCRIPTION> — Label description
  • --exclusive — Make the label exclusive within the group/ part of its name
  • --no-exclusive — Make the label an ordinary, non-exclusive label

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
  • --account <ACCOUNT> — Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]
  • --org <ORG> — Delete the organization’s label of this name instead of a repo’s
  • -y, --yes — Skip the confirmation prompt
  • --color <COLOR> — When to use ANSI color in output [default: auto][possible values: auto, always, never]

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
  • --account <ACCOUNT> — Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]
  • --force — Overwrite color/description of labels that already exist here
  • --color <COLOR> — When to use ANSI color in output [default: auto][possible values: auto, always, never]
Contributors
  • Stephen Way