get listing of all files in bucket aws cli code example
Example 1: aws cli s3 bucket list
aws s3api list-buckets --query "Buckets[].Name"
Example 2: aws cli s3 list buckets
aws s3api list-buckets --query "Buckets[].Name"
aws s3api list-buckets --query "Buckets[].Name"
aws s3api list-buckets --query "Buckets[].Name"