termtrick.com
Run
API
Facebook
Twitter
LinkedIn
Copy link
Export documents to stdout, formatted as human-readable JSON
mongoexport
Produce exports of data stored in a MongoDB instance formatted as JSON or CSV.
More information: <https://docs.mongodb.com/database-tools/mongoexport/>.
Trick copyright:
tl;dr; <
https://github.com/tldr-pages/tldr
>
mongoexport --uri={{mongodb_uri}} --collection={{collection_name}} --pretty
click the source code to copy
install
mongoexport
on any operating system with
command-not-found.com