Skip to content
3 min read

fj admin

Administer the forge instance (needs an instance administrator)

fj admin [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 admin settings

Show the forge-wide settings the server exposes

fj admin settings [OPTIONS]

Options

  • --json — Emit JSON instead of text
  • --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 admin cron

Inspect scheduled (cron) tasks

fj admin cron [OPTIONS] <COMMAND>

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 admin cron list

List scheduled tasks and their status

fj admin cron list [OPTIONS]

Options

  • -L, --limit <LIMIT> — Maximum number of tasks to list [default: 100]
  • --account <ACCOUNT> — Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]
  • --json — Emit JSON instead of a table
  • --color <COLOR> — When to use ANSI color in output [default: auto][possible values: auto, always, never]

fj admin user

Manage forge users

fj admin user [OPTIONS] <COMMAND>

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 admin user create

Create a user. The initial password is never taken from a flag

fj admin user create [OPTIONS] --email <EMAIL> --send-notify <BOOL> <--password-stdin|--password-prompt|--no-password> <USERNAME>

Arguments

  • <USERNAME> — Username for the new account

Options

  • --email <EMAIL> — Email address for the new account
  • --account <ACCOUNT> — Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]
  • --password-stdin — Read the initial password from stdin (for example from a password manager)
  • --password-prompt — Prompt for the initial password without echo (needs a terminal)
  • --color <COLOR> — When to use ANSI color in output [default: auto][possible values: auto, always, never]
  • --no-password — Submit no password. For accounts on an external login source, or when the forge is expected to handle the credential itself
  • --must-change-password <BOOL> — Whether the user must change the password at first sign-in [possible values: true, false]
  • --send-notify <BOOL> — Whether the forge emails the new user a registration notice [possible values: true, false]
  • --full-name <FULL_NAME> — Display name
  • --login-name <LOGIN_NAME> — Login name on the external login source
  • --source-id <SOURCE_ID> — Id of the login source that authenticates this user
  • --visibility <VISIBILITY> — Profile visibility [possible values: public, limited, private]
  • --restricted — Create the account as restricted
  • --json — Emit the server’s account record as JSON

fj admin unadopted

Manage unadopted repositories (files on disk with no repository record)

fj admin unadopted [OPTIONS] <COMMAND>

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 admin unadopted list

List unadopted repositories

fj admin unadopted list [OPTIONS]

Options

  • --pattern <PATTERN> — Glob pattern to match against owner/name
  • --account <ACCOUNT> — Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]
  • --page <PAGE> — Page of results to fetch [default: 1]
  • -L, --limit <LIMIT> — Results per page [default: 50]
  • --color <COLOR> — When to use ANSI color in output [default: auto][possible values: auto, always, never]
  • --json — Emit JSON instead of text

fj admin unadopted adopt

Adopt on-disk files as a repository owned by <owner>

fj admin unadopted adopt [OPTIONS] <REPO>

Arguments

  • <REPO> — The unadopted repository as owner/name

Options

  • -y, --yes — Skip the confirmation prompt
  • --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 admin unadopted delete

Permanently delete an unadopted repository’s files from the server

fj admin unadopted delete [OPTIONS] <REPO>

Arguments

  • <REPO> — The unadopted repository as owner/name

Options

  • -y, --yes — Skip the confirmation prompt
  • --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]
Contributors
  • Stephen Way