[Solved] How do I restore a database using MongoDB 5.0 CLI?

user99201 Asks: How do I restore a database using MongoDB 5.0 CLI?
I’ve just installed the MongoDB version 5.0 CLI tools on my workstation.

But now when I go to restore a database like I’ve always done I get an error:

Code:
mongorestore
mongorestore : The term 'mongorestore' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:1
+ mongorestore
+ ~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (mongorestore:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

If I list the MongoDB 5.0 bin directory this is what I see:

Code:
 Directory: D:MongoDBServer5.0bin


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----         7/19/2021  10:45 PM           1558 InstallCompass.ps1
-a----         7/19/2021  11:10 PM       22162432 mongo.exe
-a----         7/13/2021   2:24 PM       13275648 mongocli.exe
-a----         7/26/2021   5:02 PM            577 mongod.cfg
-a----         7/20/2021  12:14 AM       46752256 mongod.exe
-a----         7/20/2021  12:14 AM      528224256 mongod.pdb
-a----         7/19/2021  11:35 PM       29746688 mongos.exe
-a----         7/19/2021  11:35 PM      311988224 mongos.pdb

I’m using Windows 10. What happened to my trusty mongorestore and mongoimport commands? They are no longer available under version 5. How can I restore a database under MongoDB version 5.0.1?

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.