Skip to main content

Ahnlich CLI — Database commands

Run structured queries against DB stores from the CLI: insert, retrieve, and manage key–value vector data with predicates and indexes. Connect first with --agent db:

ahnlich-cli ahnlich --agent db --host 127.0.0.1 --port 1369

Example workflow

  1. Create a store with predicates and optional indexes.
  2. Insert data into the store.
  3. Query by key or predicate.
  4. Manage indexes for faster searches.
  5. Drop stores or keys when they're no longer needed.

Commands

Server & storesPing · Server info · List stores · Create a store · Drop a store · Drop a schema

DataInsert data · Upsert · Get by key · Query by predicate · Delete a key

IndexesCreate predicate index · Drop predicate index · Create non-linear index · Drop non-linear index