Skip to main content
Tolmo lets you query two data stores — a relational database (via SQL) and a graph database (via Cypher) — directly from the command line. Use SQL for structured, tabular data about your organization and Cypher for traversing infrastructure relationships in the graph. Both commands support --json for machine-readable output and accept the global --org flag to target a specific organization.

SQL queries

The tolmo sql command executes a SQL query against your organization’s relational database and prints results as a formatted table by default.
Pass --json to receive raw JSON — useful when piping output to jq or another tool.

Cypher (graph) queries

The tolmo 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.

Graph data model

Every resource in the infrastructure graph is stored as a GraphNode, 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

Both sql and cypher support two output modes:
Always pass --json when parsing output programmatically. Table formatting can vary across CLI versions, while the JSON schema is stable and easy to process with tools like jq.