apps/docs/content/troubleshooting/get-detailed-storage-metrics-with-the-aws-cli-587a7d.mdx
Supabase Studio primarily lists the current objects within your buckets. You can use standard S3 tooling such as the AWS CLI to review your Supabase project's Storage usage, or perform operations on the bucket contents.
This guide makes use of the official AWS CLI. You need to install it locally on your computer in order to follow the next steps.
export AWS_ACCESS_KEY_ID='<access-key-id>'
export AWS_SECRET_ACCESS_KEY='<secret-access-key>'
export AWS_DEFAULT_REGION='<storage-region>'
aws s3api list-buckets --endpoint-url <storage-endpoint-url>
aws s3 ls s3://<example-bucket>/ --endpoint-url <storage-endpoint-url> --recursive --human-readable --summarize
In the above commands make sure to replace <example-bucket> and <storage-endpoint-url> with the actual details of your bucket.