Docs Home → MongoDB Command Line Interface
On this page
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]
help for completion
Profile to use from your configuration file.
Auto generated by MongoDB CLI on 29-Jun-2021