What is the best way to execute mongodb admin/console commands programmatically from node.js? Specifically, I would like to export a mongodb collection using mongodump after
A different year, a different answer.
You can use something like Shelljs to exec mongodump or any other commands that the UNIX shell provides.
exec
mongodump