exo storage list

Description

This command lists buckets and their objects.

If no argument is passed, this commands lists existing buckets. If a prefix is specified (e.g. “sos://my-bucket/…/”) the command lists the objects stored in the bucket under the corresponding prefix.

Supported output template annotations:

  • When listing buckets: .Name, .Zone, .Size, .Created
  • When listing objects: .Path, .Size, .LastModified, .Dir, .VersionID, .VersionNumber
exo storage list [sos://BUCKET[/[PREFIX/]] [flags]

Options

OptionDescription
--exclude-versionsexclude versions from being listed; accepts comma separated version IDs(865029700534464769) and numbers(v123); implies –versions
--help, -hhelp for list
--newer-thanonly objects newer than a duration. Accepts durations in the format of Go's time.ParseDuration. examples: "2h45m", "10m", "45s"
--newer-than-timestamponly objects newer than an ISO 8601 timestamp. examples: '2023-06-07T10:00:00+02:00', use the date command $(date -d "yesterday 10am" –iso-8601=seconds)
--older-thanonly objects older than a duration. Accepts durations in the format of Go's time.ParseDuration. examples: "2h45m", "10m", "45s"
--older-than-timestamponly objects older than an ISO 8601 timestamp. examples: '2023-06-07T10:00:00+02:00', use the date command $(date -d "yesterday 10am" –iso-8601=seconds)
--only-versionslimit the versions to be listed; accepts comma separated version IDs(865029700534464769) and numbers(v123); implies –versions
--recursive, -rlist bucket recursively
--stream, -sstream listed files instead of waiting for complete listing (useful for large buckets)
--versionslist all versions of objects(if the bucket is versioned)
--zone, -zExoscale zone

Options inherited from parent commands

OptionDescription
--config, -CSpecify an alternate config file [env EXOSCALE_CONFIG]
--output-format, -OOutput format (table|json|text), see "exo output –help" for more information
--output-templateTemplate to use if output format is "text"
--quiet, -QQuiet mode (disable non-essential command output)
--use-account, -AAccount to use in config file [env EXOSCALE_ACCOUNT]

Related Commands

  • storage - Object Storage management