Apple Notes CLI
Use memo notes to manage Apple Notes directly from the terminal. Create, view, edit, delete, search, move notes between folders, and export to HTML/Markdown.
Setup
- - Install (Homebrew): INLINECODE1
- Manual (pip):
pip install . (after cloning the repo) - macOS-only; if prompted, grant Automation access to Notes.app.
View Notes
- - List all notes: INLINECODE3
- Filter by folder: INLINECODE4
- Search notes (fuzzy): INLINECODE5
Create Notes
- - Add a new note: INLINECODE6
- Opens an interactive editor to compose the note.
- - Quick add with title: INLINECODE7
Edit Notes
- - Edit existing note: INLINECODE8
- Interactive selection of note to edit.
Delete Notes
- - Delete a note: INLINECODE9
- Interactive selection of note to delete.
Move Notes
- - Move note to folder: INLINECODE10
- Interactive selection of note and destination folder.
Export Notes
- - Export to HTML/Markdown: INLINECODE11
- Exports selected note; uses Mistune for markdown processing.
Limitations
- - Cannot edit notes containing images or attachments.
- Interactive prompts may require terminal access.
Notes
- - macOS-only.
- Requires Apple Notes.app to be accessible.
- For automation, grant permissions in System Settings > Privacy & Security > Automation.
Apple Notes CLI
使用 memo notes 直接从终端管理 Apple Notes。支持创建、查看、编辑、删除、搜索、在文件夹间移动笔记,以及导出为 HTML/Markdown 格式。
设置
- - 安装(Homebrew):brew tap antoniorodr/memo && brew install antoniorodr/memo/memo
- 手动安装(pip):pip install .(克隆仓库后执行)
- 仅限 macOS;如果出现提示,请授予 Notes.app 的自动化访问权限。
查看笔记
- - 列出所有笔记:memo notes
- 按文件夹筛选:memo notes -f 文件夹名称
- 搜索笔记(模糊匹配):memo notes -s 查询内容
创建笔记
- 打开交互式编辑器编写笔记。
- - 快速添加带标题的笔记:memo notes -a 笔记标题
编辑笔记
- 交互式选择要编辑的笔记。
删除笔记
- 交互式选择要删除的笔记。
移动笔记
- - 将笔记移动到文件夹:memo notes -m
- 交互式选择笔记和目标文件夹。
导出笔记
- - 导出为 HTML/Markdown:memo notes -ex
- 导出选中的笔记;使用 Mistune 进行 Markdown 处理。
限制
- - 无法编辑包含图片或附件的笔记。
- 交互式提示可能需要终端访问权限。
说明
- - 仅限 macOS。
- 需要能够访问 Apple Notes.app。
- 如需自动化,请在系统设置 > 隐私与安全性 > 自动化中授予权限。