Try Studio 3T for Free
  1. Knowledge Base
  2. Studio 3T Documentation
  3. Configure mongodump, mongorestore & mongo shell Executable Files

Configure mongodump, mongorestore & mongo shell Executable Files

Studio 3T bundles mongo tools by default, but we’ve made it possible to point IntelliShell, mongodump, and mongorestore to use the executable (.exe) files that suits your version.

You can pick up these executable files through the PATH environment variable, or by pointing point to the files directly under Studio 3T preferences.

Prerequisites

1. Download Studio 3T.

2. Download the relevant executable files for your MongoDB version. You can find the archived downloads of MongoDB Community Server here, and MongoDB Enterprise Server here.

Option 1: Use the executable (.exe) file from the PATH environment variable

1. Open the command prompt or terminal.

2. Add the executable file paths to the $PATH variable. These files are usually in the bin directory where the distribution was unpacked.

  • bin/mongo for mongo shell/IntelliShell
  • bin/mongorestore for mongorestore
  • bin/mongodump for mongodump

Here are helpful links on how to do so, depending on your OS:

3. Open Studio 3T and go to Studio 3T > Preferences.

4. Click on the MongoDB Tools tab.

5. Click on the IntelliShell, mongorestore, or mongodump tab and choose Use the ‘…’ executable found on the ‘PATH’ environment variable.

Use the MongoDB executable file found on the Path environment variable

If correctly configured in the PATH variable, Studio 3T should pick up and use the relevant executable file.

Option 2: Point to the .exe file under Preferences

1. Open Studio 3T and go to Studio 3T > Preferences.

2. Click on the MongoDB Tools tab.

3. Click on the IntelliShell, mongorestore, or mongodump tab and choose Use the following ‘…’ executable. These files are usually found in the bin directory where the distribution was unpacked.

  • mongo shell/IntelliShell uses mongo.exe
  • mongorestore uses mongorestore.exe
  • mongodump uses mongodump.exe

Use a different mongo.exe file

4. Click OK.

Applying changes on a MongoDB connection level

Settings configured in the Connection Manager will be applied to all databases in the MongoDB connection and will override the global settings configured in Studio 3T > Preferences.

1. Open the Connection Manager by clicking on the Connect button from the global toolbar, or Open Connection Manager on the Quickstart tab.

Open the Connection Manager in Studio 3T

2. Choose a connection, then click on Edit in the toolbar.

3. Click on the MongoDB Tools tab.

4. Uncheck the Use global settings box.

Apply MongoDB tools setting on the entire MongoDB connection

5. Under the IntelliShell, mongorestore, and mongodump tabs, choose your preferred configuration.

6. Click Save.

Check your IntelliShell implementation

1. Connect to a database and open IntelliShell.

  • Button – Click on the IntelliShell button in the global toolbar
  • Right-click – Right-click on a target collection and choose Open IntelliShell
  • Hotkey – Press Ctrl + L (⌘+ L)

2. You should see an older MongoDB shell version number in the Shell Output tab.

Older mongo shell version in Shell Output tab


Other IntelliShell and importing/exporting hacks you might find helpful:

Updated on September 14, 2020

Was this article helpful?

Leave a Comment