Manage Memory with the CLI
Create, list, inspect, and delete Memory and Memory Store Resources through ordinary Resource operations.
Before you begin
Choose whether you are configuring a Memory Store—the persistence and indexing capability—or a Memory Resource exposed to Agents. Prepare schema-valid Resource JSON and select the namespace. The CLI does not expose a hidden database path or bypass Resource Policy.
Steps
- List stores and Memory Resources separately:
sh
constal memory stores list
constal memory list- Create a store with
constal memory stores create --body @store.json. - Create a Memory Resource with
constal memory create --body @memory.json. The CLI forces the correct Resource kind instead of trusting a conflicting value in the file. - Inspect exact definitions with
memory stores get <id>andmemory get <id>. - Bind the Memory Resource to an Agent using its deployment manifest or a scoped assignment when different owners need different memory partitions.
- Delete only after checking Agent bindings and retention requirements. Deleting configuration is distinct from an Agent-authorized
deleteorpurgememory operation.
Verify
Confirm the Memory and Store definitions are enabled, compatible, and governed by the intended Policies. Start a controlled Agent Run, invoke remember, and retrieve the item through search or get. Inspect the Run’s accepted Memory binding.
Next steps
Use Memory SDK guide, Configure Memory, and the generated Memory command reference.