Docs Menu

mongocli completion

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