MongoDB shell
high risk
mongodump --db <db> --out backup/Back up firstInteractive MongoDB shell. See the flags and examples below, and run `man mongosh` for the full reference.
mongosh "mongodb://host/db"Connect · explain & risk-check →mongosh --eval "db.stats()"Run a command · explain & risk-check →Reference text is hand-written and may be incomplete — check man mongosh for your version. Test destructive commands on a non-production system first.