The command-line client for chunkdb, which stores typed blocks in chunks. A block is one cell with named values. A chunk groups blocks under one version, which changes when its stored data changes.
Start a server using Quick start, then set your connection details.
export CHUNKDB_PASSWORD='your-admin-password'
export CHUNKDB_URI=chunk://admin@127.0.0.1:4242/With an unused world table name:
chunk-cli --uri "$CHUNKDB_URI" "CREATE TABLE world (kind u8, name text(16) NULL) CHUNK 2 x 2"
chunk-cli --uri "$CHUNKDB_URI" "SET BLOCK 1 1 IN world kind = 2, name = 'door'"
chunk-cli --uri "$CHUNKDB_URI" "GET BLOCK 1 1 FROM world"OK
2
kind = 2
name = 'door'
Each write prints the chunk's version.
For several statements on one connection, run chunk-cli --uri "$CHUNKDB_URI" shell.
You need Go 1.25.6 or newer.
go install github.com/chunkdb/chunk-cli/v2/cmd/chunk-cli@latestAdd Go's binary directory to your PATH if chunk-cli is not found.
See Connection for passwords and TLS.
- Commands: options, output and chunk files.
- Transactions: read and write on one connection.
- Feed: watch changes and resume a durable consumer.
- Users: passwords and table rights.
- Migrations: apply named schema changes.
- Backup: copy server data.
- CQL reference: statement syntax.
Examples are recorded against the current server build and checked by the CLI tests.