Overview
On OneDrive Notes Manage HTML notes in a folder. You need to log in to a Microsoft account first (for the login method, see the "Login method" section of the cyeam-cli skill).
cyeam cnote list # 列出所有笔记
cyeam cnote get "笔记标题" # 查看(默认 markdown 格式)
cyeam cnote get "笔记标题" --format text
cyeam cnote new "笔记标题" < note.html
cyeam cnote append "笔记标题" < more.html
Installation
# macOS Apple Silicon
curl -L https://github.com/mnhkahn/cyeam-cli/releases/latest/download/cyeam_Darwin_arm64.tar.gz | tar xz && chmod +x cyeam && sudo mv cyeam /usr/local/bin/
macOS Intel
curl -L https://github.com/mnhkahn/cyeam-cli/releases/latest/download/cyeam_Darwin_x86_64.tar.gz | tar xz && chmod +x cyeam && sudo mv cyeam /usr/local/bin/
Linux amd64curl -L https://github.com/mnhkahn/cyeam-cli/releases/latest/download/cyeam_Linux_x86_64.tar.gz | tar xz && chmod +x cyeam && sudo mv cyeam /usr/local/bin/
检查安装:`which cyeam && cyeam version`
## 命令
cyeam whoami Check login status (for the login method, see the cyeam-cli skill)
cyeam cnote list List notes (shows file name, modification time, clickable link) cyeam cnote get Read note content (rendered as markdown by default) cyeam cnote get --format text cyeam cnote new < note.html Create a note from stdin cyeam cnote append < note.html
## 数据存储
笔记存储在 OneDrive 的 `Notes/` 文件夹下,每篇笔记是一个 `.html` 文件。列表时如果有 `webUrl` 会显示可点击的"打开"链接。
## 注意事项
- 需要 Microsoft 账号登录,使用 Device Code 流程(登录方式见 cyeam-cli skill)
- 登录后 token 自动刷新(带 refresh_token)
- 内容是纯 HTML,`get` 命令会解析并转换为 markdown/text 显示
- `new` 和 `append` 从 stdin 读取,适合管道:`echo "<h1>hello</h1>" | cyeam cnote new test`