Loading...
Loading...
Manage operations such as login, upload, download, transfer, and sharing for Baidu Netdisk. Complete cloud storage file management tasks via the bdpan command-line tool.
npx skill4agent add baidu-netdisk/bdpan-storage bdpan-storage/apps/bdpan/In beta testing phase, please refer to reference/notes.md for usage precautions
| Scenario | Description |
|---|---|
| Unclear path | User does not specify the specific file path or target path |
| Remote path already exists | There is a file with the same name at the upload target location, ask: Overwrite/Rename/Cancel |
| Local path already exists | There is a file with the same name at the download target location, ask: Overwrite/Rename/Cancel |
| Ambiguous operation intent | "Process file" → Confirm upload or download; "Sync" → Confirm direction; "Backup" → Confirm direction |
Operation Type: [Upload/Download/Share/List]
Source Path: [Path]
Target Path: [Path]
Please confirm execution?bdpan whoami@skills/bdpan-storage/scripts/login.sh..//apps/bdpanbdpan upload <local path> <remote path>
bdpan upload ./project/ project/ # Add / for foldersbdpan lsbdpan download <remote path> <local path>
bdpan download report.pdf ./report.pdf
bdpan download backup/ ./backup/ # Add / for foldersbdpan ls# Basic usage - Transfer to app root directory /apps/bdpan/
bdpan transfer <share link> -p <extraction code>
# Extraction code included in the link
bdpan transfer "https://pan.baidu.com/s/1xxxxx?pwd=abcd"
# Specify target directory
bdpan transfer <share link> -p <extraction code> -d my-folder/
# JSON output
bdpan transfer <share link> -p <extraction code> --json# Extraction code included in the link
bdpan download "https://pan.baidu.com/s/1xxxxx?pwd=abcd" <local path>
# Pass extraction code separately
bdpan download "https://pan.baidu.com/s/1xxxxx" <local path> -p <extraction code>
# Specify transfer directory
bdpan download "<link>" <local path> -t <transfer directory>bdpan share <remote path>
bdpan share <path1> <path2> # Share multiple filesbdpan ls # Root directory
bdpan ls <directory path> # Specified directory
bdpan ls --json # JSON outputbash scripts/login.sh@skills/bdpan-storage/scripts/login.shbdpan loginbdpan login --get-auth-urlbdpan login --set-codebdpan logoutbdpan update check # Check for updates
bdpan update # Execute update (requires user confirmation)
bdpan update rollback # Rollback (requires user confirmation)/apps/bdpan/| Scenario | Rule | Example |
|---|---|---|
| In commands | Use API paths | |
| Displayed to users | Use Chinese names | "Uploaded to: My App Data/bdpan/docs/f.txt" |
My App Data/apps我的应用数据/bdpan/.../apps/bdpan/.....~/apps/bdpanbash scripts/login.sh --yes| Document | When to consult |
|---|---|
| bdpan-commands.md | Need complete command parameters, options, JSON output format |
| authentication.md | Details of login authentication process, configuration file location, Token management |
| examples.md | Need more usage examples (batch upload, automatic backup scripts, etc.) |
| troubleshooting.md | Need to troubleshoot errors |