Return only a specific number of items in the CLI output.
Section: Global Options, Output, and Queries
Limit total items returned
bash
bash
aws iam list-users --max-items 10Explanation
Useful when previewing large result sets.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Global Options, Output, and Queries
Disable automatic pagination
Fetch only the first page of a paginated result set.
Control service page size
Reduce the number of items retrieved per service call.