@cubememory/cli
v0.1.2
Published
Official CLI for Cube Memory — manage indexes, search, memory and notes from the terminal
Maintainers
Readme
@cubememory/cli
Official CLI for Cube Memory — manage indexes, memory, and notes from the terminal.
Install
npm install -g @cubememory/cliSetup
cube config set \
--key cm_live_YOUR_API_KEY \
--project proj_YOUR_PROJECT_ID \
--url https://cubememory.com.br/gatewayConfig is stored at ~/.cube/config.json (permissions 0600, owner-only).
More secure (no key on disk): set environment variables instead — they take precedence over the config file, so the key never has to be persisted:
export CUBE_API_KEY=cm_live_YOUR_API_KEY
export CUBE_PROJECT_ID=proj_YOUR_PROJECT_ID
export CUBE_BASE_URL=https://cubememory.com.br/gatewayCommands
cube ping
cube ping
# ✓ Gateway reachablecube index
cube index list
cube index search my-docs "wireless headphones" --limit=5
cube index insert my-docs --id=doc-001 --text="Nike Air Max" --meta='{"price":299}'
cube index delete my-docs doc-001
cube index stats my-docscube memory
cube memory store "User prefers dark mode and speaks Portuguese"
cube memory search "user preferences" --limit=5
cube memory list --limit=20
cube memory delete mem_abc123cube notes
cube notes list
cube notes search "roadmap Q3" --limit=10
cube notes get note_abc123
cube notes add --title="Meeting Q3" --text="Discussed roadmap..." --tags="meeting,q3"
cube notes delete note_abc123cube config
cube config get # show current config
cube config set --key cm_live_xxx --project proj_xxx --url https://...Links
- Dashboard: cubememory.com.br
- Python SDK: pypi.org/project/cubememory
- JS SDK: @cubememory/sdk
