wp role exists <role-key>

Checks if a role exists

Arguments

NameDescription
role-keyThe internal name of the role