Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manages Feishu Drive files and folders, including uploads, downloads, moves, permissions, and local file imports.
Use this skill ↓13% 58%+46 ptsof test cases passed
Passed 14 of 24 test cases with the skill, and 3 of 24 without it.
3 of 3 safety checks passed
Not used yet
前置条件: 先阅读
../../lark-shared/SKILL.md了解认证、全局参数和安全规则。
复制一个 Drive 文件(在线文档、表格、多维表格、幻灯片、思维笔记或普通文件)到目标文件夹,生成一个内容相同的新副本。
# 源文档传 URL(自动识别类型和 token)
lark-cli drive +copy --url "https://example.larksuite.com/docx/<DOCX_TOKEN>" --name '副本名称' --folder-token <TARGET_FOLDER_TOKEN>
# Wiki URL(自动解包底层资源后复制到 Drive)
lark-cli drive +copy --url "https://example.larksuite.com/wiki/<WIKI_TOKEN>" --name '副本名称' --folder-token <TARGET_FOLDER_TOKEN>
# Wiki token
lark-cli drive +copy --token <WIKI_TOKEN> --type wiki --name '副本名称' --folder-token my_space
| 参数 | 必填 | 说明 |
|---|---|---|
--url | 与 --token 二选一 | 源文档 URL,支持 doc / docx / sheet / file / mindnote / slides / base / bitable / wiki 路径;wiki 会自动解包底层资源 |
--token | 与 --url 二选一 | 源文档 token 或 URL;裸 token 必须配合 --type |
--type | 裸 token 时必填 | 源文件类型:doc、docx、sheet、file、mindnote、slides、bitable(base 为兼容别名)或 wiki;传 URL 时可省略,显式传入时必须与 URL 类型一致 |
--name | 是 | 副本名称,最长 256 字节 |
--folder-token | 是 | 目标文件夹 token、文件夹 URL,或常量 my_space(复制到当前身份"我的空间"根目录,内部自动解析根 token) |
--extra | 否 | 可重复的 key=value 对,原样透传给 API 的 extra 自定义复制参数;典型用法 --extra target_type=docx(复制旧版 doc 时转换为 docx 副本) |
--url 与 --token 互斥,只传一个--type 必须与源文件真实类型一致,类型不匹配时服务端会返回失败base 与 bitable 是同一概念,CLI 会把 base 归一化为 bitable 后发给服务端Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.