I have a dump which including 2 files data.json
and metadata.json
.
I need restore this data on my local pc, I tried used mongorestore
The mongorestore program writes data from a binary database dump created by mongodump to a MongoDB instance. While, mongoimport tool provides a route to import content from a JSON, CSV, or TSV export created by mongoexport, or potentially, another third-party export tool.
You have .json files. So, you can try mongoimport:
mongoimport --db <database_name> --collection <collection_name> <path to data.json>/data.json
Please check following link i think this will help you to restore your db using terminal
MongoRestore