Loading...
Loading...
Cloud Notes—manage lightweight HTML notes on OneDrive, with support for viewing, creating, appending to, and listing notes. Requires Microsoft sign-in. To look up TV shows, ask the tv skill. **[Important]** You must first read the skill source to obtain the correct command format; do not guess.
npx skill4agent add mnhkahn/cyeam-cli cnoteNotescyeam cnote list # 列出所有笔记
cyeam cnote get "笔记标题" # 查看(默认 markdown 格式)
cyeam cnote get "笔记标题" --format text
cyeam cnote new "笔记标题" < note.html
cyeam cnote append "笔记标题" < more.htmllatestcurltarinstallshasumsha256sum(
set -eu
version='v1.1.4'
case "$(uname -s)/$(uname -m)" in
Darwin/arm64)
asset='cyeam_Darwin_arm64.tar.gz'
sha256='06b5af004ab4f0f05d5829ea6bd18b97c4449c262af7df14c67175f7d3cb29db' ;;
Darwin/x86_64)
asset='cyeam_Darwin_x86_64.tar.gz'
sha256='107342bb9d2fa444b96155c468e71b8cc63e0f5ad0acc784698afe221548efa6' ;;
Linux/aarch64|Linux/arm64)
asset='cyeam_Linux_arm64.tar.gz'
sha256='ed87697f3948bead67b585e9881c3bef20e8d2d903beb5b125587281a5091c5b' ;;
Linux/x86_64)
asset='cyeam_Linux_x86_64.tar.gz'
sha256='873d6805fab8ab56540bb034aaf2f57f12eb672fcabd322ebe401e8250a5966d' ;;
*) echo '不支持的平台,请查看固定版本的 Release。' >&2; exit 1 ;;
esac
workdir=$(mktemp -d)
trap 'rm -rf "$workdir"' EXIT
cd "$workdir"
curl --fail --show-error --silent --location --proto '=https' --proto-redir '=https' \
--output "$asset" "https://github.com/mnhkahn/cyeam-cli/releases/download/$version/$asset"
printf '%s %s\n' "$sha256" "$asset" > expected.sha256
if command -v sha256sum >/dev/null 2>&1; then
sha256sum -c expected.sha256
else
shasum -a 256 -c expected.sha256
fi
# set -e 确保下载或校验失败时,不会解压或安装。
tar -xzf "$asset" cyeam
mkdir -p "$HOME/.local/bin"
install -m 0755 cyeam "$HOME/.local/bin/cyeam"
CYEAM_CLI_NO_UPDATE_NOTIFIER=1 "$HOME/.local/bin/cyeam" --no-analytics version
)~/.local/bin/cyeamexport PATH="$HOME/.local/bin:$PATH"cyeamcyeam loginhttps://login.microsoftonline.com/consumersFiles.ReadWriteUser.Readoffline_access~/.cyeam/token.jsonNotes/https://graph.microsoft.com/v1.0list/getnewappendhttps://us.i.posthog.com~/.cyeam/analytics-id--no-analyticsCYEAM_CLI_NO_ANALYTICS=1~/.cyeam/update-state.jsonCYEAM_CLI_NO_UPDATE_NOTIFIER=1cyeam updatenpx skills addexport CYEAM_CLI_NO_ANALYTICS=1
export CYEAM_CLI_NO_UPDATE_NOTIFIER=1cyeam whoami 查看登录状态(登录方式见 cyeam-cli skill)
cyeam cnote list 列出笔记(显示文件名、修改时间、可点击链接)
cyeam cnote get <title> 读取笔记内容(默认 markdown 渲染)
cyeam cnote get <title> --format text
cyeam cnote new <title> < note.html 从 stdin 创建笔记
cyeam cnote append <title> < note.htmlNotes/.htmlwebUrlrefresh_tokengetnewappendecho "<h1>hello</h1>" | cyeam cnote new test