list-groups — AWS CLI 2.34.8 Command Reference
Use the AWS CLI 2.34.8 to run the iam list-groups command.