mem0-cli v0.2.0b1
New Features
- Event commands —
mem0 event listandmem0 event status <id>to track background processing events (#4649) --json/--agentflag — global flag that switches all output to a structured JSON envelope for programmatic/agent consumption (#4649)- Agent output sanitization — raw API responses are projected to only relevant fields per command, removing noise like
graph_statusand duplicate scope fields (#4649)
Bug Fixes
- Fix
statuscommand — now uses lightweight/v1/ping/endpoint instead of heavyweight entity/memory checks (#4649) - Fix double error printing —
cmd_addwas printing errors twice (once explicitly, once viatimed_status) (#4636) - Fix entity delete — switched from v1 to v2 API (
DELETE /v2/entities/{type}/{id}/), all entity types now work (#4649) - Deduplicate PENDING results in
mem0 add— shows "1 event pending" instead of misleading "2 memories extracted" (#4649) - Fix
mem0 initin non-TTY —--api-keyalone now defaultsuser_idto$USER; warns before overwriting existing config with--forceflag (#4649) - Fix stdin hang —
add,search,updateno longer hang waiting for stdin when called with no input (#4649)
Improvements
- Full UUIDs in tables — no longer truncated, so
mem0 get <id>works directly from table output (#4636) - Score column in search — search results now show relevance scores (#4636)
- Short config aliases —
config get api_key,user_id, etc. now work (#4636) - Client-side validation — validates
--expires,--page-size,--page,--top-k,--threshold, and empty content before hitting the API (#4636) - Better API error messages — shows full response detail instead of bare "Bad Request" (#4636)
- Auth error UX — all commands show a helpful
mem0 inithint when unauthenticated (#4649) mem0 versionregistered as a proper subcommand (#4636)list -o jsonreturns a pagination envelope instead of a bare array (#4636)