CLI reference

Prev Next

Index of Builder CLI commands used in the AI Fabrix integration lifecycle. Authoritative syntax, flags, and permissions live in Builder CLI help (aifabrix <command> --help) and the CLI workflow guide.

Platform setup: Set up a local platform. Assignment-scope configuration: Enable and verify Dimension ABAC, including the default-off and restart/redeploy boundary.

Builder CLI 2.68 and later requires Node.js 24 or later. Check node --version before installing or updating the CLI.

Use the published Builder version approved for your installation and confirm command availability with aifabrix --version and the command's own --help. A command in newer development documentation does not establish that your installed CLI or server supports it. Keep the CLI, Controller and Dataplane versions with a failure report before changing the command or retrying a write.

Agent Kit and onboarding

Fastest managed-workspace command:

aifabrix onboarding

The af alias is equivalent. The command needs no Controller URL because it reads the administrator-provisioned ~/.aifabrix/config.yaml.

aifabrix onboarding [--coding <claude|codex|cursor>] [--name <folder>]
aifabrix onboarding --repo <owner/name>
aifabrix agent-kit setup <controllerUrl> [--repo owner/name]
aifabrix agent-kit init cust-<name> --host all --approve-all --yes
aifabrix agent-kit init cust-<name> --host all --remote --org <owner> --yes
aifabrix agent-kit install --host all --approve-all --yes
aifabrix agent-kit install --host claude --approve-all --yes
aifabrix agent-kit update --host all --approve-all --yes
aifabrix agent-kit status
aifabrix agent-kit validate
aifabrix agent-kit remote create --org <owner> --yes
aifabrix agent-kit start claude --remote-control --approve-all --yes
aifabrix agent-kit start claude --remote-control --detach
aifabrix agent-kit start codex
aifabrix agent-kit list [--json]
aifabrix agent-kit kill [name]

aifabrix onboarding prepares or resumes a workspace on an organization-managed SSH host. The administrator-provisioned config supplies the Controller, environment, and any configured default coding platform. --coding selects the platform for this run and saves it only if no default is configured; an existing default is preserved. --name selects a workspace folder, and --repo reuses, clones, or creates a private GitHub repository. GitHub device sign-in can be completed in a browser on your own computer.

setup guides portable Linux/macOS onboarding with Controller sign-in, a local workspace, and Codex; GitHub is optional unless --repo is supplied. init creates a new delivery workspace (skeleton + git + Agent Kit) for Cursor, Codex, or Claude Code; omit --host/--yes on a terminal to be prompted. The workspace name is authoritative — keep your organization's cust-* prefix. install / update / status / validate target an existing repo instead. update omits --host to keep the coding hosts already recorded — pass --host only to add or switch a host. --host claude or --host codex installs kit files for that coding host only. remote create runs from inside the workspace directory and creates a private GitHub remote by default — it does not select Cursor, Claude Code, or Codex. start opens Claude Code or Codex in tmux in the current git workspace without installing skills. Closing the terminal does not kill the session if you detach (Ctrl-b then d) or pass --detach. Claude uses its Remote Control workflow by default. Codex Remote Control requires the standalone managed daemon; an npm-installed CLI may need --no-remote-control. list shows tmux sessions and direct same-user Codex app servers; interactive kill can select either. Install the coding CLI once on the machine (claude auth login or codex login). Full flags: aifabrix agent-kit --help.

How-to: Prepare a managed coding workspace. Interactive onboarding --repo can create a private repository and push its initial commit; choose it only when that remote action is intended.

Authentication

aifabrix auth status
aifabrix login

Use named profiles to keep an administrator login separate from a test user's login. The profile name is a local label; --username must name the actual user.

aifabrix profile list
aifabrix login --profile tester --method password --username ada@example.com --password-stdin
aifabrix login --profile tester --method password --username ada@example.com --password-secret
aifabrix --profile tester auth status --validate

Choose exactly one password source. --password-stdin reads a pipe until it closes, or shows a hidden password prompt in a terminal. --password-secret reads aifabrix/login/tester from ~/.aifabrix/secrets.local.yaml; it does not look in a shared secret store. Values use configured Builder secrets encryption. Password commands do not accept .env files or a password value as an argument.

