Mongoimport not recognised

I am trying to run mongoimport to import a json file but it keep saying “‘mongoimport’ is not recognized as an internal or external command,
operable program or batch file.” even when i have downloaded the mongotool and set the path

I’m getting same error on mac, I need help

Hi,

In this case, you’ll have to download MongoDB Database Tools from the official site. You’ll get the zip file containing all executable required to use cli

once you downloaded the file, just extract the executable file to:

C:\Program Files\MongoDB\Server\YOUR_VERSION\bin