Skip to content
Ironflow is pre-1.0: APIs can change between releases. Pin a version. What is ready →

ironflow tenant

Provision and list tenant organizations. Tenants provide multi-tenancy by creating an organization, built-in roles, a default project and environment, and an admin API key.

Terminal window
ironflow tenant <subcommand> [flags]

Subcommands:

SubcommandDescription
provisionProvision a new tenant organization
listList all tenants

Create an organization, built-in roles, a default project and environment, and an admin API key. The writes are sequential, not one transaction. If one fails, the server deletes the organization it just created, so you can retry with the same name. If that cleanup fails too, the earlier objects remain and a retry with the same name answers 409.

Terminal window
ironflow tenant provision [flags]

Flags:

FlagShortTypeDefaultDescription
--namestringOrganization name (required)
--envstringEnvironment name (default: production)
--server-sstring$IRONFLOW_SERVER_URL or http://localhost:9123Server URL

Output:

Created org: Acme Corp (org_abc123)
Created env: production (env_def456)
Admin API Key: ifkey_abc123...

Examples:

Terminal window
# Provision a new tenant with default environment
ironflow tenant provision --name "Acme Corp"
# Provision with a custom environment name
ironflow tenant provision --name "Acme Corp" --env staging

List all tenant organizations with their environment and key counts.

Terminal window
ironflow tenant list [flags]

Flags:

FlagShortTypeDefaultDescription
--jsonboolfalseOutput as JSON
--server-sstring$IRONFLOW_SERVER_URL or http://localhost:9123Server URL

Output:

ID NAME ENVS KEYS CREATED
org_abc123 Acme Corp 1 2 2026-01-01T00:00:00Z
org_def456 Widget Inc 2 3 2026-02-15T00:00:00Z

Examples:

Terminal window
ironflow tenant list
ironflow tenant list --json