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 resource IDs. Generate one new UUID idempotency key for each intended write, and reuse it only when retrying that same input. Never guess a resource 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.
For a By Environment record, select exactly one value:
CLI command: airctrl get

Read selected record sections

Read selected record sections. fields returns the complete decrypted field map; scope values are section names, not individual field names. Omit --env for General or pass --env staging to read only Staging. The PAT or Service Account token must permit that scope; never expands access beyond the record grant.
To read the Staging value of an Environment record:
CLI command: airctrl read

Inject records into a process

Inject accessible General project records into one child process. Pass --env staging to inject only Staging values instead. 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. This certificate generator fills the format’s required fields; other formats may need additional non-secret fields supplied through the SDK or Web app.
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. --target-env names a field inside the ENV-format record; --env separately selects the record’s encrypted Development, Staging, or Production value.
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

Page and filter one record’s audit history

CLI command: airctrl record audit-events

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

decrypts the selected version locally and saves a new current version under the current record key. Later history remains intact. A human PAT and vault unlock are required.
CLI command: airctrl record rollback

Replace record fields by ID

Updates the encrypted value under the record’s existing key. This replaces the complete field map; include unchanged fields you need to retain.
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

Groups

Use a human PAT and Team+ collaboration with the required RBAC permissions. GROUP_ID, USER_ID and ROLE_ID are actual IDs from earlier reads, not sample values to try against an account. See the access model.

List context groups

CLI command: airctrl group list

Read a record’s group grants

CLI command: airctrl group record-grants

Create a group

Creation does not grant a project role.
CLI command: airctrl group create

Rename a group

Omitting description clears it.
CLI command: airctrl group update

Delete a group

Deletes only this group’s access paths. Review remaining sources and pending re-keying.
CLI command: airctrl group delete

List group members

CLI command: airctrl group members

Add a group member

The person must be an onboarded account member. The result can report pending encrypted material.
CLI command: airctrl group add-member

Remove a group member

Preserves access through other groups, project membership or direct record shares.
CLI command: airctrl group remove-member

Grant a project role to a group

Use a delegable role ID from the SDK catalog or API reference; do not guess IDs.
CLI command: airctrl group grant-project

Revoke one project role from a group

Removes only this project/group/role assignment.
CLI command: airctrl group revoke-project

Complete pending encrypted access

Uses the configured local passphrase. The project filter does not limit pending direct group-record repairs in the account. Attempts are not proof of completed recipient access.
CLI command: airctrl group reconcile

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 record’s account. A direct record share does not grant project access.
CLI command: airctrl record share-group

Remove a user’s record access

Removes the user’s direct grant. Other authorized paths remain; wrappers are removed only where effective access is lost.
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. Other authorized paths remain; wrappers are removed only where effective access is lost.
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 every repeated --model against one live catalog, then attaches all exact key/model bindings to the gateway.
CLI command: airctrl gateway credential-attach

Detach a provider credential

With --model, removes only that exact model binding. Without --model, detaches every model for the credential from this gateway. Neither form revokes 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.