Files
tldr/pages.zh/common/transfersh.md

28 lines
708 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# transfersh
> transfer.sh 的非官方命令行客户端。
> 更多信息:<https://github.com/AlpixTM/transfersh>。
- 上传文件到 transfer.sh
`transfersh {{path/to/file}}`
- 上传文件并显示进度条(需要 Python 包 `requests_toolbelt`
`transfersh --progress {{path/to/file}}`
- 使用不同的文件名上传文件:
`transfersh --name {{filename}} {{path/to/file}}`
- 上传文件到自定义的 transfer.sh 服务器:
`transfersh --servername {{upload.server.name}} {{path/to/file}}`
- 递归上传目录中的所有文件:
`transfersh --recursive {{path/to/directory/}}`
- 将特定目录作为未压缩的 tar 上传:
`transfersh -rt {{path/to/directory}}`