Skip to content

Command Reference

All commands live under the tonic binary.

CommandPurpose
tonic connectionsManage saved database targets in global or project-local config.
tonic queryPing targets and execute inline SQL or query files.
tonic inspectBrowse catalogs, schemas, tables, views, columns, definitions, and supported DDL.
tonic serveRun the local JSON-RPC service over stdio.
tonic configReserved for future CLI configuration commands.
Terminal window
tonic --help
tonic --version

The root command prints help when called without arguments.

query exec supports:

  • --format table
  • --format csv
  • --format json

Inspect list commands support table, csv, and json.

Inspect definition commands support text and json.

Commands that resolve target context use repeated --context key=value flags.

Terminal window
tonic query exec \
--target warehouse \
--context schema=analytics \
--sql 'select count(*) from daily_sales'

Context keys are backend-aware. Unsupported keys fail before execution.