Docs Menu

Docs HomeMongoDB Command Line Interface

mongocli completion

On this page

  • Syntax
  • Options
  • Inherited Options

Generate shell completion scripts

Generate shell completion scripts for MongoDB CLI commands. The output of this command will be computer code and is meant to be saved to a file or immediately evaluated by an interactive shell.

When installing MongoDB CLI through brew, it's possible that no additional shell configuration is necessary, see https://docs.brew.sh/Shell-Completion.

mongocli completion <bash|zsh|fish|powershell> [options]
Name
Type
Required
Description
-h, --help
false
help for completion
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.

Auto generated by MongoDB CLI on 29-Jun-2021

←  mongocli cloud-manager servers listmongocli config →
Give Feedback
© 2022 MongoDB, Inc.

About

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