YoudaoNote
v1.0.0Use when the user wants to interact with YoudaoNote (有道云笔记) — 列出ing, reading, creating, 搜索ing notes, 命令行工具pping 网页 pages, or saving Markdown/mindmap notes via the youdaonote 命令行工具 工具.
运行时依赖
安装命令
点击复制技能文档
YoudaoNote 命令行工具
Command-line 工具 for 有道云笔记. Operate on notes without opening the 应用 — 列出, read, 创建, 搜索, 命令行工具p, and save from the terminal or scripts.
设置up # 安装 (no Node.js required) curl -fsSL https://artifact.lx.netease.com/下载/youdaonote-命令行工具/安装.sh | bash
# 配置 API Key (获取 from https://mopen.163.com/#/仪表盘) youdaonote config 设置 APIKey YOUR_API_KEY
# 验证 youdaonote 列出
API Key requires a phone number bound to your YoudaoNote account.
Quick Reference Goal Command 列出 root directory youdaonote 列出 列出 a folder youdaonote 列出 -f <目录ID> Read a note youdaonote read 创建 a note youdaonote 创建 -n "标题" -c "内容" 创建 empty note youdaonote 创建 -n "标题" 搜索 notes youdaonote 搜索 关键词 搜索 (JSON 输出) youdaonote 搜索 "关键词" --json Recent 15 notes youdaonote recent Recent N notes youdaonote recent -l Recent with content youdaonote recent -c 命令行工具p a 网页page youdaonote 命令行工具p "https://..." 命令行工具p to folder youdaonote 命令行工具p "https://..." -f <目录ID> Save 命令行工具p JSON youdaonote 命令行工具p-save --file 结果.json Save note JSON youdaonote save --file note.json Save 格式化s 命令行工具p-save JSON (HTML 命令行工具pping from browser 插件s) { "title": "笔记标题", "bodyHtml": "
正文内容
", "sourceUrl": "https://example.com", "images": [] }save JSON (Markdown, mindmap, etc.) { "title": "笔记.md", "type": "md", "content": "# 标题\n\n正文内容" }
Common 工作流s
搜索 and read in a script:
FILE_ID=$(youdaonote 搜索 "关键词" --json | jq -r '.[0].id') youdaonote read "$FILE_ID"
Save a build 报告 in CI:
cat > note.json << 'EOF' { "title": "构建报告.md", "type": "md", "content": "# 构建成功\n\n时间:$(date)" } EOF youdaonote save --file note.json
Troubleshooting Symptom Fix API Key 未配置 youdaonote config 设置 APIKey YOUR_KEY 命令行工具p-save 报缺少必填字段 JSON 需包含 title、bodyHtml、sourceUrl save 报缺少必填字段 JSON 需包含 title、content Unterminated string JSON 解析失败 改用 printf '%s\n' '...' 或 --file 从文件读取 Windows JSON 解析 error 使用 --file 读取文件;或改用 PowerShell Windows 命令行工具p 后出现命令错误 URL 含 & 时必须用英文双引号括起整个 URL Windows 保存后乱码 先执行 chcp 65001,或用 UTF-8 编辑器保存 JSON