Docs Menu
Docs Home
/
MongoDB Database Tools
/

Installing the Database Tools on Windows

On this page

  • Overview
  • Compatibility
  • Installation

The MongoDB Database Tools are a suite of command-line utilities for working with MongoDB. Use this guide to install the Database Tools on the Windows platform.

You can use the MongoDB Database Tools to migrate from a self-hosted deployment to MongoDB Atlas. MongoDB Atlas is the fully managed service for MongoDB deployments in the cloud. To learn more, see Seed with mongorestore.

To learn all the ways you can migrate to MongoDB Atlas, see Migrate or Import Data.

Starting with MongoDB 4.4, the MongoDB Database Tools are now released separately from the MongoDB Server and use their own versioning, with an initial version of 100.0.0. Previously, these tools were released alongside the MongoDB Server and used matching versioning.

For documentation on the MongoDB 4.2 or earlier versions of these tools, reference the MongoDB Server Documentation for that version of the tool:

Note

Quick links to older documentation

MongoDB Database Tools version 100.10.0 supports the following versions of the MongoDB server:

  • MongoDB 8.0

  • MongoDB 7.0

  • MongoDB 6.0

  • MongoDB 5.0

  • MongoDB 4.4

  • MongoDB 4.2

While the tools may work on earlier versions of MongoDB server, any such compatibility is not guaranteed.

The MongoDB Database Tools version 100.10.0 are supported on:

  • Windows 8 and later

  • Windows Server 2012 and later

The MongoDB Database Tools can be installed with an MSI installer, or downloaded as a ZIP archive. Select the tab below depending on your desired installation method:

1

Open the MongoDB Download Center. Using the drop-down menu on the right-hand side of the page:

  1. Select the Windows x86_64 Platform

  2. Select the msi Package

  3. Click the Download button

2

Double-click the downloaded MSI installer to install the Database Tools. During the install you may customize the installation directory if desired.

3

You may wish to make the Database Tools available in your system's PATH environment variable, which allows referencing each tool directly on the command prompt by name, without needing to specify its full path, or first navigating to its parent directory.

Once you've installed the Database Tools, follow the instructions below to add the install directory to your system's PATH environment variable.:

  1. Open the Control Panel.

  2. In the System and Security category, click System.

  3. Click Advanced system settings. The System Properties modal displays.

  4. Click Environment Variables.

  5. In the System variables section, select Path and click Edit. The Edit environment variable modal displays.

  6. Click New and add the filepath to the location where you installed the Database Tools.

  7. Click OK to confirm your changes. On each other modal, click OK to confirm your changes.

Once set, you can run any of the Database Tools directly from your command prompt. Consult the reference page for the specific tool you wish to use for its full syntax and usage.

1

Open the MongoDB Download Center. Using the drop-down menu on the right-hand side of the page:

  1. Select the Windows x86_64 Platform

  2. Select the zip Package

  3. Click the Download button

2

Double-click the downloaded Zip archive to unpack it and copy the Database Tools from the bin directory to your computer's filesystem.

3

You may wish to make the Database Tools available in your system's PATH environment variable, which allows referencing each tool directly on the command prompt by name, without needing to specify its full path, or first navigating to its parent directory.

Once you've copied the Database Tools to the desired location on your filesystem, follow the instructions below to add that location to your system's PATH environment variable.:

  1. Open the Control Panel.

  2. In the System and Security category, click System.

  3. Click Advanced system settings. The System Properties modal displays.

  4. Click Environment Variables.

  5. In the System variables section, select Path and click Edit. The Edit environment variable modal displays.

  6. Click New and add the filepath to the location where you copied the Database Tools.

  7. Click OK to confirm your changes. On each other modal, click OK to confirm your changes.

Once set, you can run any of the Database Tools directly from your command prompt. Consult the reference page for the specific tool you wish to use for its full syntax and usage.

Back

Install on macOS