Use AWS CLI to manage files

Posted on September 19, 2022

Today I've learned how to download all the files in a S3 bucket with the AWS CLI.

There are a couple of interesting commands here:

aws s3 ls s3://yourbucket

to get the list of all files in that bucket, and

aws s3 cp s3://yourbucket . --recursive

to download all the files in that bucket to your local computer.

If you need to configure AWS first, type

aws configure

and add access_key, secret_access_key, and region.

Eay Peasy.