Skip to main content
This page shows every public CLI command. Replace the environment variables with IDs from your account. Commands that read secret values should run only in a trusted terminal.

Prepare the examples

The examples assume these non-secret IDs are already available:
Use airctrl project accounts, airctrl project list, airctrl record list and airctrl gateway list to discover them. Never guess an ID or try nearby IDs after an authorization failure. Every flag takes a separate value. Booleans use true or false; lists use comma-separated values; repeatable inputs repeat the flag. Run airctrl project, airctrl record, airctrl gateway or airctrl sa to see the exact syntax installed on the machine.

Local setup and record access

Sign in to

Store a human PAT in the local CLI profile. The CLI asks for the token without placing it in shell history. It returns a success message after the profile is saved.
CLI command: airctrl login

Read a complete record

Decrypt one accessible record and return all fields. Use --profile ci for an active Service Account profile. A missing wrapper returns no_wrapper_for_caller.
CLI command: airctrl get

Read selected record fields

Read only selected fields or one environment from a record. The result contains only the requested fields. never expands access beyond the record grant.
CLI command: airctrl read

Inject records into a process

Inject accessible project records into one child process. The values exist only in the child process environment. The command returns the child process exit status.
CLI command: airctrl run

Generate a secret locally

Generate secret material locally without storing it. The generated fields are printed once. This command does not call the API.
CLI command: airctrl generate

Create an encrypted record

Create an encrypted record from supplied fields. The CLI returns the new record ID. Avoid literal secret values in shell history; prefer an import or protected environment variable.
CLI command: airctrl create

Create or replace record fields

Update a matching record or create it when it does not exist. The result states whether created or updated the record.
CLI command: airctrl set

Create a generated record

Generate, encrypt and store a new record. The command returns the record ID. The generated value is encrypted before it leaves the CLI.
CLI command: airctrl new

Import environment variables

Import an ENV file as one encrypted record. The source file stays unchanged. Review it before import so unrelated local variables are not stored.
CLI command: airctrl import

Account and project commands

List accessible accounts

Returns accounts available to the human PAT. Service Accounts cannot discover accounts.
CLI command: airctrl project accounts

List projects

Returns accessible projects in the selected account.
CLI command: airctrl project list

View a project

Returns one project or a not-found result when it is unavailable.
CLI command: airctrl project get

Create a project

Returns the new project ID. The caller becomes its Project Administrator.
CLI command: airctrl project create

Update a project

This command replaces all three editable values, so pass the values you want to keep.
CLI command: airctrl project update

Archive a project

Archived projects remain stored but leave normal active lists.
CLI command: airctrl project archive

Restore a project

Returns the restored project state.
CLI command: airctrl project restore

Record metadata and history

List record metadata

Returns safe metadata, not decrypted fields. Service Account results are limited by its grants and custom role.
CLI command: airctrl record list

View record version history

Returns encrypted version metadata in newest-first order.
CLI command: airctrl record versions

Review one record’s audit history

Returns recent audit events when the caller can view this record’s audit history.
CLI command: airctrl record audit

Find unusual record activity

Returns unusual record events for the selected scope.
CLI command: airctrl record anomalies

Review daily record activity

The date is UTC and must use YYYY-MM-DD.
CLI command: airctrl record activity

Review record alerts

Returns the paginated alert feed.
CLI command: airctrl record alerts

Review secret access events

Returns matching record access events. Action names are exact strings.
CLI command: airctrl record access

Update record details

Only supplied fields change. Use the documented null or none value to clear optional fields.
CLI command: airctrl record metadata

Archive a record

Archives the record without deleting encrypted history.
CLI command: airctrl record archive

Restore a record

Restores an archived record to active lists.
CLI command: airctrl record restore

Transfer record ownership

The new owner must be eligible. Confirm both IDs before transferring ownership.
CLI command: airctrl record transfer

Restore a previous record version

saves the selected encrypted version as a new current version; it does not erase later history.
CLI command: airctrl record rollback

Replace record fields by ID

Updates the encrypted value under the record’s existing key.
CLI command: airctrl record set

Rotate a record

Rotates the record data key locally and saves a new encrypted version.
CLI command: airctrl record rotate

Record sharing

Share a record with a user

The recipient must be onboarded and eligible for the project.
CLI command: airctrl record share-user

Share a record with a Service Account

Encrypts a wrapper for the Service Account. This does not change its custom role.
CLI command: airctrl record share-sa

Share a record with a group

The group must belong to the same account and project as the record.
CLI command: airctrl record share-group

Remove a user’s record access

Removes the user’s direct grant and wrapper immediately.
CLI command: airctrl record revoke-user

