fj org
Organization helpers
fj org [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 org list
List orgs you belong to
fj org list [OPTIONS]Options
--json— Emit JSON instead of a table--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 org view
Show details about a specific org
fj org view [OPTIONS] <ORG>Arguments
<ORG>— Organization name
Options
--json— Emit JSON instead of a table--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 org teams
List teams in an org
fj org teams [OPTIONS] <ORG>Arguments
<ORG>— Organization name
Options
--json— Emit JSON instead of a table--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 org create
Create an organization on the selected host
fj org create [OPTIONS] <NAME>Arguments
<NAME>— Organization name (letters, digits, ’-’, ’_’ and ’.‘)
Options
--full-name <FULL_NAME>— Display name--account <ACCOUNT>— Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]--description <DESCRIPTION>— Description--email <EMAIL>— Contact email--color <COLOR>— When to use ANSI color in output [default: auto][possible values: auto, always, never]--location <LOCATION>— Location--website <WEBSITE>— Website URL--visibility <VISIBILITY>— Who can see the organization. The forge default is public [possible values: public, limited, private]--json— Emit JSON instead of the profile view
fj org team
Create a team and manage its members and repositories
fj org team [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 org team create
Create a team in an org (needs org owner access)
fj org team create [OPTIONS] <ORG> <NAME>Arguments
<ORG>— Organization name<NAME>— Team name
Options
--permission <PERMISSION>— Access the team grants on its repositories [default: read][possible values: read, write, admin]--account <ACCOUNT>— Use an environment PAT for this account for this invocation only [env: FJ_ACCOUNT]--description <DESCRIPTION>— Team description--units <UNITS>— Repository units the team can use, each at the team permission (comma-separated, e.g. repo.code,repo.issues). A read or write team with no unit flags gets code, issues, pulls, releases, wiki, projects, packages and actions--color <COLOR>— When to use ANSI color in output [default: auto][possible values: auto, always, never]--unit-permission <UNIT=LEVEL>— Per-unit access as <unit>=<none|read|write|admin>. Repeatable--all-repos— Give the team every repository in the org, including future ones--can-create-org-repo— Let team members create repositories in the org--json— Emit JSON instead of the team view
fj org team members
List a team’s members
fj org team members [OPTIONS] <ORG> <TEAM>Arguments
<ORG>— Organization name<TEAM>— Team name or numeric id
Options
-L, --limit <LIMIT>— Maximum number of rows to fetch [default: 30]--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 org team add-member
Add a user to a team (needs org owner access)
fj org team add-member [OPTIONS] <ORG> <TEAM> <USER>Arguments
<ORG>— Organization name<TEAM>— Team name or numeric id<USER>— Username
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 org team remove-member
Remove a user from a team (needs org owner access)
fj org team remove-member [OPTIONS] <ORG> <TEAM> <USER>Arguments
<ORG>— Organization name<TEAM>— Team name or numeric id<USER>— Username
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 org team repos
List the repositories a team has access to
fj org team repos [OPTIONS] <ORG> <TEAM>Arguments
<ORG>— Organization name<TEAM>— Team name or numeric id
Options
-L, --limit <LIMIT>— Maximum number of rows to fetch [default: 30]--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 org team add-repo
Give a team access to one of the org’s repositories
fj org team add-repo [OPTIONS] <ORG> <TEAM> <REPO>Arguments
<ORG>— Organization name<TEAM>— Team name or numeric id<REPO>— Repository, as a bare name or<org>/<name>
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 org team remove-repo
Take a repository away from a team
fj org team remove-repo [OPTIONS] <ORG> <TEAM> <REPO>Arguments
<ORG>— Organization name<TEAM>— Team name or numeric id<REPO>— Repository, as a bare name or<org>/<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]
- Stephen Way