cli mongorestore code example Example: mongorestore command mongorestore [backup dir] --db [dbName] --port [mongod port]