s3z

CLI

Install

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/jaeaeich/s3z/releases/latest/download/s3z-cli-installer.sh | sh
cargo install --git https://github.com/jaeaeich/s3z s3z-cli

Global options

These apply to all commands:

FlagEnv varDefaultDescription
-r, --regionAWS_DEFAULT_REGIONus-east-1AWS region
-e, --endpointAWS_ENDPOINT_URLCustom S3 endpoint
--access-keyAWS_ACCESS_KEY_IDAWS access key
--secret-keyAWS_SECRET_ACCESS_KEYAWS secret key
-q, --quietfalseSuppress output except errors

Commands

upload

Upload files or directories to S3.

s3z upload ./data ./report.csv -b my-bucket -p uploads/
FlagDefaultDescription
<sources>Local paths to upload (required)
-b, --bucketDestination S3 bucket
-p, --prefix""Key prefix in the bucket
-w, --workers32Files uploaded in parallel
-c, --concurrency8Parts per file concurrency

download

Download objects from S3 to a local directory.

s3z download -b my-bucket -p uploads/ -d ./out
FlagDefaultDescription
-b, --bucketSource S3 bucket
-p, --prefix""Key prefix to download
-d, --dest.Local destination directory
-w, --workersautoFiles downloaded in parallel
-c, --concurrencyautoParts per file concurrency

ls

List objects in an S3 bucket.

s3z ls -b my-bucket -p uploads/
FlagDefaultDescription
-b, --bucketS3 bucket to list
-p, --prefix""Key prefix to filter by

Examples

Upload a directory to MinIO:

s3z -e http://localhost:9000 upload ./data -b test-bucket -p backups/

Download with custom credentials:

s3z --access-key minioadmin --secret-key minioadmin \
    -e http://localhost:9000 \
    download -b test-bucket -d ./restored

List everything in a bucket:

s3z ls -b my-bucket

On this page