CLI reference for @memories.sh/cli — manage memories, generate configs, and sync across tools.
The CLI is the primary way to interact with memories.sh. Use it to store memories, generate native config files, and manage your memory store. For environments where the CLI isn't available (v0, bolt.new, Lovable, or other browser-based agents), use the MCP server as a fallback.
memories init auto-detects AI tools (Claude Code, Cursor, Windsurf, VS Code) and configures MCP + generates instruction files.
Memory.sh 的 CLI 参考和工作流程 — AI 代理的持久内存层。在以下情况下使用:(1) 运行内存 CLI 命令来添加、搜索、编辑或管理内存,(2) 在新项目中设置 Memory.sh(内存初始化),(3) 生成 AI 工具配置文件(CLAUDE.md、.cursor/rules 等),(4) 从 AI 工具导入现有规则(内存摄取),(5) 管理云同步、嵌入或 git hook,(6) 内存故障排除doctor,(7) 使用内存模板、链接、历史记录或标签。 来源:webrenew/memories。