mongorestore

C++
mongorestore -d db_name /path/
mongorestore -d db_name -c collection_name /path/file.bson// To the original database name
mongorestore --verbose \path\dump

// To a new database
mongorestore --db databasename --verbose \path\dump\<dumpfolder>mongorestore --port 27017 --db restoredTest /mydata/restoredata/test --drop
mongorestore --port <port> --db <destination database> <data-dump-path/database> --drop

Source

Also in C++: