feat(cli): login and logout via the auth plugin, and recover once from stale credentials