Product
CLI reference
The cxas binary is machine-first. Flags are long-form. Global options apply to every subcommand.
Global flags
| Flag | Default | Meaning |
|---|---|---|
--format json|human | json | Stdout shape |
--no-input | true | Never wait on stdin |
--oauth-token | unset | Reserved for a future live transport |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Runtime / CES / lint / eval / drift failure |
| 2 | Usage, missing location, TTY required, disabled feature |
JSON envelope
{ "ok": true, "command": "lint", "data": { } }
{ "ok": false, "command": "pull", "error": { "code": "LOCATION_REQUIRED", "message": "..." } }
Human format prints a short line instead of the envelope. Error lines look like error LOCATION_REQUIRED: ....
Commands
What each command does in this checkout. Cloud-shaped verbs persist or read the local catalog unless noted.
| Command | Important flags | Behavior here |
|---|---|---|
init | --app-dir | Write app.yaml + root agent skeleton |
local create | --app-dir | Same local scaffold as init |
lint | --app-dir (default .) | Structural lint: V-ROOT and registry rules |
create | --name --app-id --location --project-id | Insert an app into the catalog |
delete | --app / --app-name / --display-name | Remove catalog app |
apps list | --location --project-id --app | List catalog apps |
apps get | --app + location | Get one catalog app |
push | --app-dir --app | Record a local import against the catalog |
branch | --source --new-name | Clone a catalog app under a new name |
deploy | --app-dir --channel-type --noise-cancellation | Record a local deployment (no Cloud RPC) |
pull | --app --target-dir --version-id | Streamed export via mock transport; writes files |
state | --app-dir + location | Content hash of the local tree |
diff | --app-dir --allow-drift | Drift vs remote tree; exit 1 on drift unless allowed |
run | --wait --evaluation-id | Eval runner against fixtures / mocks |
test-tools | --test-file --app-name | Tool eval runner |
test-callbacks / test-single-callback | --app-dir | Callback eval runner |
evals report | --output-dir / --output | Combined HTML/JSON report including turn rows |
trace --raw | --app-name | Per-turn JSON |
export / push-eval | --evaluation-id / --file | Eval artifact helpers |
actions init | --app-dir WIF flags | Write GitHub Actions from environment.json |
init-github-action | same as actions init | Alias |
migrate dfcx | --source --zip --yes | Non-interactive DFCX pipeline |
conversations list|get | location + resource name | Catalog / mock conversations |
deployments list|create|promote | --deployment-id --version --channel-type | Catalog deployments |
versions list|compare | --app | Catalog versions |
insights | location | Mock insights payload |
ci-test / local-test | --display-name | CI-shaped eval wrappers |
agent / tool / guardrail | --app-dir | Local resource helpers |
llm-lint | --app-dir | Requires --features llm |
run-session | -- | Requires a TTY; otherwise exit 2 |
Location-bearing flags
Most CES-shaped commands accept:
--location <id>
--project-id <id>
Omitting --location on those commands is a usage error (exit 2, code LOCATION_REQUIRED).
Actions init
Closes #46 and #54. Reads environment.json under --app-dir and writes workflow templates from crates/cxas-cli/templates/.
--auto-create-wif--no-cleanup--workload-identity-provider--service-account