Skip to content
1 min read

fj runner

Actions runners: fetch a registration token

fj runner [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 runner token

Print a runner registration token, and nothing else, for forgejo-runner register --token "$(fj runner token --org ORG)". Scope is the repository (-R, or the current clone) unless --org, --user or --instance says otherwise. The token lets a machine join as a runner, so treat it as a credential

fj runner token [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> — Organization scope: a runner shared by the organization’s repos
  • --user — Your own account’s scope: a runner for your personal repos
  • --color <COLOR> — When to use ANSI color in output [default: auto][possible values: auto, always, never]
  • --instance — Instance scope: a runner for every repo. Needs an instance administrator
Contributors
  • Stephen Way