Skip to main content

airs tenant

Manage tenants (the only configuration source)

Usage: airs tenant [OPTIONS] [COMMAND]

Commands:
scanners Manage application-bound scanner credentials locally
list List registrations without reading credentials [aliases: ls]
path Print the config file path of a tenant; defaults to the selected tenant
read Read a tenant config with all credential values redacted; defaults to the selected tenant
get Print one effective tenant setting; credential values are redacted
create Create a tenant with guided prompts; does not select it
set Update one tenant setting; prompt when omitted, hide secrets
unset Remove one tenant setting so the default applies; credentials cannot be cleared
switch Select the tenant for subsequent commands
delete Delete a tenant and its config file; clears the selection if it was selected [aliases: rm]
help Print this message or the help of the given subcommand(s)

Options:
--output <format> Output format: pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

Examples:
$ airs tenant create development
$ printf '%s\n' "$SECRET" | airs tenant create ci --tsg-id 1234567890 --client-id ci-client --client-secret-stdin
$ airs tenant switch development
$ airs tenant set development defaultOutput json
$ airs tenant set development airsApiKey
$ airs tenant unset development defaultOutput
$ airs tenant delete development
$ airs tenant list
$ airs tenant read
$ airs tenant get development mgmtTsgId
$ airs tenant path
$ airs --tenant development doctor

Tenants live in ~/.config/airs-cli/ (config.toml and tenants/<name>.toml);
AIRS_CLI_CONFIG_DIR or XDG_CONFIG_HOME moves them.

airs tenant scanners​

Manage application-bound scanner credentials locally

Usage: airs tenant scanners [OPTIONS] [COMMAND]

Commands:
list List public scanner metadata; credentials are never displayed
set Save credentials from private TOML; first write snapshots old format (older binaries cannot read named tables)
bind-default Copy flat credentials into an explicit app binding; older binaries need the rollback snapshot
remove Remove one named binding
snapshots List private format rollback snapshot metadata
restore Restore a private snapshot for the same registered TSG
delete-snapshot Delete one explicitly selected rollback snapshot
help Print this message or the help of the given subcommand(s)

Options:
--output <format> Output format: pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant scanners list​

List public scanner metadata; credentials are never displayed

Usage: airs tenant scanners list [OPTIONS] <TENANT>

Arguments:
<TENANT>

Options:
--output <format> Output format: pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant scanners set​

Save credentials from private TOML; first write snapshots old format (older binaries cannot read named tables)

Usage: airs tenant scanners set [OPTIONS] <--file <PATH>|--stdin> <TENANT> <NAME>

Arguments:
<TENANT>
<NAME>

Options:
--file <PATH> Private TOML input with applicationId, endpoint and exactly apiKey or apiToken
--output <format> Ignored by this command (it prints no data); must still be one of pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--stdin Read bounded credential TOML from piped stdin
--debug Write redacted API diagnostics to a private JSONL file
--replace
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant scanners bind-default​

Copy flat credentials into an explicit app binding; older binaries need the rollback snapshot

Usage: airs tenant scanners bind-default [OPTIONS] --app-id <ID> <TENANT> <NAME>

Arguments:
<TENANT>
<NAME>

Options:
--app-id <ID> Exact dashboard application ID; this is an explicit operator association
--output <format> Ignored by this command (it prints no data); must still be one of pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--use <KIND> Required when both flat key and token are set; legacy SDK sends both headers [possible values: key, token]
--debug Write redacted API diagnostics to a private JSONL file
--replace
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant scanners remove​

Remove one named binding

Usage: airs tenant scanners remove [OPTIONS] --force <TENANT> <NAME>

Arguments:
<TENANT>
<NAME>

Options:
--force
--output <format> Ignored by this command (it prints no data); must still be one of pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant scanners snapshots​

List private format rollback snapshot metadata

Usage: airs tenant scanners snapshots [OPTIONS] <TENANT>

Arguments:
<TENANT>

Options:
--output <format> Output format: pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant scanners restore​

Restore a private snapshot for the same registered TSG

Usage: airs tenant scanners restore [OPTIONS] --file <PATH> --expect-tsg <ID> --force <TENANT>

Arguments:
<TENANT>

Options:
--file <PATH>
--output <format> Ignored by this command (it prints no data); must still be one of pretty, table, json
--expect-tsg <ID>
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--force
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant scanners delete-snapshot​

Delete one explicitly selected rollback snapshot

Usage: airs tenant scanners delete-snapshot [OPTIONS] --file <PATH> --force <TENANT>

Arguments:
<TENANT>

Options:
--file <PATH>
--output <format> Ignored by this command (it prints no data); must still be one of pretty, table, json
--force
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant list​

List registrations without reading credentials

Usage: airs tenant list [OPTIONS]

Options:
--output <format> Output format: pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant path​

Print the config file path of a tenant; defaults to the selected tenant

Usage: airs tenant path [OPTIONS] [name]

Arguments:
[name] Registered tenant name

Options:
--output <format> Ignored by this command (it prints a path); must still be one of pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant read​

Read a tenant config with all credential values redacted; defaults to the selected tenant

Usage: airs tenant read [OPTIONS] [name]

Arguments:
[name] Registered tenant name

Options:
--output <format> Output format: pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant get​

Print one effective tenant setting; credential values are redacted

Usage: airs tenant get [OPTIONS] <name> <key>

Arguments:
<name> Registered tenant name
<key> Configuration key

Options:
--output <format> Output format: pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant create​

Create a tenant with guided prompts; does not select it

Usage: airs tenant create [OPTIONS] <name>

Arguments:
<name> New tenant name (1-64 letters, digits, hyphens or underscores)

Options:
--output <format> Ignored by this command (it prints no data); must still be one of pretty, table, json
--tsg-id <id> Tenant service group ID (mgmtTsgId); prompted when omitted
--client-id <id> OAuth client ID (mgmtClientId); prompted when omitted
--quiet Suppress status and decorative output (data and errors still print)
--client-secret-stdin Read the OAuth client secret (mgmtClientSecret) from piped stdin
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant set​

Update one tenant setting; prompt when omitted, hide secrets

Usage: airs tenant set [OPTIONS] <name> <key> [value]

Arguments:
<name> Registered tenant name
<key> Configuration key
[value] New value; omit it for a prompt (secrets must use the prompt or --stdin)

Options:
--output <format> Ignored by this command (it prints no data); must still be one of pretty, table, json
--stdin Read one value from piped stdin (recommended for automated secret updates)
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant unset​

Remove one tenant setting so the default applies; credentials cannot be cleared

Usage: airs tenant unset [OPTIONS] <name> <key>

Arguments:
<name> Registered tenant name
<key> Configuration key

Options:
--output <format> Ignored by this command (it prints no data); must still be one of pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant switch​

Select the tenant for subsequent commands

Usage: airs tenant switch [OPTIONS] <name>

Arguments:
<name> Registered tenant name

Options:
--output <format> Ignored by this command (it prints no data); must still be one of pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help

airs tenant delete​

Delete a tenant and its config file; clears the selection if it was selected

Usage: airs tenant delete [OPTIONS] <name>

Arguments:
<name> Registered tenant name

Options:
--force Skip interactive confirmation
--output <format> Ignored by this command (it prints no data); must still be one of pretty, table, json
--quiet Suppress status and decorative output (data and errors still print)
--debug Write redacted API diagnostics to a private JSONL file
--tenant <name> Use this registered tenant for one invocation without changing the selection
-h, --help Print help