--json for machine-readable output and accept the global --org flag to target a specific organization.
SQL queries
Thetolmo sql command executes a SQL query against your organization’s relational database and prints results as a formatted table by default.
--json to receive raw JSON — useful when piping output to jq or another tool.
Cypher (graph) queries
Thetolmo cypher command executes a Cypher query against the infrastructure graph database. The graph represents your cloud environment as a network of nodes (resources) and edges (relationships between them), giving you a powerful way to understand how infrastructure components connect.
Record why you’re running a query
Pass--intent with one sentence stating the goal the query serves. Tolmo attaches it to the request trace in APM and to the security audit log of rejected queries, so a burst of automated queries has an attributable purpose. It never changes the query or its results.
Agents and scripts must set
--intent on every query. Skip it only for a one-off query you type yourself. When you call the Cypher endpoint directly, send the same text in the intent field of the request body.Graph data model
Every resource in the infrastructure graph is stored as aGraphNode, and every relationship between resources is stored as a GRAPH_EDGE.
Both nodes and edges carry temporal tracking fields:
You can use these fields to write time-aware queries:
Output formats
Bothsql and cypher support two output modes: