Docs Menu
Docs Home
/ /
MongoDB Command Line Interface
/

mongocli completion

On this page

  • Options
  • Inherited Options
  • Related Commands

generate the autocompletion script for the specified shell

Generate the autocompletion script for mongocli for the specified shell. See each sub-command's help for details on how to use the generated script.

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.
  • mongocli completion bash - generate the autocompletion script for bash

  • mongocli completion fish - generate the autocompletion script for fish

  • mongocli completion powershell - generate the autocompletion script for powershell

  • mongocli completion zsh - generate the autocompletion script for zsh

Back

list