Skip to content

omx compiler ​

Inspect the compiled intermediate representation (IR) of your metrics.

Commands ​

omx compiler status ​

Get compilation summary for all metrics.

bash
omx compiler status
omx compiler status --json

omx compiler inspect ​

Show the full compiled IR for a specific metric — measures, dimensions, joins, time grain, semantic edges.

bash
omx compiler inspect total_revenue
omx compiler inspect total_revenue --json

omx compiler agent-context ​

Emit prompt-ready IR for LLM agent injection. Used by agent integrations to give LLMs structured context about available metrics.

bash
omx compiler agent-context --query "revenue"
omx compiler agent-context --query "revenue" --top-k 5

omx compiler validate ​

Validate all compiled metrics for fan-out risk, ambiguous joins, and structural issues.

bash
omx compiler validate

omx compiler import ​

Import metrics from a file (dbt YAML, LookML).

bash
omx compiler import --format dbt --content "$(cat manifest.json)"
omx compiler import --format lookml --content "$(cat views/revenue.view.lkml)"

MIT Licensed (SDK) | Proprietary (Server)