Skip to content

ls

To list the content of a bucket:

sh
s3m ls <s3 provider>/<bucket>

TIP

If using Cloudflare R2 you need to pass the prefix (option -p, --prefix), for example:

sh
s3m ls <r2>/<bucket>/ -p "test"

To list available buckets:

sh
s3m ls <s3 provider>

To list in-progress multipart uploads:

sh
s3m ls <s3 provider>/<bucket> -m

-p/--prefix

To list the content of a bucket with a specific prefix:

sh
s3m ls <s3 provider>/<bucket> -p "test"

-n/--number

To get only 3 (max[key, uploads or buckets]) results:

sh
s3m ls <s3 provider>/<bucket> -n 3

Released under the BSD License.