Docs Home → MongoDB Command Line Interface
mongocli completion
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.
Syntax
mongocli completion <bash|zsh|fish|powershell> [options]
Options
Name | Type | Required | Description |
---|---|---|---|
-h, --help | false | help for completion |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |
Auto generated by MongoDB CLI on 29-Jun-2021