sirix-cli
command-line client for SirixDB bitemporal databases
TLDR
SYNOPSIS
sirix-cli -l path COMMAND [ARGS] [OPTIONS]
DESCRIPTION
sirix-cli is the full-featured command-line interface for SirixDB, an embeddable, append-only, bitemporal database that stores every commit as a space-efficient snapshot via structural sharing. Unlike tools that overwrite current state, SirixDB keeps full history so any past revision can be opened as quickly as the latest.The CLI operates on a local database directory (-l), creating JSON (or XML) resources, running JSONiq/XQuery queries, applying updates that produce new revisions, and inspecting history. It complements sirix-shell (interactive query REPL) and the REST API / MCP server for remote and agent use.
PARAMETERS
-l path
Local database path (directory)create type -r resource -d data
Create a database resource (for example json) with initial document dataquery -r resource [expression]
Read the resource; optional JSONiq/XQuery expression; -rev selects a revisionupdate -r resource data -im mode
Apply an update that creates a new revisionresource-history resource
List revision history for a resource
CAVEATS
SirixDB requires a modern Java runtime (or a GraalVM native build of the CLI). Write concurrency is one writer per resource; readers are snapshot-isolated. Paths and storage layout are managed by SirixDB under the database directory—do not manually edit those files while the database is open.
HISTORY
SirixDB is an open-source bitemporal storage system maintained by Johannes Lichtenberger and contributors; sirix-cli is the Kotlin CLI module in the main sirix repository.
SEE ALSO
sirix-shell(1), java(1), jq(1)
