Kalam CLI
The Kalam CLI (kalam) is the SQL-first terminal client for KalamDB. It ships as a native Rust binary and as the npm package @kalamdb/cli.
Use it for:
- project workflows —
kalam init,kalam dev, migrations, and schema codegen - one-shot SQL and interactive shells
- named instance profiles (
dev,staging,prod) - live query subscriptions and topic consumers
- remote schema watch (
--watch-schema) when DDL changes on the server - cluster and storage meta-commands
Recommended reading order
Project workflow
SQL client
- Authentication
- Querying & SQL
- Live Subscriptions
- Topic Consumers
- Interactive Commands
- SQL Workflows
- Options & Timeouts
Execution modes
When you run kalam without a subcommand, these modes apply (in precedence order):
--watch-schema— pollsystem.tablesand run a local command (requires--run)--subscribe/--list-subscriptions— subscription management--consume --topic ...— topic consumer mode- SQL execution:
--file <path>— execute file and exit--command <sql>— execute one statement and exit- no flags — interactive shell
Project commands (init, dev, migration, db, schema, status, deploy) are always top-level subcommands.
Quick command map
Related docs
Last updated on