Skip to main content
Version: 3.6.0

CLI Tool Overview

chrono-client-cli is the command-line tool for interacting with a running ChronoLog deployment. It is installed as tools/cli/chrono-client-cli in the ChronoLog installation directory. It lets you create and destroy Chronicles, acquire and release Stories, write Events, tail-read the most recent Events from ChronoKeeper memory, and replay events from the archive — all without writing application code.

Invocation​

chrono-client-cli is launched once with an optional config-file argument and then enters an interactive REPL on stdin:

chrono-client-cli -c /path/to/client_conf.json

Each line on stdin is parsed as a single command (see API Reference). Scripted workloads are run by piping a file into stdin or via shell redirection:

chrono-client-cli -c /path/to/client_conf.json < scripted_workload.txt

The REPL exits when the special -disconnect command is read (or stdin is closed).

warning

A chrono-client-cli from ChronoLog 3.4.0 or older cannot reach 3.5.0 or newer servers, and a newer one cannot reach 3.4.0 or older servers: its commands get no answer and no error. Use the CLI of the same version as the deployment.

Key Capabilities​

  • Chronicles — create, list, and destroy named Chronicle containers
  • Stories — acquire (open), release, list, and destroy Stories within a Chronicle
  • Events — write string-payload Events into an acquired Story
  • Tail read — play back the most recent $N$ Events of the acquired Story directly from ChronoKeeper memory (-p); works in writer-only mode
  • Replay — read events back from a Story over a time range (requires WRITER + READER mode in the config)

See API Reference for the full command reference and Examples for walkthroughs.