list-object-versions — AWS CLI 2.33.17 Command Reference
Use the AWS CLI 2.33.17 to run the s3api list-object-versions command.