The operator’s command for the two things no HTTP route will do: create the first support-console account, and create a customer organization with its first owner.
Both are deliberately commands rather than endpoints. A route that mints administrators or organizations would be the most valuable thing on the deployment to reach. A command that needs DATABASE_URL and a shell on the host is already authenticated by both.

Synopsis

There are no flags. With no arguments, or a subcommand given the wrong number of them, it prints the usage and exits non-zero. Email addresses are normalised before use, so Owner@Acme.Example and owner@acme.example are the same account.

Subcommands

bootstrap

Creates the first platform_admin, and only the first. It refuses once any staff account exists, with a message ending:
There is no default password and no way to choose one. The command generates a password that satisfies the staff policy and prints it once:
Only the bcrypt hash is stored. The account cannot hold a session until its first sign-in enrols a TOTP second factor, so the printed password protects the console alone for exactly one login.
Set STAFF_ALLOWED_CIDRS before you run bootstrap. Until a staff account exists the console has no credential that resolves, and while the variable is empty the console refuses every address, so the account you bootstrap cannot sign in until you list the networks it signs in from. See Staff console.

reset

Generates a new password for an existing account, revokes every live session of that account, and prints the password once in the same form as bootstrap. It is the only password recovery there is: the console has no self-service reset. reset changes the password only. It does not remove or replace the account’s second factor, and no other command does either.

list

With no accounts it prints no staff accounts; run: staffctl bootstrap <email>.

org create

The staff console’s Add customer does the same and records who did it and why, so prefer it where you can reach the console. See Staff console.
Creates a user for the address, an organization with that user as its owner, and the organization’s subscription, then prints the organization id and a generated password once:
Everything after the email is the organization name, so the quotes are a convenience rather than a requirement. This is how a new customer gets its first account on a deployment that does not allow open sign-up. With SIGNUP_MODE=invite_only, an account can only be created against a pending invitation, an invitation needs an organization to invite into, and an invitation cannot confer the owner role. The first owner therefore cannot arrive through either door, and org create is the one that opens. See Sign-up and sign-in. Details worth knowing before you run it:
  • It refuses an address that already has an account. That person may already belong to another organization. Invite them from inside the organization instead.
  • The address is marked verified. You vouched for it by typing it. That is what later lets the owner link a GitHub, GitLab or Google sign-in to the same account.
  • The owner’s display name is the organization name followed by owner. They can change it after signing in.
  • Nothing forces a password change. Ask the owner to change it at first sign-in.
The owner then invites colleagues from Settings → Members. Each invitation shows its link once, which works with no mail relay configured.

demo-estate

A demo organization holds real scans of public images and no connected cluster, so nothing in it is exposed and it has no attack path to show. This records one cluster inventory, sample-cluster (demo data), through the same path a cluster collection writes: two namespaces of workloads that run the organization’s four scanned images with the most open critical and high vulnerabilities (by their scanned digest), a public LoadBalancer and an Ingress in front of two of them, a service account bound to cluster-admin, a privileged container and a credential written into a manifest. Its posture findings come from the real check corpus, and the security graph and risk pass then run as they do after any collection. The cluster and its workloads are sample data and say so in their names; every vulnerability on a path is a finding from a real scan. Running it again updates the same cluster. It refuses an organization with no scanned image that has an open critical or high vulnerability.

Environment it reads

Nothing else, except backup-env and alert-webhook, which load the worker configuration for TOKEN_ENCRYPTION_KEY, the key the stored settings are sealed with: run it in the API container, which has it. The other subcommands do not load the API configuration, so they need no JWT_SECRET or TOKEN_ENCRYPTION_KEY. It loads ../.env if present. The application’s own login role is sufficient: staffctl writes through the same repositories the API uses, and the migrations grant that role the staff tables. You do not need the schema owner.

Running it

The backend image ships the binary at /app/staffctl, and the api container already has DATABASE_URL:
Run bootstrap, reset and org create from an interactive terminal you trust. Each prints a credential to standard output, and a pipeline that captures output keeps it.