An administrator can save an issued local-user password for another profile:

aifabrix --profile default identity user create --email ada@example.com --password-secret tester
aifabrix --profile default identity user reset-password ada@example.com --password-secret tester

Use create for a new user and reset for an existing user. The administrator needs the corresponding user-management permissions. These commands save the password only in local secrets and never print it, including in JSON. Sign in afterward using the named profile. Password sign-in must be enabled by the installation's local-password policy. An installation that sends invitations may not issue a password to save.

Named profiles store their tokens separately from the default login. Builder renews tokens with their stored refresh credential; an expired or revoked refresh session needs another login. Saved passwords remain in the private local secret file, not in profile files. Profile selection does not grant permissions.

Platform upgrade and operations

Start with Operate the platform for installation ownership and approvals. The technical workflows below describe Builder 2.71.0 and Miso 2.1.65 source contracts; confirm compatible installed tooling before applying a change.

Task Commands and workflow
Preview and apply Azure platform updates aifabrix upgrade --remote --check --refresh, then approved DEV-only apply; Azure procedure
Update local Docker platform aifabrix upgrade --local; local procedure
Declare, read and publish application settings env secret list, selected env secret push --dry-run then push; configuration procedure
Provision an entitled environment and public domain env deploy, env domain add/status/refresh/remove; environment procedure
Promote an image and inspect progress deploy, app deployment, deployment list/get/cancel; deployment procedure
Inspect health and diagnostic evidence Authorized Controller health/log APIs; local logs; diagnosis procedure
Recover an interrupted upgrade Reauthenticate, inspect the existing deployment, rediscover; verification and recovery
aifabrix upgrade --help
aifabrix upgrade --remote --check --refresh
aifabrix upgrade --local --check --refresh

Remote apply is DEV-only; Test/Production uses approved application promotion with target-owned configuration. An unavailable version is unknown, and a successful request is not a completed upgrade. Updating a managed coding workspace or publishing a Connected System is a different lifecycle.

Installation configuration

Inspect declared configuration for the exact environment and application owner:

aifabrix env secret list dev
aifabrix env secret list dev --app <appKey>
aifabrix env secret push dev --app <appKey> --dry-run
aifabrix env secret push dev --app <appKey> --key <ENV_VARIABLE_NAME>

Despite the command name, the list includes variables and secret configured states. Only non-sensitive variable values are shown. Push reads an ignored .env file and matches existing declarations; it does not create declarations. Undeclared names are skipped. --key selects one environment-variable name; --file selects another ignored input file. Never pass secret values as arguments.

A bulk push prompts in a terminal. Automation requires explicit authorization and --yes; preview with --dry-run first. Inspect the configured-state list afterward. A revision conflict requires a fresh read and review before retrying. Standard provider references use openai/apiKey, azure-openai/apiKey, azure-openai/endpoint and anthropic/apiKey; use declarations belonging to the intended environment and owner, not an unrelated application's legacy key.

Generate and model

aifabrix create <systemKey> --type external
aifabrix integration-definition validate <file> [--fix-hash]
aifabrix integration-definition apply <file> [--dry-run] [--force] [--output-dir <dir>]
aifabrix wizard [systemKey]
aifabrix wizard --config <file>
aifabrix repair <systemKey> [--dry-run] [--auth apikey] [--rbac] [--expose]
aifabrix json <systemKey>
aifabrix json <appKey> --resource-group <resourceGroup> --env dev
aifabrix build <appKey> --env dev
aifabrix download <systemKey>

Author an upsert candidate only from existing create/update capabilities and mapped business identity:

aifabrix datasource capability upsert <file-or-key> --dry-run --json

Candidate generation is not write-readiness proof. Review the proposed lookup and identity before applying it, then validate and run the full datasource E2E scenario, including lookup, repeat write and cleanup. Do not filter that proof to only the upsert operation. --test needs supplied case data; it does not invent safe vendor records.

Validate and test

