cli-v0.2.11
Mem0 Python CLI (v0.2.11)
Added 5
- Add `--custom-instructions`, `--custom-categories`, `--structured-data-schema`, and `--timestamp` flags to the `add` command
- Add `--show-expired`, `--reference-date`, and `--latest-only` flags to the `search` command
- Add `--show-expired` and `--latest-only` flags to the `list` command
- Add `--expires` and `--timestamp` flags to the `update` command
- Add `--delete-linked` flag to the `delete` command to also delete memories linked to the target memory
Changed 1
- Remove `--categories` flag from the `add` command and exit with an error message directing users to use `--custom-categories` instead
Fixed 1
- Fix `help --json` to emit JSON automatically under agent mode without requiring the `--json` flag to be passed explicitly
Security 1
- Tighten the `postcss` pnpm override from `<8.5.10 → >=8.5.10` to `<8.5.18 → >=8.5.18 <9.0.0` to close a newer CVE range
New Features:
add: New--custom-instructions,--custom-categories,--structured-data-schema, and--timestampflags, matching the Platform/v3/memories/add/payload fields (Python and Node #6696)search: New--show-expired,--reference-date, and--latest-onlyflags, forwarded to/v3/memories/search/asshow_expired,reference_date, andlatest_only(Python and Node #6696)list: New--show-expiredand--latest-onlyflags (Python and Node #6696)update: New--expiresand--timestampflags (Python and Node #6696)delete: New--delete-linkedflag to also delete memories linked to the target memory (Python and Node #6696)
Bug Fixes:
help --json: Emit JSON automatically under agent mode (--agent), not only when--jsonis passed explicitly. Python checksis_agent_mode()and now renders throughconsole.print_json()instead of a plainconsole.print(json.dumps(...))call; Node also checks the root--agentflag in addition to the subcommand's--jsonflag (Python and Node #6773)
Changes:
add:--categoriesis no longer forwarded onadd. The/v3/memories/add/payload has nocategoriesfield (onlycustom_categories), so the CLI was sending a key the endpoint does not accept. Passing the flag now exits 1 with a message pointing to--custom-categories(Python and Node #6696)
Security:
- Dependencies (Node): Tighten the
postcsspnpm override from<8.5.10 → >=8.5.10to<8.5.18 → >=8.5.18 <9.0.0, closing a newer CVE range the previous floor didn't cover, as part of a wider dependency patch sweep across the pnpm workspaces (#6639)