You need to be connected before launching the MongoDB Shell. code example Example: connect to mongo database mongoose.connect(mongoURI);