Role Assistant YAML approval entries use decision: approve or decision: reject and a matching when condition; package validation rejects other decisions. Validate both decisions and inspect the selected execution path before relying on a rejection test. A refused subject response fails the case and triggers cancellation; it is not business success. Schema acceptance alone does not prove live approval behavior across every runner path.

aifabrix validate <systemKey|file> [--cert-sync]
aifabrix test <systemKey>
aifabrix datasource test <datasourceKey> --app <systemKey>
aifabrix test-integration <systemKey>
aifabrix datasource test-integration <datasourceKey> --app <systemKey>
aifabrix test-e2e <systemKey>
aifabrix datasource test-e2e <datasourceKey> [capabilityKey] --app <systemKey> [--debug <summary|full|raw>] [--json]
aifabrix role-assistant test <bareRoleKey> [--env <dev|tst|pro>] [--case …] [--suite …] [--from-dataplane] [--json] [--verbose] [--debug]

Role Assistant package commands use ra-<roleKey>; role-assistant test and copy use the bare key. For example, upload with aifabrix upload ra-sales-representative --env dev, then test with aifabrix role-assistant test sales-representative --env dev.

For CI, add --json; add --fail-fast to stop a suite after its first failure. For selected cases, exit 0 means verified proof; exit 2 means failed or unverified proof, including soft cases, softened assertions, missing receipts or incomplete coverage. Command errors exit 3. Lifecycle-only runs retain their separate lifecycle exit mapping. In JSON, inspect selected-case verdict, proofScope and proof separately from lifecycleVerdict.

For one failing case, combine --json --verbose --debug: verbose adds the full lifecycle report to JSON, while debug writes local CLI logs under role-assistant/<roleKey>/logs/. CLI debug does not enable deployed Runtime, capability, or prompt traces; those are environment settings in role-assistant.yaml.

Use --subject-profile <profile> to run Role Assistant cases with that user's own login. Sign in first with a named profile; Authentication covers device and local-password sign-in. The profile must differ from the active operator profile; an absent or unsigned-in profile stops before operator calls, with no fallback to the operator token. The operator handles lifecycle, Evidence preflight and case-status write-back; the subject token handles the case's Work calls. --subject-email and --subject-user-id no longer execute Role Assistant cases. Connected System governance commands keep their separately documented subject options. When a case cannot answer a required question, repeats an answered question or fails while responding, the CLI stops polling and reports pollStopped with a reason. Inspect the case answers and execution before rerunning; an early stop is not business success.

Evidence lifecycle

Use the Evidence commands to inspect the live authoring catalogs, export all pages, find active rows whose catalog values are no longer offered, and run the governed promotion lifecycle:

aifabrix evidence context --resource-type deal --json
aifabrix evidence list --role-key sales-representative --page 1 --page-size 50
aifabrix evidence export --file .evidence/evidence.json
aifabrix evidence check-catalog --strict
aifabrix evidence validate <idOrKey>
aifabrix evidence certify <idOrKey> --comment "Reviewed"
aifabrix evidence activate <idOrKey>

context, list, export, and check-catalog are read-only. export retrieves every result page. Validation does not activate a row. Certification and activation require an authorized signed-in person; file metadata and --force do not grant that authority. Dataplane refusal codes remain the CLI result, including archived-row and catalog-value refusals.

Search (read-only)

Ad-hoc retrieve for a Role Assistant assigned to your login. Same governed search as Work Hub retrieve cases — not a second engine and not a work start.

aifabrix search
aifabrix search skills --role ra-hr-business-partner
aifabrix search --role ra-hr-business-partner --type employee --operation list
aifabrix search --role ra-hr-business-partner --type employee --operation list --json
aifabrix search --role ra-hr-business-partner --type employee --operation list --graph --query "direct reports"

The example keys are valid only when search skills publishes employee and list for that assigned Role Assistant. Use the role, resource type, and operation keys returned for your login. Interactive pickers run in a terminal when flags are omitted. Scripts and CI must pass --role (and type/operation when required) or the command fails closed. --json / --output write the payload; a terminal table prints unless --json. --graph includes one level of related records on the returned rows — it is not multi-hop traversal or a generic corpus search. --query supplies the semantic hop text and only applies when --graph is set; --knowledge-key is repeatable and scopes the retrieve to specific knowledge keys. Full flags: aifabrix search --help.

