dcloud s3 bucket-objects list-versions

One page (200) of object versions and delete markers under a prefix

IAM s3:ListBucketVersionsRead

Answers { prefix, prefixes, versions: [{ key, versionId, isLatest, deleteMarker, size, lastModified }], nextKeyMarker, nextVersionIdMarker }, newest first per key. Pass both markers back for the next page.

Synopsis

dcloud s3 bucket-objects list-versions name [flags]

Arguments

  • <name>Required

    string

    Also accepted as --name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/

Flags

  • --prefixOptional

    string

    The folder to list, e.g. photos/2026/; absent: the top level of the bucket

    Constraints: max 1024 chars

  • --key-markerOptional

    string

    nextKeyMarker from the previous page; absent: the first page

    Constraints: max 1024 chars

  • --version-id-markerOptional

    string

    nextVersionIdMarker from the previous page, sent together with keyMarker

    Constraints: max 1024 chars

Example

dcloud s3 bucket-objects list-versions name

Generated from the API description, the same one the API checks requests against and the CLI is built from.