query
Run a ClickHouse SQL query against a project's database.
Without a FORMAT clause, renders an auto-sized terminal table. Add --json
to get the raw JSON envelope { data, meta, rows, statistics } instead.
Append a ClickHouse FORMAT clause to the SQL for raw output: JSON,
JSONEachRow, CSV, CSVWithNames, TSV, TSVWithNames, PrettyCompact,
Parquet, Prometheus. The response body is written directly to stdout
so you can pipe it.
ProjectId filtering is automatic via JWT. Never add WHERE ProjectId in SQL.