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 --jsonomx 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 --jsonomx 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 5omx compiler validate
Validate all compiled metrics for fan-out risk, ambiguous joins, and structural issues.
bash
omx compiler validateomx 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)"