Skip to content
Studio 3T - The professional GUI, IDE and client for MongoDB
  • Tools
    • Aggregation Editor
    • IntelliShell
    • Visual Query Builder
    • Export Wizard
    • Import Wizard
    • Query Code
    • SQL Query
    • Connect
    • Schema Explorer
    • Compare
    • SQL ⇔ MongoDB Migration
    • Data Masking
    • Task Scheduler
    • Reschema
    • More Tools and Features
  • Solutions
  • Resources
    • Knowledge Base
    • MongoDB Tutorials & Courses
    • Tool/Feature Documentation
    • Blog
    • Community
    • Testimonials
    • Whitepapers
    • Reports
  • Contact us
    • Contact
    • Sales Support
    • Feedback and Support
    • Careers
    • About Us
  • Store
    • Buy Now
    • Preferred Resellers
    • Team Pricing
  • Download
  • My 3T
search

Studio 3T Knowledge Base

  • Documentation
  • Tutorials
  • Workshops
Take the fastest route to learning MongoDB. Cover the basics in two hours with MongoDB 101, no registration required.
Start the free course

Configure mongodump, mongorestore & mongo shell Executable Files

Posted on: 14/09/2020 (last updated: 31/10/2022) by Kathryn Vargas

Studio 3T bundles mongo tools by default, but we’ve made it possible to point IntelliShell, mongodump, and mongorestore to use your preferred version of those tools.

If you wish to use a particular version of MongoDB tools, you will need to download the relevant executable files for that MongoDB version. You can find the archived downloads of MongoDB Community Server here, and MongoDB Enterprise Server here. MongoDB tools may also be available from your Linux distribution’s software installer, via Homebrew on macOS, or through a Windows package manager such as Chocolatey.

There are two options when configuring your selected tools in Studio 3T. You can set the system’s PATH environment variable to include a directory where you have installed the tools, or you can directly point at the executable files. These two options are covered below. The same options also exist for per-connection tool settings.

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:

  • Windows – Add to the PATH on Windows 10
  • macOS – Add to the PATH on Mac OS X 10.8 Mountain Lion and up
  • Linux – How to set your $PATH variable in Linux

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

Setting the global preference for Intellishell to use the mongo or mongosh executable found on the PATH environment variable.

4. Click on the IntelliShell or the MongoDB Tools tabs.

5. Turn on the Path option:

  • On the IntelliShell tab select Use the ‘mongo’ or ‘mongosh’ executable found on the ‘PATH’ environment variable.
  • On the MongoDB Tools tab select the mongorestore or mongodump tab and then the Use the ‘…’ executable found on the ‘PATH’ environment variable.

If the PATH variable is correctly configured, Studio 3T will 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 IntelliShell or the MongoDB Tools tabs.

3. On the IntelliShell tab, choose the Use the following ‘mongo’ or ‘mongosh’ (starting from 1.1.1) executable option. Then set the path in the field below to the path to the executable. The executable should be mongosh/mongo (Linux/macOS) or mongosh.exe/mongo.exe (Windows).

Setting the global preference for IntelliShell to a mongosh executable's path.
  1. Click OK.

Or

3. On the MongoDB Tools tab, select either the mongorestore, or mongodump tab and choose Use the following ‘…’ executable. Then set the field below to the path to the executable. The executables should be mongorestore/mongodump (Linux/macOS) or mongorestore.exe/mongodump.exe (Windows). These files are typically found in the directory where you unpacked a MongoDB distribution.

Setting the global preference for mongorestore to an executable's path.
An example of setting the mongorestore executable path
  1. 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.

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

3. Click on the IntelliShell or MongoDB Tools tabs.

4. On the IntelliShell tab, uncheck the Use global settings box.

Each connection can have its own IntelliShell shell setting.
Setting a connection’s IntelliShell shell

5. Select your preferred configuration for this connection and click Save.

Or.

  1. On the MongoDB Tools tab, uncheck the Use global settings box.
  2. Select the mongorestore or mongodump tab.
