Skip to content

下载文件

示例

下载远端文件/tmp/hosts至本地/tmp/hosts

  • 隐性指定参数
shell
jcli get /tmp/hosts /tmp/hosts
  • 显性指定参数
shell
jcli get -r /tmp/hosts -f /tmp/hosts -n 10

获取下载链接

如果只想获取下载链接而不进行下载,可使用-share参数。

shell
jcli get /tmp/hosts -share

使用方法

shell
  -bucket 参数值类型:string
        目标桶 (默认值: "认证时填入的桶")

  -f 参数值类型:string
        本地路径 默认为当前路径

  -n 参数值类型:int
        并发文件数,最大为64 (默认值: 1)

  --share 参数值类型:bool
        获取下载链接

  -share-timeout 参数值类型:int
        预签名超时时间 单位小时 (默认值: 72)

  -r 参数值类型:string
        远端路径