介绍
# notectl - Apple Notes CLI
通过 AppleScript 在命令行中管理 Apple Notes。
## 命令
| 命令 | 描述 | |---------|-------------| | `notectl folders` | 列出所有文件夹及笔记数量 | | `notectl list [folder]` | 列出文件夹中的笔记(默认:Notes) | | `notectl show <title>` | 按标题显示笔记内容 | | `notectl add <title>` | 创建新笔记 | | `notectl search <query>` | 按标题或内容搜索笔记 | | `notectl append <title>` | 向现有笔记追加文本 |
## 示例
```bash # List all folders notectl folders
# List notes in default folder notectl list
# List notes in specific folder notectl list "rainbat-projects" notectl list Papi
# Show a note notectl show "Meeting Notes"
# Create a note notectl add "New Idea" notectl add "Project Plan" --folder research --body "Initial thoughts..."
# Search all notes notectl search "clawdbot" notectl search "API"
# Append to a note (daily log style) notectl append "Daily Log" --text "- Completed feature X" ```
## `add` 的选项
| 选项 | 描述 | 默认值 | |--------|-------------|---------| | `-f, --folder <name>` | 创建笔记的文件夹 | Notes | | `-b, --body <text>` | 笔记正文内容 | 空 |
## `append` 的选项
| 选项 | 描述 | |--------|-------------| | `-t, --text <text>` | 要追加到笔记的文本 |
## 可用文件夹
此系统上的文件夹: - Notes(默认) - research - rainbat-projects - Papi - renova-roll - Journal - CheatSheets - pet-projects