--- title: "CLI workflow reference" slug: "build-ai-ready-systems-validate-test-cli-workflow" description: "Builder CLI ladder for Agent Kit, generate, validate, Connected System and Role Assistant tests, publish, and certify. Cross-check flags with aifabrix --help." tags: ["Integration", "Agent Kit", "Developer", "Integrator"] updated: 2026-11-30T18:46:06Z published: 2026-11-30T18:46:06Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-validate-test-cli-workflow" --- > ## 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 workflow reference Quick reference for the **Builder CLI** (`aifabrix` / `af`) integration ladder. Run **`aifabrix <command> --help`** for flags. Full index: [CLI reference](/docs/reference-cli-reference). ## Prerequisites - Builder CLI installed; Node.js 24 or later for Builder 2.68 and later - **`aifabrix auth status --validate`** succeeds before online work - Integration folder under `integration/<systemKey>/` ## Where it lives Commands run from your workstation against the controller/dataplane for your configured **environment** — local JSON under `integration/<systemKey>/` remains source of truth until **`upload`**. ## How to set The JSON blocks below are illustrative manifest fragments, not complete deployable manifests. Merge them into the appropriate generated Business Entity manifest, then run the validation commands before upload. Follow this gate order for a new integration: 1. **Auth** — session before online commands. 2. **Scaffold** — **`create`**, BID **`integration-definition apply`**, copy fixtures, **`repair`**. 3. **Validate** — schema + application manifest alignment. 4. **Test** — unit, integration, E2E against sandbox credentials. 5. **Publish** — **`upload`** qualifies the candidate; **`deploy`** promotes it. Use **`show --online`** to inspect state and optional **`--probe`** after publication. 6. **Certify** — operations, trust, governance pillars, **`lifecycle`**. Example minimal scaffold identity on datasource JSON: ``` { "key": "example-customers", "displayName": "Customers", "systemKey": "example-crm", "entityType": "recordStorage", "resourceType": "customer", "primaryKey": ["externalId"] } ``` ## Defaults and examples **Agent Kit** (customer workspace — not an integration gate). How-to: [Prepare a managed coding workspace](/docs/build-ai-ready-systems-get-started-managed-coding-workspace). On an administrator-provisioned workspace host, use the fastest path: ``` aifabrix onboarding ``` It reads the managed Controller, environment, work directory, and coding platform, then prepares or resumes the workspace. If no coding platform is configured, pass `--coding claude`, `--coding codex`, or `--coding cursor`; this first choice is saved. An existing platform setting is preserved when `--coding` selects another platform for one run. Use `--name` or `--repo` to select a different workspace or repository. On portable Linux/macOS without managed configuration, `aifabrix agent-kit setup <controllerUrl>` signs in, creates a local workspace, and starts Codex; GitHub is optional unless `--repo owner/name` is supplied. `install` does not start a session. ``` aifabrix agent-kit init cust- --host all --approve-all --yes aifabrix agent-kit install --host claude --approve-all --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 aifabrix agent-kit kill ``` **Auth** ``` aifabrix auth status aifabrix login ``` **Generate** ``` aifabrix create --type external aifabrix integration-definition validate ./bid.json aifabrix integration-definition apply ./bid.json --dry-run aifabrix integration-definition apply ./bid.json aifabrix repair --auth apikey aifabrix repair --rbac --expose ``` **Validate and fix** ``` aifabrix validate aifabrix repair [--dry-run] [--rbac] [--expose] aifabrix json ``` **Test** ``` aifabrix test aifabrix datasource test --app aifabrix test-integration aifabrix datasource test-integration --app aifabrix test-e2e aifabrix datasource test-e2e --app aifabrix role-assistant test --env dev ``` **Publish** ``` aifabrix upload [--probe] [--dry-run] aifabrix deploy [--probe] aifabrix show --online ``` **Enterprise AI Certification** (individual pillar diagnostics and report; select required gates on upload for candidate qualification): ``` aifabrix verify-operations aifabrix verify-trust aifabrix verify-governance [--subject-email ] aifabrix lifecycle ``` **Lifecycle maintenance** ``` aifabrix download aifabrix repair [--dry-run] aifabrix delete ``` Recommended gate order: ``` validate → test → upload (wait for qualification; select required gates) → show --online → deploy when managed promotion is required ``` ## Validate Never stop at **`verify-trust`** — operations and governance pillars are required for full certification. Use **`--dry-run`** on **`repair`** and **`upload`** in CI before mutating shared environments. ### Keep timeout and certification evidence separate A client timeout means the CLI stopped waiting; inspect the existing server operation and its identifiers before submitting another run. Confirm the installed command's help before changing its wait or sync options: flags shown in development documentation may not exist in your installed Builder release. Record whether the test used existing records or performed a sync, so a later reviewer can reproduce the same data state. For Microsoft integration updates that require corrected request bindings, follow [the upgrade revalidation steps](/docs/build-ai-ready-systems-validate-test-connected-system-tests#revalidate-microsoft-integrations-after-a-dataplane-upgrade). Upgrading the platform and replacing an installed integration package are separate steps. Preserve customer customizations and prove the resulting write with a readback. ## Common mistakes | Mistake | Fix | | --- | --- | | Upload before validate | Fix schema locally first | | Treating a probe as local preflight | Use `upload --dry-run` for local payload preview; a probe runs after publication | | Certify unpublished JSON | Upload then pillars | | Wrong environment token | Match scopes to target env | ## Limits Command availability and permissions depend on your controller/dataplane environment. See Builder CLI documentation for full command matrix and required permissions. `agent-kit start` needs **tmux** on PATH. Claude uses its Remote Control workflow by default. Codex Remote Control requires the standalone managed daemon; an npm-installed Codex CLI may need `--no-remote-control` for a tmux-only session. A Codex desktop SSH app server is separate and can appear in `agent-kit list` even when no tmux session exists. `--approve-all` writes local auto-approval settings for the selected coding host in that workspace. For Claude Code this is `bypassPermissions`, which approves every Claude tool call, not only Builder commands; use `--skip-approve-all` or `--approve-all codex` when that is too broad. Optional OpenAPI import commands exist — this reference lists **`create`**, **BID apply**, **repair**, and **validate** as CLI-first generate paths. How-tos: [Apply an integration definition](/docs/build-ai-ready-systems-get-started-apply-integration-definition), [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). Protection commands use datasource **`key`** arguments — not **`systemKey`** — when running **`protection validate`** / **`protection upload`**. Use **`datasource validate`** when iterating on one JSON file — full **`validate <systemKey>`** is slower and obscures which datasource introduced a regression during multi-file commits. A probe is an optional runtime check after publication, not a non-mutating auth or schema preflight. A failed probe can produce a failing CLI exit after publication completed; inspect both results before retrying. Pin Builder CLI versions in CI images when reproducible certification matters — command flags and default probe behavior evolve between minor releases. Verify the installed version and its own help against the target Controller and Dataplane. Commands documented in a development checkout may not be available in the published package; use the supported version set supplied for your installation. Retain the command version, target environment, selected case or datasource, job identifier and final JSON verdict with each proof. Keep failed and skipped rows visible when narrowing a rerun; a passing subset does not clear failures outside that subset. Run local validate and test before qualification. Live integration/E2E checks require the appropriate uploaded or published state and configured credentials. Requalify changed content before promotion; retain operations, trust and subject-scoped governance proof before production use. Reference [Connected System tests](/docs/build-ai-ready-systems-validate-test-connected-system-tests) for structure / pipeline / E2E, and [Test ladder and protection](/docs/build-ai-ready-systems-validate-test-test-ladder-protection) when choosing protection and certify commands — not every command belongs in every CI stage. Protection and governance commands require datasource **`key`** CLI arguments — document those keys in runbooks alongside **`systemKey`** to prevent on-call mistakes during incidents. Use **`--dry-run`** on **`upload`** in shared tst environments even after green local validate — probe semantics differ when platform promotion gates are enabled. Document which environment each CI stage targets in pipeline variables — mismatched **`environment`** values are the fastest way to get green dev certification and red tst upload failures in the same commit. ## Related - [Validation, schemas, and repair](/build-ai-ready-systems-validate-test-validation-schemas-repair.md) - [Test ladder and protection](/build-ai-ready-systems-validate-test-test-ladder-protection.md) - [Connected System tests](/build-ai-ready-systems-validate-test-connected-system-tests.md) - [Role Assistant tests](/build-ai-ready-systems-validate-test-role-assistant-tests.md) - [Apply an integration definition](/build-ai-ready-systems-get-started-apply-integration-definition.md) - [Developer workstation setup](/build-ai-ready-systems-get-started-developer-workstation-setup.md)