AWS CLI 2 · Output and queries

Limit the results

Return at most 20 items per call.

aws s3api list-objects-v2 --bucket my-bucket --max-items 20

Official AWS CLI 2 documentation

More output and queries commands

All output and queries commands · AWS CLI 2 cheatsheet

Was this page helpful?