Each connection can set its own mongorestor/mongodump setting.
Setting a connection’s mongorestore executable
  1. Select your preferred configuration for this connection and click Save.

Check your IntelliShell selection

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
  • Shortcut – Press Ctrl + L (⌘+ L)

2. You should see a mongosh or mongo shell version number in the Raw Shell Output tab.

Raw shell output displayed when starting an IntelliShell session includes details of which version of shell is running
Raw Shell Output when starting an IntelliShell session

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

  • Preview documents, configure settings, and save imports and exports as tasks with the Import and Export Wizards
  • Use the Visual Query Builder and the mongo shell side by side
  • Open any mongo shell query generated in Query Code directly in IntelliShell

How helpful was this article?
This article was hideous
This article was bad
This article was ok
This article was good
This article was great
Thank you for your feedback!

About The Author

Kathryn Vargas

When she's not writing about working with MongoDB, Kathryn spends her free time exploring Berlin's food scene, playing the drums, learning languages (current mission: German), and hiking.

Article navigation

Related articles

  • How to Query MongoDB Arrays Without Using the mongo Shell
  • Test your skills: Running MongoDB Queries on the mongo Shell
  • Using Hackolade to configure Studio 3T SQL Migrations
  • How do you make Studio 3T export MongoDB collections to unique files? #Studio3T_AMA
  • What’s New In Studio 3T 2022.5 – Load Tasks, Shell Progress, JSON Toolbar

Studio 3T

MongoDB Enterprise Certified Technology PartnerSince 2014, 3T has been helping thousands of MongoDB developers and administrators with their everyday jobs by providing the finest MongoDB tools on the market. We guarantee the best compatibility with current and legacy releases of MongoDB, continue to deliver new features with every new software release, and provide high quality support.

Find us on FacebookFind us on TwitterFind us on YouTubeFind us on LinkedIn

Education

  • Free MongoDB Tutorials
  • Connect to MongoDB
  • Connect to MongoDB Atlas
  • Import Data to MongoDB
  • Export MongoDB Data
  • Build Aggregation Queries
  • Query MongoDB with SQL
  • Migrate from SQL to MongoDB

Resources

  • Feedback and Support
  • Sales Support
  • Knowledge Base
  • FAQ
  • Reports
  • White Papers
  • Testimonials
  • Discounts

Company

  • About Us
  • Blog
  • Careers
  • Legal
  • Press
  • Privacy Policy
  • EULA

© 2023 3T Software Labs Ltd. All rights reserved.

  • Privacy Policy
  • Cookie settings
  • Impressum

We value your privacy

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes ("analytics and marketing") and to provide you with additional functions (“functional”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data.

By clicking “Accept all”, you consent to the storage of cookies and the processing of personal data for these purposes, including any transfers to third countries. By clicking on “Decline all”, you do not give your consent and we will only store cookies that are necessary for our website. You can customize the cookies we store on your device or change your selection at any time - thus also revoking your consent with effect for the future - under “Manage Cookies”, or “Cookie Settings” at the bottom of the page. You can find further information in our Privacy Policy.
Accept all
Decline all
Manage cookies
✕

Privacy Preference Center

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes ("analytics and marketing") and to provide you with additional functions (“functional”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data. Please choose for which purposes you wish to give us your consent and store your preferences by clicking on “Accept selected”. You can find further information in our Privacy Policy.

Accept all cookies

Manage consent preferences

Essential cookies are strictly necessary to provide an online service such as our website or a service on our website which you have requested. The website or service will not work without them.

Performance cookies allow us to collect information such as number of visits and sources of traffic. This information is used in aggregate form to help us understand how our websites are being used, allowing us to improve both our website’s performance and your experience.

Google Analytics

Google Ads

Bing Ads

Facebook

LinkedIn

Quora

Hotjar

Functional cookies collect information about your preferences and choices and make using the website a lot easier and more relevant. Without these cookies, some of the site functionality may not work as intended.

HubSpot

Social media cookies are cookies used to share user behaviour information with a third-party social media platform. They may consequently effect how social media sites present you with information in the future.

Accept selected