Publish

A controller deployment-in-flight conflict follows the existing deployment, then exits 2 because this invocation did not deploy its local manifest. Inspect the deployment ID before another submission. A failed runtime probe can make upload/deploy exit 1 after publication already completed; inspect publication and probe outcomes separately. A probe with no datasource results warns rather than establishing runtime success.

For explicit Connected System replacement, use aifabrix upload <systemKey> --force. The CLI obtains a server removal preview before confirmation and forwards its exact ETag as If-Match, including asynchronous submissions. Missing or stale confirmation returns 409: obtain and review a new preview rather than retrying the old confirmation. A server without a valid preview ETag is refused by the current CLI. Unknown preview counts remain unknown, never zero. Older clients must support the same precondition before destructive replacement.

aifabrix upload <systemKey> [--dry-run] [--verbose] [--gate <gates>] [--no-wait]
aifabrix upload <systemKey> --resume <jobId>
aifabrix deploy <systemKey> [--probe]
aifabrix show <systemKey> --online

For Connected Systems, upload submits durable candidate qualification and waits by default. --no-wait returns the job id; --resume follows that existing job without another submission. Ctrl-C or a CLI --timeout detaches but does not cancel server work. --gate operations,trust,governance or --gate full selects optional checks on upload; --probe is an optional post-publish runtime check, not a preflight. Deploy promotes qualified current input; deploy --gate is a compatibility no-op. Changed content needs another upload and requalification before promotion.

When a supported upload, deploy, or protection command uses --sync, the CLI waits for the typed sync job status. --sync-timeout <seconds> defaults to 1800. A job still running when the wait expires continues on Dataplane; the CLI exits 5 with SYNC_STILL_RUNNING and prints the job id for follow-up.

Role Assistant packages (settings + Evidence; upload ≡ deploy with --env):

aifabrix download ra-<roleKey>
aifabrix validate ra-<roleKey>
aifabrix upload ra-<roleKey> --env <dev|tst|pro>
aifabrix role-assistant test <bareRoleKey> [--env <dev|tst|pro>] [--case …] [--suite …] [--from-dataplane] [--json] [--verbose] [--debug]
aifabrix role-assistant copy <bareRoleKey> --suite <suiteId> --reference <executionId>

validate checks every governed file in the package (settings, YAML cases, Evidence, Knowledge). copy writes one local YAML case from a completed Work Hub execution — it does not invent a prompt. Live capture requires the platform copy route; if copy cannot materialize, author YAML by hand. Flags: aifabrix role-assistant copy --help.

See Manage Role Assistant packages, Role Assistant tests (prove catalog), Test Role Assistants (package), Author Role Assistant Evidence, and Author Role Assistant Knowledge.

Assistant channels

Communication channels (Slack, Teams, Copilot, ChatGPT) use Connected Systems — not controller app deploy:

aifabrix channel add
aifabrix channel add <target> --name "Elsa" [--probe]

One command scaffolds, uploads when needed, and installs. --force refreshes the local package and re-uploads.

Targets: teams-bot, slack, microsoft-copilot, chatgpt (web-embed experimental with --allow-experimental).

How-tos: Deliver assistant channels.

Enterprise AI Certification

Read the server verdict and its proof gaps. Missing governance coverage stays missing; absent certification is not an invented certification level. A selected capability that no step exercised reports notExercised and does not pass: enable or supply an applicable scenario and rerun it. Skipped, blocked and NOT_VERIFIED outcomes are not successful live proof. Retain the run ID and per-datasource reasons before a focused rerun.

Use these commands to inspect individual certification pillars or a lifecycle report. For qualification of changed content, select required gates on upload rather than rerunning the ladder in the deploy client:

aifabrix verify-operations <systemKey>
aifabrix verify-trust <systemKey>
aifabrix verify-governance <systemKey> [--subject-email <email>]
aifabrix lifecycle <systemKey>
Command Pillar
verify-operations Operations — validate, test, integration, E2E
verify-trust Agent metadata trust — business metadata for AI
verify-governance Governance — ABAC visibility per subject
lifecycle Combined certification report

