Skip to content

Download an object from a bucket

github-actions[bot] edited this page Jul 26, 2024 · 1 revision

Download an object from a bucket. If no destination is specified, the default is the current working directory

Usage:

Usage:
  ./mgc object-storage objects download [src] [dst] [flags]

Product catalog:

  • Examples:
  • ./mgc object-storage objects download --dst="file.txt" --src="bucket1/file.txt"

Other commands:

  • Flags:
  • --dst file Path and file name to be saved (relative or absolute).If not specified it defaults to the current working directory
  • -h, --help help for download
  • --obj-version string Version of the object to be downloaded
  • --src uri Path of the object to be downloaded (required)

Flags:

Global Flags:
      --chunk-size integer     Chunk size to consider when doing multipart requests. Specified in Mb (range: 8 - 5120) (default 8)
      --cli.show-cli-globals   Show all CLI global flags on usage text
      --region enum            Region to reach the service (one of "br-mgl1", "br-ne1" or "br-se1") (default "br-se1")
      --server-url uri         Manually specify the server to use
      --workers integer        Number of routines that spawn to do parallel operations within object_storage (min: 1) (default 5)
Clone this wiki locally