telys mem
Reference for telys mem — an advanced, scriptable wrapper over a single local collection to create, add, search, list, and inspect it from the shell.
telys mem is a thin, advanced CLI over one local Telys collection — for smoke tests, shell pipelines, and quick inspection, not as the primary API. For real applications, use the SDK. Every subcommand operates on a memory directory: --path, $TELYS_MEMORY_PATH, or the default ~/.telys/memory (the same store the MCP server uses).
mem embeds and searches text, so it needs the signed runtime and native kernel installed. Run telys runtime status first.
Synopsis
telys mem create --name NAME [--partition-by KEY] [--path PATH]
telys mem add -c COLLECTION -t TEXT [-t TEXT ...] [--id ID ...] [--path PATH]
telys mem search -c COLLECTION -q QUERY [--top-k N] [--path PATH]
telys mem list [--path PATH]
telys mem stats -c COLLECTION [--path PATH]telys mem create
Create a collection in the memory directory.
--name
string
(required)
Collection name.
--partition-by
key
scope
Physical partition key.
--path
dir
memory dir
Where the collection lives.
telys mem create --name notes
telys mem create --name notes --partition-by scope --path ./project-memorytelys mem add
Add one or more text documents to a collection.
-c, --collection
string
(required)
Target collection.
-t, --text
string (repeatable)
(required)
A document to add. Repeat -t for multiple.
--id
string (repeatable)
auto
External id(s), aligned with the -t values.
--path
dir
memory dir
Where the collection lives.
Adding an id that already exists is an error — add inserts new rows only. Use the SDK's upsert_texts to replace existing rows.
telys mem search
Search a collection by text and print the matching ids and scores.
-c, --collection
string
(required)
Collection to search.
-q, --query
string
(required)
Query text (embedded, then searched).
--top-k
int
5
Number of results to return.
--path
dir
memory dir
Where the collection lives.
telys mem list
List the collections saved in the memory directory.
Only persisted collections (those with a collection.json on disk) are listed.
telys mem stats
Print runtime statistics for a collection, including its name, key name, and external id count.
Exit codes
0
The action succeeded.
1
Runtime not available, or the collection/store could not be opened.
2
Usage error (a missing required flag such as -c or -q).
See also
SDK API index — the full programmatic surface
memwraps.Add & upsert records and Search by text — the same operations in Python.
Partitions & scope keys — how
--partition-byworks.telys mcp — the assistant-facing server over the same memory store.
Last updated
Was this helpful?