'mongoexport' is not recognized as an internal or external command

Hi All,

I am trying to run below command from the command prompt of my windows PC and seeing the said error. Please note that I am not running the command from mongoDB Shell but directly from the command prompt and I have mongoDB Database Tools installed already. Seeing same error for mongoimport, mongodump and mongorestore as well.

mongoexport --uri=“mongodb+srv://:@.mongodb.net/sample_supplies” --collection=sales --out=sales.json

Any help will be much appreciated.

Thanks in advance!

1 Like

It could be PATH issue
Is mongotools included in your path?
Can you run mongoexport from tools/bin directory?

1 Like

It worked ! Thanks @Ramachandra_Tummala.

The MongoDB Tools bin address was not added to the PATH variable automatically after installing. I manually added it to the PATH variable in USER Environment variables. Note the bin was located in “C:\Program Files\MongoDB\Tools\100\bin” and not in “C:\Users<username>AppData\Local\mongodb” were I was initially looking. Thanks again.