mongocli help auth whoami

Verifies and displays information about your authentication state