
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
飞书文档转 Markdown 的 CLI 工具。单文件二进制或 npx 直接运行,无需复杂配置。
无需安装,直接用:
npx fm-ka export -d doxcnXXXXXXXXXX
npx fm-ka export -w V0gQw6yEZikjBAkKcrVcd8OlnYe
或者全局安装:
npm i -g fm-ka
fm export -d doxcnXXXXXXXXXX
从 Releases 下载对应平台的文件:
# macOS Apple Silicon
sudo curl -Lo /usr/local/bin/fm https://github.com/WakeUp-Jin/export-feishu-to-md/releases/latest/download/fm-darwin-arm64 && sudo chmod +x /usr/local/bin/fm
# macOS Intel
sudo curl -Lo /usr/local/bin/fm https://github.com/WakeUp-Jin/export-feishu-to-md/releases/latest/download/fm-darwin-x64 && sudo chmod +x /usr/local/bin/fm
# Linux
sudo curl -Lo /usr/local/bin/fm https://github.com/WakeUp-Jin/export-feishu-to-md/releases/latest/download/fm-linux-x64 && sudo chmod +x /usr/local/bin/fm
Windows 用户下载 fm-windows-x64.exe,放到 PATH 目录下即可。
docx:document:readonly - 读取文档drive:drive:readonly - 下载图片/附件wiki:wiki:readonly - 读取知识库(如需导出知识库文档)# 设置凭证(加到 ~/.zshrc 或 ~/.bashrc 中可永久生效)
export FEISHU_APP_ID=cli_xxxxxxxx
export FEISHU_APP_SECRET=xxxxxxxxxxxxxxxx
# 导出云文档
fm export -d doxcnXXXXXXXXXX
fm export -d "https://your-company.feishu.cn/docx/doxcnXXXXXXXXXX"
# 导出知识库文档
fm export -w V0gQw6yEZikjBAkKcrVcd8OlnYe
fm export -w "https://my.feishu.cn/wiki/V0gQw6yEZikjBAkKcrVcd8OlnYe"
# 更多选项
fm export -d <token> -o ./my-docs # 指定输出目录
fm export -d <token> --no-images # 不下载图片
fm export -d <token> --debug # 调试日志
fm export -d <token> --app-id x --app-secret x # 命令行传凭证
输出示例:
① 认证成功
② 解析知识库节点: "Agent的评估" -> Mwa9dywpfomAmgxMVLzcNWpdnJq
③ 获取文档: Agent的评估 (131 个块)
④ 转换 Markdown 完成
⑤ 下载媒体: 2/2 完成
✔ 导出完成: output/Agent的评估.md
API 调用: 共 6 次 (auth:1, wiki:1, doc:1, blocks:1, media:2)
# 需要 Bun (https://bun.sh)
bun install
bun run build # 编译当前平台 -> dist/fm
bun run build:all # 编译所有平台
打 tag 推送即可,GitHub Actions 自动编译 Release + 发布 npm:
git tag v0.1.0
git push origin v0.1.0
需要在仓库 Settings -> Secrets 中添加
NPM_TOKEN。
欢迎提交 Issue 和 PR,详见 CONTRIBUTING.md。
FAQs
飞书文档转 Markdown 的 CLI 工具
We found that fm-ka demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.