aws s3api list-buckets
This operation is not supported for directory buckets. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--bucket-regionLimits the response to buckets that are located in the specified Amazon Web Services Region.--continuation-tokenContinuationToken indicates to Amazon S3 that the list is being continued on this bucket with a token.--max-bucketsMaximum number of buckets to be returned in response.--prefixLimits the response to bucket names that begin with the specified bucket name prefix.