Loading...
Loading...
Compare original and translation side by side
/apps/bdpan/内测阶段,使用注意事项详见 reference/notes.md
/apps/bdpan/In closed beta phase, see reference/notes.md for usage precautions
上下文延续: 当前对话已在进行网盘操作时,后续消息无需再次提及"网盘"即可触发。
Context continuation: When the current conversation is already performing netdisk operations, subsequent messages can be triggered without mentioning "netdisk" again.
bash ${CLAUDE_SKILL_DIR}/scripts/login.shbdpan login--get-auth-url--set-code~/.config/bdpan/config.json--yesBDPAN_CONFIG_PATHBDPAN_BINBDPAN_INSTALL_DIR..~/apps/bdpan/bash ${CLAUDE_SKILL_DIR}/scripts/login.shbdpan login--get-auth-url--set-code~/.config/bdpan/config.json--yesBDPAN_CONFIG_PATHBDPAN_BINBDPAN_INSTALL_DIR..~/apps/bdpan/command -v bdpanbash ${CLAUDE_SKILL_DIR}/scripts/install.sh--yesbdpan whoamibash ${CLAUDE_SKILL_DIR}/scripts/login.sh/apps/bdpan/command -v bdpanbash ${CLAUDE_SKILL_DIR}/scripts/install.sh--yesbdpan whoamibash ${CLAUDE_SKILL_DIR}/scripts/login.sh/apps/bdpan/| 风险等级 | 操作 | 策略 |
|---|---|---|
| 高(必须确认) | | 列出影响范围,等待用户确认 |
| 中(路径模糊时确认) | upload、download、mv、rename、cp | 路径明确直接执行,不明确则确认 |
| 低(直接执行) | ls、search、whoami、mkdir、share | 无需确认 |
| Risk Level | Operation | Policy |
|---|---|---|
| High (confirmation required) | | List the scope of impact, wait for user confirmation |
| Medium (confirm when path is ambiguous) | upload, download, mv, rename, cp | Execute directly if the path is clear, confirm if not clear |
| Low (execute directly) | ls, search, whoami, mkdir, share | No confirmation required |
bdpan whoamibdpan whoamibdpan ls [目录路径] [--json] [--order name|time|size] [--desc] [--folder]bdpan ls [directory path] [--json] [--order name|time|size] [--desc] [--folder]bdpan upload <本地路径> <远端路径>/bdpan upload ./project/ project/bdpan lsbdpan upload <local path> <remote path>/bdpan upload ./project/ project/bdpan lsbdpan download <远端路径> <本地路径>bdpan lsbdpan search <文件名>bdpan download "https://pan.baidu.com/s/1xxxxx?pwd=abcd" ./downloaded/
bdpan download "https://pan.baidu.com/s/1xxxxx" ./downloaded/ -p abcd # 提取码单独传入
bdpan download "https://pan.baidu.com/s/1xxxxx?pwd=abcd" ./downloaded/ -t my-folder # 指定转存目录bdpan download <remote path> <local path>bdpan lsbdpan search <file name>bdpan download "https://pan.baidu.com/s/1xxxxx?pwd=abcd" ./downloaded/
bdpan download "https://pan.baidu.com/s/1xxxxx" ./downloaded/ -p abcd # Extract code passed separately
bdpan download "https://pan.baidu.com/s/1xxxxx?pwd=abcd" ./downloaded/ -t my-folder # Specify transfer directorybdpan transfer "https://pan.baidu.com/s/1xxxxx" -p <提取码> [-d 目标目录] [--json]?pwd=bdpan transfer "https://pan.baidu.com/s/1xxxxx" -p <extract code> [-d target directory] [--json]?pwd=bdpan share <路径> [路径...] [--json]bdpan ls付费接口,需在百度网盘开放平台购买服务。
bdpan share <path> [path...] [--json]bdpan lsPaid interface, requires purchasing service on Baidu Netdisk Open Platform.
bdpan search <关键词> [--category 0-7] [--no-dir|--dir-only] [--page-size N] [--page N] [--json]--no-dir--dir-onlybdpan search <keyword> [--category 0-7] [--no-dir|--dir-only] [--page-size N] [--page N] [--json]--no-dir--dir-onlybdpan mv <源路径> <目标目录>
bdpan cp <源路径> <目标目录>
bdpan rename <路径> <新名称> # 第二参数是文件名,非完整路径
bdpan mkdir <路径>bdpan mv <source path> <target directory>
bdpan cp <source path> <target directory>
bdpan rename <path> <new name> # The second parameter is the file name, not the full path
bdpan mkdir <path>| 场景 | 格式 | 示例 |
|---|---|---|
| 命令参数 | 相对路径(相对于 | |
| 展示给用户 | 中文名 | "已上传到:我的应用数据/bdpan/docs/f.txt" |
我的应用数据/apps我的应用数据/.../apps/bdpan/...| Scenario | Format | Example |
|---|---|---|
| Command parameters | Relative path (relative to | |
| Display to user | Chinese name | "Uploaded to: 我的应用数据/bdpan/docs/f.txt" |
我的应用数据/apps我的应用数据/.../apps/bdpan/...bash ${CLAUDE_SKILL_DIR}/scripts/login.sh--yesbash ${CLAUDE_SKILL_DIR}/scripts/login.sh--yesbash ${CLAUDE_SKILL_DIR}/scripts/install.sh [--yes]issuecdn.baidupcs.combash ${CLAUDE_SKILL_DIR}/scripts/install.sh [--yes]issuecdn.baidupcs.combash ${CLAUDE_SKILL_DIR}/scripts/login.sh # 登录(内置安全免责声明)
bdpan logout # 注销
bash ${CLAUDE_SKILL_DIR}/scripts/uninstall.sh [--yes] # 卸载bash ${CLAUDE_SKILL_DIR}/scripts/login.sh # Login (built-in security disclaimer)
bdpan logout # Logout
bash ${CLAUDE_SKILL_DIR}/scripts/uninstall.sh [--yes] # Uninstallbash ${CLAUDE_SKILL_DIR}/scripts/update.sh # 检查并更新(需用户确认)
bash ${CLAUDE_SKILL_DIR}/scripts/update.sh --check # 仅检查更新bash ${CLAUDE_SKILL_DIR}/scripts/update.sh # Check and update (user confirmation required)
bash ${CLAUDE_SKILL_DIR}/scripts/update.sh --check # Only check for updates| 文档 | 何时查阅 |
|---|---|
| bdpan-commands.md | 需要完整命令参数、选项、JSON 输出格式 |
| authentication.md | 认证流程细节、Token 管理 |
| examples.md | 更多使用示例(批量上传、自动备份等) |
| troubleshooting.md | 遇到错误需要排查 |
| Document | When to consult |
|---|---|
| bdpan-commands.md | Need complete command parameters, options, JSON output format |
| authentication.md | Authentication process details, Token management |
| examples.md | More usage examples (batch upload, automatic backup, etc.) |
| troubleshooting.md | Encounter errors and need to troubleshoot |