Docs Menu

Docs HomeMongoDB Command Line Interface

mongocli completion powershell

On this page

  • Syntax
  • Options
  • Inherited Options

Generate the autocompletion script for powershell

Generate the autocompletion script for powershell.

To load completions in your current shell session:

mongocli completion powershell | Out-String | Invoke-Expression

To load completions for every new session, add the output of the above command to your powershell profile.

Command Syntax
mongocli completion powershell [options]
Name
Type
Required
Description
-h, --help
false
help for powershell
--no-descriptions
false
disable completion descriptions
Name
Type
Required
Description
-P, --profile
string
false
Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file.
←  mongocli completion fishmongocli completion zsh →
Share Feedback
© 2023 MongoDB, Inc.

About

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