Docs Menu

Docs HomeLaunch & Manage MongoDBMongoDB CLI

mongocli auth logout

On this page

  • Syntax
  • Options
  • Inherited Options
  • Examples

Log out of the CLI.

Command Syntax
mongocli auth logout [options]
Name
Type
Required
Description
--force
false
Flag that indicates whether to skip the confirmation prompt before proceeding with the requested action.
-h, --help
false
help for logout
Name
Type
Required
Description
-P, --profile
string
false
Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file.
# To log out from the CLI:
mongocli auth logout
← mongocli auth login