Before I give someone access to a WordPress site, I want to know which roles exist. A plugin may have added its own next to the usual ones.
wp role list lists all roles. By default it shows the fields name and role, and the formats are table, csv, json, count and yaml.
wp role list
The docs example prints only the role slugs as CSV:
wp role list --fields=role --format=csv
The docs show administrator, editor, author, contributor and subscriber as the result. Extra rows usually come from a plugin or a theme, and they deserve a look because each role has its own capabilities.
--field prints a single column and --format=count only the number:
wp role list --field=role
wp role list --format=count
To see who holds a role, use wp user list --role=administrator. On a multisite, add --url=example.com to pick a site.
The list itself says nothing about what a role can do. For that, wp cap list takes a role and prints its capabilities:
wp cap list contributor | sort
The docs example for that command shows delete_posts, edit_posts, level_0, level_1 and read for the contributor role.
Further reading: wp role list (WP-CLI handbook)