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
Init and Dev Workflow
kalam init scaffolds a project. kalam dev starts (or reuses) the local server, applies schema.sql, injects .env into app processes, and supervises [dev.processes]. Start with the short walkthrough, then Project Init and Local Development.
Recommended reading order
Project workflow
- Setup & Install
- Init and Dev Workflow
- 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