--- title: "CLI reference" slug: "reference-cli-reference" description: "Builder CLI command index for Agent Kit, auth, modeling, validate, test, Role Assistant packages, channels, and certification." tags: ["Integration", "Reference", "Agent Kit", "Developer", "Integrator"] updated: 2026-11-30T18:29:29Z published: 2026-11-30T18:29:29Z canonical: "docs.aifabrix.ai/reference-cli-reference" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.aifabrix.ai/llms.txt > Use this file to discover all available pages before exploring further. # CLI reference 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](/docs/build-ai-ready-systems-validate-test-cli-workflow) guide. Platform setup: [Set up a local platform](/docs/build-ai-ready-systems-get-started-set-up-local-platform). Assignment-scope configuration: [Enable and verify Dimension ABAC](/docs/build-ai-ready-systems-operate-enable-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 ] [--name ] aifabrix onboarding --repo aifabrix agent-kit setup [--repo owner/name] aifabrix agent-kit init cust- --host all --approve-all --yes aifabrix agent-kit init cust- --host all --remote --org --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 --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](/docs/build-ai-ready-systems-get-started-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](/docs/operate-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](/docs/build-ai-ready-systems-operate-platform-upgrade-azure-platform-with-cli) | | Update local Docker platform | `aifabrix upgrade --local`; [local procedure](/docs/build-ai-ready-systems-operate-platform-upgrade-local-platform) | | Declare, read and publish application settings | `env secret list`, selected `env secret push --dry-run` then push; [configuration procedure](/docs/build-ai-ready-systems-operate-platform-manage-application-configuration) | | Provision an entitled environment and public domain | `env deploy`, `env domain add/status/refresh/remove`; [environment procedure](/docs/build-ai-ready-systems-operate-platform-manage-environments-domains) | | Promote an image and inspect progress | `deploy`, `app deployment`, `deployment list/get/cancel`; [deployment procedure](/docs/build-ai-ready-systems-operate-platform-follow-recover-deployments) | | Inspect health and diagnostic evidence | Authorized Controller health/log APIs; local `logs`; [diagnosis procedure](/docs/build-ai-ready-systems-operate-platform-diagnose-platform-health-logs) | | Recover an interrupted upgrade | Reauthenticate, inspect the existing deployment, rediscover; [verification and recovery](/docs/build-ai-ready-systems-operate-platform-verify-recover-platform-upgrades) | ``` 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 aifabrix env secret push dev --app --dry-run aifabrix env secret push dev --app --key ``` 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 --type external aifabrix integration-definition validate [--fix-hash] aifabrix integration-definition apply [--dry-run] [--force] [--output-dir ] aifabrix wizard [systemKey] aifabrix wizard --config aifabrix repair [--dry-run] [--auth apikey] [--rbac] [--expose] aifabrix json aifabrix json --resource-group --env dev aifabrix build --env dev aifabrix download ``` Author an upsert candidate only from existing create/update capabilities and mapped business identity: ``` aifabrix datasource capability upsert --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 [--cert-sync] aifabrix test aifabrix datasource test --app aifabrix test-integration aifabrix datasource test-integration --app aifabrix test-e2e aifabrix datasource test-e2e [capabilityKey] --app [--debug ] [--json] aifabrix role-assistant test [--env ] [--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](/docs/reference-cli-reference#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 aifabrix evidence certify --comment "Reviewed" aifabrix evidence activate ``` `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 [--dry-run] [--verbose] [--gate ] [--no-wait] aifabrix upload --resume aifabrix deploy [--probe] aifabrix show --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- aifabrix validate ra- aifabrix upload ra- --env aifabrix role-assistant test [--env ] [--case …] [--suite …] [--from-dataplane] [--json] [--verbose] [--debug] aifabrix role-assistant copy --suite --reference ``` `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](/docs/build-ai-ready-systems-operate-manage-role-assistant-packages), [Role Assistant tests](/docs/build-ai-ready-systems-validate-test-role-assistant-tests) (prove catalog), [Test Role Assistants (package)](/docs/build-ai-ready-systems-operate-test-role-assistants), [Author Role Assistant Evidence](/docs/build-ai-ready-systems-operate-author-role-assistant-evidence), and [Author Role Assistant Knowledge](/docs/build-ai-ready-systems-operate-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 --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](/docs/build-ai-ready-systems-operate-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 aifabrix verify-trust aifabrix verify-governance [--subject-email ] aifabrix lifecycle ``` | 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](/docs/build-ai-ready-systems-publish-certify-certification) for the full ladder and [Validation and certification](/docs/operational-trust-validation-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 aifabrix datasource list [prefix] aifabrix datasource diff ``` - **`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 aifabrix datasource test --app aifabrix datasource test-integration --app aifabrix datasource test-e2e [capabilityKey] --app [--debug ] [--json] aifabrix datasource verify-audit --app [--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 [--app ] aifabrix datasource log-integration [--app ] aifabrix datasource log-e2e [--app ] aifabrix datasource log-trust [--app ] aifabrix datasource load [--app ] [--file ] aifabrix datasource export [--app ] [--file ] aifabrix datasource clean-logs --app [--type ] [--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 --dry-run aifabrix datasource remove aifabrix protection delete --key --dry-run aifabrix protection delete --key ``` 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 [--dry-run] aifabrix delete ``` ## Narrative docs (prefer over this index) For business context and phase order, use: - [Create an enterprise external system](/docs/build-ai-ready-systems-get-started-create-enterprise-external-system) - [Apply an integration definition](/docs/build-ai-ready-systems-get-started-apply-integration-definition) - [CLI workflow](/docs/build-ai-ready-systems-validate-test-cli-workflow) - [Connected System tests](/docs/build-ai-ready-systems-validate-test-connected-system-tests) - [Role Assistant tests](/docs/build-ai-ready-systems-validate-test-role-assistant-tests) - [Test Role Assistants (package)](/docs/build-ai-ready-systems-operate-test-role-assistants) - [Certification](/docs/build-ai-ready-systems-publish-certify-certification) ## 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 - [Quickstart: new external system](/docs/build-ai-ready-systems-get-started-quickstart-new-external-system) - [Developer workstation setup](/docs/build-ai-ready-systems-get-started-developer-workstation-setup) (Agent Kit workspace bootstrap) - [Schema reference](/docs/reference) Controller administration now has [identity](/docs/build-ai-ready-systems-operate-platform-manage-controller-users-groups), [role assignments](/docs/build-ai-ready-systems-operate-platform-manage-controller-roles-assignments), [dimensions](/docs/build-ai-ready-systems-operate-platform-manage-controller-dimensions-values), [resource types](/docs/build-ai-ready-systems-operate-platform-manage-controller-resource-types-with-cli), [Evidence Types](/docs/build-ai-ready-systems-operate-platform-manage-controller-evidence-types-with-cli), [applications](/docs/build-ai-ready-systems-operate-platform-manage-controller-applications-with-cli) and [Agent Kit](/docs/build-ai-ready-systems-get-started-use-agent-kit-in-a-managed-workspace) task procedures. Inspect installed help before using source-reviewed commands. ## Related - [Enterprise MCP reference](/reference-enterprise-mcp-reference.md) - [Deliver assistant channels](/build-ai-ready-systems-operate-deliver-assistant-channels.md) - [Manage Role Assistant packages](/build-ai-ready-systems-operate-manage-role-assistant-packages.md) - [Developer workstation setup](/build-ai-ready-systems-get-started-developer-workstation-setup.md) - [Role Assistant tests](/build-ai-ready-systems-validate-test-role-assistant-tests.md) - [Test Role Assistants](/build-ai-ready-systems-operate-test-role-assistants.md) - [Proving Role Assistants](/role-assistants-proving-role-assistants.md) - [Set up a local AI Fabrix platform](/build-ai-ready-systems-get-started-set-up-local-platform.md) - [Prepare a managed coding workspace](/build-ai-ready-systems-get-started-managed-coding-workspace.md) - [Enable and verify Dimension ABAC](/build-ai-ready-systems-operate-enable-dimension-abac.md)