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
- cluster and storage meta-commands
June 17 v0.5.3-rc.1 CLI Workflow
The June 17 v0.5.3-rc.1 pre-release makes kalam init and kalam dev the main local project workflow. Read the release note, then start with Project Init and Local Development.
Recommended reading order
Project workflow
- Setup & Install
- Project Init
- kalam.toml Reference
- Local Development — includes schema file watch
- Migrations
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):
--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