Docs Menu

mongocli auth logout

On this page

  • Syntax
  • Options
  • Inherited Options
  • Examples

Log out of the CLI.

mongocli auth logout [options]
Name
Type
Required
Description
--force
false
If specified, skips asking for confirmation before proceeding with a requested action.
-h, --help
false
help for logout
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
To log out from the CLI:
$ mongocli auth logout
←  mongocli auth loginmongocli auth whoami →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.