See Certification for the full ladder and Validation and certification for business context.

Datasource commands

Use aifabrix datasource (shorthand aifabrix ds) when you iterate on one datasource without re-uploading the entire external system. Commands below match the installed Builder CLI — run aifabrix datasource --help if a flag differs in your version.

Validate, list, and compare

aifabrix datasource validate <file-or-directory>
aifabrix datasource list [prefix]
aifabrix datasource diff <file1> <file2>
  • validate — offline schema and semantic checks on YAML/JSON (or a folder of datasource files)
  • list — datasources registered in the configured environment
  • diff — compare two datasource files before publish

Publish and test

aifabrix datasource upload <file-or-key>
aifabrix datasource test <datasourceKey> --app <systemKey>
aifabrix datasource test-integration <datasourceKey> --app <systemKey>
aifabrix datasource test-e2e <datasourceKey> [capabilityKey] --app <systemKey> [--debug <summary|full|raw>] [--json]
aifabrix datasource verify-audit <datasourceKey> --app <systemKey> [--json]
  • upload — upload one datasource to the Dataplane by file path or datasource key under integration/<systemKey>/; inspect the returned status. Draft upload is not operational promotion
  • test — structural/policy validation on the dataplane
  • test-integration — integration validation on the dataplane
  • test-e2e — end-to-end validation against live or sandbox APIs; a positional capability key focuses the report
  • verify-audit — recheck E2E audit evidence without calling the vendor again

System-level equivalents remain aifabrix upload, aifabrix test-integration, and aifabrix test-e2e when you publish or test every datasource at once.

Logs and fixtures (optional)

aifabrix datasource log-test <datasourceKey> [--app <systemKey>]
aifabrix datasource log-integration <datasourceKey> [--app <systemKey>]
aifabrix datasource log-e2e <datasourceKey> [--app <systemKey>]
aifabrix datasource log-trust <datasourceKey> [--app <systemKey>]
aifabrix datasource load <datasourceKey> [--app <systemKey>] [--file <fixture-file>]
aifabrix datasource export <datasourceKey> [--app <systemKey>] [--file <path>]
aifabrix datasource clean-logs --app <systemKey> [--type <test|integration|e2e|trust|all>] [--dry-run]

Use log commands after failed test, test-integration, test-e2e, or verify-trust --debug runs. load and export move fixture or governed records for sandbox workflows — confirm environment before upload-style commands.

Lifecycle maintenance

Choose removal by intent. datasource remove deactivates one datasource while retaining its stored records and Connected System. datasource reset deletes stored data while retaining configuration. Force package replacement can purge retired datasources' stored data; it is a separate destructive workflow.

aifabrix datasource remove <datasourceKey> --dry-run
aifabrix datasource remove <datasourceKey>
aifabrix protection delete <datasourceKey> --key <protectionKey> --dry-run
aifabrix protection delete <datasourceKey> --key <protectionKey>

Datasource removal requires external-data-source:delete; type the datasource key to confirm, or explicitly authorize --yes for non-interactive/JSON use. Protection deletion selects the Dataplane's stored protection, never a local manifest: without --key, exactly one stored protection must exist. Review the key and available grant/value counts before confirmation. It removes that protection and lineage-generated grants/values while retaining datasource records and local files.

aifabrix repair <systemKey> [--dry-run]
aifabrix delete <systemKey>

Narrative docs (prefer over this index)

For business context and phase order, use:

Limits

A replacement may publish successfully while retired-data cleanup remains pending. Retry the same force upload to finish cleanup without publishing a second version; inspect both publication and cleanup status. Neither an HTTP 202 nor a qualification pass implies completed publication, implicit deploy, or successful live vendor tests.

Command names and flags evolve with Builder releases. If a command fails, run aifabrix <command> --help and validate against your installed CLI version.

Related

Controller administration now has identity, role assignments, dimensions, resource types, Evidence Types, applications and Agent Kit task procedures. Inspect installed help before using source-reviewed commands.