Command Reference
All commands live under the tonic binary.
| Command | Purpose |
|---|---|
tonic connections | Manage saved database targets in global or project-local config. |
tonic query | Ping targets and execute inline SQL or query files. |
tonic inspect | Browse catalogs, schemas, tables, views, columns, definitions, and supported DDL. |
tonic serve | Run the local JSON-RPC service over stdio. |
tonic config | Reserved for future CLI configuration commands. |
Global Shape
Section titled “Global Shape”tonic --helptonic --versionThe root command prints help when called without arguments.
Output Formats
Section titled “Output Formats”query exec supports:
--format table--format csv--format json
Inspect list commands support table, csv, and json.
Inspect definition commands support text and json.
Context Flags
Section titled “Context Flags”Commands that resolve target context use repeated --context key=value flags.
tonic query exec \ --target warehouse \ --context schema=analytics \ --sql 'select count(*) from daily_sales'Context keys are backend-aware. Unsupported keys fail before execution.