list-object-versions — AWS CLI 2.32.23 Command Reference

Use the AWS CLI 2.32.23 to run the s3api list-object-versions command.