Remove a Service Account’s record access

Removes only this record grant. Other Service Account grants remain unchanged.
CLI command: airctrl record revoke-sa

Remove a group’s record access

Removes the group grant and wrappers created through that grant.
CLI command: airctrl record revoke-group

Gateway discovery and lifecycle

List supported AI providers

Returns enabled providers. This command is available to both human and Service Account identities.
CLI command: airctrl gateway providers

List gateways

Returns gateways in one project. This command requires a human PAT.
CLI command: airctrl gateway list

View a gateway

Returns one accessible gateway and safe settings. Service Accounts may use this read.
CLI command: airctrl gateway get

Create a gateway

Returns the gateway ID. Each provider credential must belong to the same account, and --model must exist in that credential’s live catalog.
CLI command: airctrl gateway create

Update a gateway

Only supplied fields change.
CLI command: airctrl gateway update

Delete a gateway

This disables the gateway and revokes its gateway tokens. Confirm the gateway ID first.
CLI command: airctrl gateway delete

Provider credentials

List provider credentials

Returns safe credential metadata; provider secret values never appear.
CLI command: airctrl gateway provider-credentials

Add a provider credential

The CLI reads the secret from the named environment variable and never places it in the command arguments.
CLI command: airctrl gateway provider-credential-create

List models for a credential

Returns the selected credential’s live model catalog, capability tags, supported capabilities, and airctrlSupport status. Unsupported entries remain visible but cannot be attached to a gateway.
CLI command: airctrl gateway provider-models

Replace a provider key

The old provider key stops being used after the replacement validates.
CLI command: airctrl gateway provider-credential-rotate

Rename a provider credential

Changes only the display label.
CLI command: airctrl gateway provider-credential-update

Revoke a provider credential

Revocation prevents future provider use. Confirm dependent gateways first.
CLI command: airctrl gateway provider-credential-revoke

Attach a provider credential

Validates --model against the existing credential’s live catalog, then attaches that exact key/model binding to the gateway.
CLI command: airctrl gateway credential-attach

Detach a provider credential

Detaches the credential from this gateway without revoking the credential itself.
CLI command: airctrl gateway credential-detach

Gateway tokens

List gateway tokens

Returns safe token metadata. Token plaintext is never listed again.
CLI command: airctrl gateway tokens

Create a gateway token

The token value appears once. Save it immediately in an approved destination.
CLI command: airctrl gateway token-create

Rename a gateway token

Changes the label, not the token value.
CLI command: airctrl gateway token-rename

Revoke a gateway token

Authentication stops immediately. The token row remains available for audit.
CLI command: airctrl gateway token-revoke

Delete a gateway token

Deletes token metadata. Revoke first when you need a clear audit transition.
CLI command: airctrl gateway token-delete

Routing, limits and telemetry

Change gateway limits and behavior

Only supplied settings change. Body logging can store sensitive request content, so keep it disabled unless required.
CLI command: airctrl gateway settings

Review gateway requests

Returns request metadata. Service Accounts may use this read when their role permits it.
CLI command: airctrl gateway logs

Inspect one gateway request

Returns stored bodies only when body logging and the required permission are both present.
CLI command: airctrl gateway log

Review provider-key access

Returns provider-key access decisions without returning provider keys.
CLI command: airctrl gateway key-access

Review project usage logs

Returns usage metadata across the selected project.
CLI command: airctrl gateway usage-logs

Inspect one project usage log

Returns one project log and any stored bodies allowed by RBAC.
CLI command: airctrl gateway usage-log

Review project spend

Returns current spend and the effective project or account limit.
CLI command: airctrl gateway usage-spend

Review project usage metrics

Returns request, error, token, latency and spend aggregates.
CLI command: airctrl gateway usage-metrics

View OpenTelemetry settings

Returns safe OpenTelemetry settings. Secret header values are never returned.
CLI command: airctrl gateway otel

Change OpenTelemetry settings

The CLI reads header values from the named environment variable. Use --clear-headers true to remove stored headers.
CLI command: airctrl gateway otel-update

Service Account metadata

List Service Accounts

Returns safe Service Account metadata to a human PAT.
CLI command: airctrl sa list

View a Service Account

Returns one Service Account from the safe metadata list. Lifecycle and credential actions remain dashboard-only.
CLI command: airctrl sa get

Common exit behavior

Successful commands exit with 0. Validation, authentication, authorization and missing-resource failures exit with a non-zero status and a stable code on stderr. Do not retry 400, 403 or 404 failures without changing the request. Retry temporary 429, 500 and 503 failures with a bounded backoff.