Skip to content
chunkdbPublic

About

Go CLI for chunkdb with chunk:// and chunks:// support, core protocol commands, and an interactive shell.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

chunk-cli

CI

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.

Store and read a block

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.

Install

You need Go 1.25.6 or newer.

go install github.com/chunkdb/chunk-cli/v2/cmd/chunk-cli@latest

Add Go's binary directory to your PATH if chunk-cli is not found. See Connection for passwords and TLS.

Guides

Examples are recorded against the current server build and checked by the CLI tests.

About

Go CLI for chunkdb with chunk:// and chunks:// support, core protocol commands, and an interactive shell.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages