How do I use s5cmd with Wasabi?

s5cmd is validated for use with Wasabi.  To use s5cmd with Wasabi, please follow the config tips below.

Note that this example discusses the use of Wasabi's us-east-1 storage region. To use other Wasabi storage regions, please use the appropriate Wasabi service URL as described in this article.

 

Once s5cmd is installed, run the following commands to insert access keys into a credentials file.  First make sure you have the aws directory to hold your credentials file in:

$ mkdir ~/.aws

Then create and edit the credentials file to contain your access key pair:

$ vi ~/.aws/credentials
aws_access_key_id = TH15ISN0T4R34LPU8K3Y
aws_secret_access_key = th15i54Ls0n0t4rea1k3ySEcr3TeiTHeRn012340

 

Once configured, enter

$ s5cmd

To get a list of available actions you can perform in commands.  Some example commands:

 

Note: the Wasabi --endpoint-url MUST be put before the command in order for the command to run.

List your Wasabi buckets out:

$ s5cmd --endpoint-url=https://s3.wasabisys.com ls

Make a bucket on the us-east-1 region:

$ s5cmd --endpoint-url=https://s3.wasabisys.com mb s3://myeast1bucket

Copy a file up to Wasabi:

$ s5cmd --endpoint-url=https://s3.wasabisys.com cp image.jpg s3://mybucket

Copy a file from Wasabi down to working directory:

$ s5cmd --endpoint-url=https://s3.wasabisys.com cp s3://myeast1bucket/image.jpg .

 

Note that this example discusses the use of Wasabi's us-east-1 storage region. To use other Wasabi storage regions, please use the appropriate Wasabi service URL as described in this article.  

Have more questions? Submit a request