Wingetlywingetly
← All apps

MongoDB CLI

by MongoDB, Inc.v2.0.7

Last updated

The MongoDB CLI is a modern command line interface that enables you to manage your MongoDB services from the terminal.

Install with winget

$ winget install --id MongoDB.MongoDBCLI --exact --version 2.0.7

Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.

Silent install command for MongoDB CLI

MongoDB CLI uses MSI (WiX). The silent install switches are /quiet /norestart.

One-line silent install (x64, machine scope)
msiexec.exe /i mongocli_2.0.7_windows_x86_64.msi /quiet /norestart

See the full silent install reference for MongoDB CLI

Built by Pckgr

For Intune admins

Stop chasing app updates. Pckgr patches them for you.

Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.

Start free 30-day trial

No credit card required.

Installers · v2.0.7

ArchitectureTypeScopeInstallDownload
x64MSI
WiX
machineDirect

Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.

Security

25 known CVEs via NVD

  • medium4.3Patched in wingetCVE-2026-84967affects before 1.17.1Sep 3, 2026

    A component of the MongoDB extension for Visual Studio Code does not neutralize special characters in a connection string before that value is placed into a command line the extension composes for an integrated terminal. An unauthenticated remote unauthorized-user who persuades...

  • medium5.5Patched in wingetCVE-2026-9751affects before 7.0.35, 8.0.24, 8.2.10, 8.3.3Jun 9, 2026

    The ldapQueryPassword parameter, when set through the runtime setParameter command, will log the new password to the mongod.log file in plain text.

  • medium6.5Patched in wingetCVE-2026-9750affects before 7.0.35, 8.0.24, 8.2.10, 8.3.3Jun 9, 2026

    An authenticated user can cause a MongoDB server to crash or return incorrect results by creating documents that interfere with internal metadata processing during query execution. This stems from insufficient separation between user-controlled document fields and internal metad...

  • medium6.5Patched in wingetCVE-2026-9748affects before 7.0.35, 8.0.10, 8.2.10, 8.3.3Jun 9, 2026

    The $_internalConvertBucketIndexStats stage used PauseExecution as a way to signal "skip this document" when an index stats conversion failed. But PauseExecution is not a general purpose skip mechanism, but rather a TeeBuffer-internal signal used solely by $facet to coordinate i...

  • medium6.5Patched in wingetCVE-2026-9747affects before 7.0.35, 8.0.24, 8.2.10, 8.3.3Jun 9, 2026

    Adding fromRouter:true and runtimeConstants.userRoles could cause aggregations to crash mongodb server.

  • medium6.5Patched in wingetCVE-2026-9743affects before 8.0.24Jun 9, 2026

    In MongoDB Server 8.0, an aggregation stage can leave its _subPipeline field null during processing of certain pipelines. If a getMore is subsequently issued on the same cursor, the server may dereference this null sub-pipeline when reattaching to the operation context, accessin...

  • high7.5Patched in wingetCVE-2026-9740affects before 7.0.35, 8.0.24, 8.2.10, 8.3.3Jun 9, 2026

    A vulnerability in MongoDB Server's BSON validation logic allows an unauthenticated user to crash the mongod process by sending a specially crafted message. The BSON validator's handling of certain nested binary data structures permits uncontrolled mutual recursion between valid...

  • medium5.5Patched in wingetCVE-2026-9735affects before 8.3.3Jun 9, 2026

    MongoDB server may log authentication parameters, including credentials, to the server log during SASL authentication. When connection health metric logging is enabled, the full authentication parameters are written to the log without redaction.

Showing 8 of 25. Source: NVD, updated 4h ago. Patch status is best-effort: NVD's fix version is compared against the latest version in winget, but the two version formats don't always align. Confirm with the vendor advisory before treating any specific build as safe.

See a CVE that affects your fleet? Push the patched version to Intune in one click with Pckgr - automated patching is the only way to keep up.

Related apps

  • MongoDB Atlas CLIMongoDB, Inc.
    MongoDB.MongoDBAtlasCLIv1.57.0

    The Atlas CLI (mongodb-atlas-cli) lets you manage your MongoDB Atlas deployments from the command line.

  • PowerShellMicrosoft Corporation
    Microsoft.PowerShellv7.6.6.0

    PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS.

  • PostgreSQL 10PostgreSQL Global Development Group
    PostgreSQL.PostgreSQL.10v10

    The World's Most Advanced Open Source Relational Database

  • XTerminalXterminal
    JiLuo.Xterminalv5.8.6

    更好用的开发工具,但不止于 SSH/控制台/More

  • PostgreSQL 17PostgreSQL Global Development Group
    PostgreSQL.PostgreSQL.17v17.11-3

    The World's Most Advanced Open Source Relational Database

  • DBXt8y2
    t8y2.DBXv0.6.10

    15MB,lightweight, cross-platform database client. Supports MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, ClickHouse, SQL Server and more.

More from MongoDB, Inc. or browse db, mongo, mongodb.

Frequently asked questions

How do I install MongoDB CLI on Windows?
Open Windows Terminal, PowerShell, or Command Prompt and run: winget install --id MongoDB.MongoDBCLI --exact --version 2.0.7. winget downloads the installer from MongoDB, Inc. and runs it. Requires Windows 10 (1809+) or Windows 11.
How do I install MongoDB CLI silently for unattended deployment?
Add --silent and accept the agreements upfront: winget install --id MongoDB.MongoDBCLI --exact 2.0.7 --silent --accept-package-agreements --accept-source-agreements. This is the variant Intune, Configuration Manager, and other deployment tools should use.
What are the silent install switches for MongoDB CLI?
MongoDB CLI uses MSI (WiX). Run the downloaded installer with: msiexec.exe /i mongocli_2.0.7_windows_x86_64.msi /quiet /norestart. The silent switches are /quiet /norestart.
How do I uninstall MongoDB CLI via winget?
Run: winget uninstall --id MongoDB.MongoDBCLI --exact. Add --silent for unattended uninstalls. winget will use the registered uninstaller from MongoDB CLI's Apps & Features entry.
Is MongoDB CLI free?
MongoDB CLI is distributed under Apache License 2.0. Refer to the publisher (https://www.mongodb.com/cloud/cli) for the full license terms - Wingetly itself does not charge for installation.
Does MongoDB CLI work on Windows 10?
Yes, as long as your Windows 10 build supports winget (1809 or newer). winget ships with App Installer on Windows 10/11 and pulls MongoDB CLI directly from the publisher.
How do I keep MongoDB CLI up to date?
Run winget upgrade --id MongoDB.MongoDBCLI --exact, or winget upgrade --all to update everything winget tracks. We index 10 versions of MongoDB CLI from microsoft/winget-pkgs.

Recent versions

  • 2.0.7latest
  • 2.0.6
  • 2.0.4
  • 2.0.3
  • 2.0.2
  • 2.0.1
  • 2.0.0
  • 1.30.0
  • 1.26.1
  • 1.26.0