diff --git a/docs/reference/commands/client/dfget.md b/docs/reference/commands/client/dfget.md index 5be3311e..99109ba4 100644 --- a/docs/reference/commands/client/dfget.md +++ b/docs/reference/commands/client/dfget.md @@ -136,7 +136,69 @@ Options: #### Download with HTTP protocol {#downlad-with-http} ```shell -dfget -O /path/to/output http://example.com/object +dfget https://:/ -O /tmp/file.txt +``` + +#### Download with S3 protocol {#downlad-with-s3} + +```shell +# Download a file. +dfget s3:/// -O /tmp/file.txt --storage-access-key-id= --storage-access-key-secret= + +# Download a Directory. +dfget s3:/// -O /tmp/path/ --storage-access-key-id= --storage-access-key-secret= +``` + +#### Download with GCS protocol {#downlad-with-gcs} + +```shell +# Download a file. +dfget gcs:/// -O /tmp/file.txt --storage-credential= --storage-endpoint= + +# Download a Directory. +dfget gcs://// -O /tmp/path/ --storage-credential= --storage-endpoint= +``` + +#### Download with ABS protocol {#downlad-with-abs} + +```shell +# Download a file. +dfget abs:/// -O /tmp/file.txt --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= + +# Download a Directory. +dfget abs://// -O /tmp/path/ --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= +``` + +#### Download with OSS protocol {#downlad-with-oss} + +```shell +# Download a file. +dfget oss:/// -O /tmp/file.txt --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= + +# Download a Directory. +dfget oss://// -O /tmp/path/ --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= +``` + +#### Download with OBS protocol {#downlad-with-obs} + +```shell +# Download a file. +dfget obs:/// -O /tmp/file.txt --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= + +# Download a Directory. +dfget obs://// -O /tmp/path/ --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= +``` + +#### Download with COS protocol {#downlad-with-cos} + +> Note: The endpoint does not require `BucketName-APPID`, just --storage-endpoint=cos.region.myqcloud.com. + +```shell +# Download a file. +dfget cos:/// -O /tmp/file.txt --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= + +# Download a Directory. +dfget cos://// -O /tmp/path/ --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= ``` ### Log {#log} diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/reference/commands/client/dfget.md b/i18n/zh/docusaurus-plugin-content-docs/current/reference/commands/client/dfget.md index 390bde59..c5aad1ee 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/reference/commands/client/dfget.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/reference/commands/client/dfget.md @@ -132,10 +132,76 @@ Options: #### 使用 HTTP 协议下载 -```text -dfget -O /path/to/output http://example.com/object +```shell +dfget https://:/ -O /tmp/file.txt +``` + + + +#### 使用 S3 协议下载 + +```shell +# 下载文件 +dfget s3:/// -O /tmp/file.txt --storage-access-key-id= --storage-access-key-secret= + +# 下载目录 +dfget s3:/// -O /tmp/path/ --storage-access-key-id= --storage-access-key-secret= +``` + +#### 使用 GCS 协议下载 + +```shell +# 下载文件 +dfget gcs:/// -O /tmp/file.txt --storage-credential= --storage-endpoint= + +# 下载目录 +dfget gcs://// -O /tmp/path/ --storage-credential= --storage-endpoint= +``` + +#### 使用 ABS 协议下载 + +```shell +# 下载文件 +dfget abs:/// -O /tmp/file.txt --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= + +# 下载目录 +dfget abs://// -O /tmp/path/ --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= ``` +#### 使用 OSS 协议下载 + +```shell +# 下载文件 +dfget oss:/// -O /tmp/file.txt --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= + +# 下载目录 +dfget oss://// -O /tmp/path/ --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= +``` + +#### 使用 OBS 协议下载 + +```shell +# 下载文件 +dfget obs:/// -O /tmp/file.txt --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= + +# 下载目录 +dfget obs://// -O /tmp/path/ --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= +``` + +#### 使用 COS 协议下载 + +> 注意: endpoint 不需要添加 `BucketName-APPID`,--storage-endpoint=cos.region.myqcloud.com 即可。 + +```shell +# 下载文件 +dfget cos:/// -O /tmp/file.txt --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= + +# 下载目录 +dfget cos://// -O /tmp/path/ --storage-access-key-id= --storage-access-key-secret= --storage-endpoint= +``` + + + ### 日志 ```text