Product

CLI reference

The cxas binary is machine-first. Flags are long-form. Global options apply to every subcommand.

Global flags

FlagDefaultMeaning
--format json|humanjsonStdout shape
--no-inputtrueNever wait on stdin
--oauth-tokenunsetReserved for a future live transport

Exit codes

CodeMeaning
0Success
1Runtime / CES / lint / eval / drift failure
2Usage, 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.

CommandImportant flagsBehavior here
init--app-dirWrite app.yaml + root agent skeleton
local create--app-dirSame local scaffold as init
lint--app-dir (default .)Structural lint: V-ROOT and registry rules
create--name --app-id --location --project-idInsert an app into the catalog
delete--app / --app-name / --display-nameRemove catalog app
apps list--location --project-id --appList catalog apps
apps get--app + locationGet one catalog app
push--app-dir --appRecord a local import against the catalog
branch--source --new-nameClone a catalog app under a new name
deploy--app-dir --channel-type --noise-cancellationRecord a local deployment (no Cloud RPC)
pull--app --target-dir --version-idStreamed export via mock transport; writes files
state--app-dir + locationContent hash of the local tree
diff--app-dir --allow-driftDrift vs remote tree; exit 1 on drift unless allowed
run--wait --evaluation-idEval runner against fixtures / mocks
test-tools--test-file --app-nameTool eval runner
test-callbacks / test-single-callback--app-dirCallback eval runner
evals report--output-dir / --outputCombined HTML/JSON report including turn rows
trace --raw--app-namePer-turn JSON
export / push-eval--evaluation-id / --fileEval artifact helpers
actions init--app-dir WIF flagsWrite GitHub Actions from environment.json
init-github-actionsame as actions initAlias
migrate dfcx--source --zip --yesNon-interactive DFCX pipeline
conversations list|getlocation + resource nameCatalog / mock conversations
deployments list|create|promote--deployment-id --version --channel-typeCatalog deployments
versions list|compare--appCatalog versions
insightslocationMock insights payload
ci-test / local-test--display-nameCI-shaped eval wrappers
agent / tool / guardrail--app-dirLocal resource helpers
llm-lint--app-dirRequires --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/.