concept mongoexport in category mongoDB
appears as: mongoexport

This is an excerpt from Manning's book MongoDB in Action, Second Edition: Covers MongoDB version 3.0.
mongoexport and mongoimport —Export and import JSON, CSV, and TSV[7] data; this is useful if you need your data in widely supported formats. mongoimport can also be good for initial imports of large data sets, although before importing, it’s often desirable to adjust the data model to take best advantage of MongoDB. In such cases, it’s easier to import the data through one of the drivers using a custom script. 7CSV stands for Comma-Separated Values, meaning data split into multiple fields, which are separated by commas. This is a popular format for representing tabular data, since column names and many rows of values can be listed in a readable file. TSV stands for Tab-Separated Values—the same format with tabs used instead of commas.
Use the included tools, mongoimport and mongoexport.
Use mongoexport to export all of a collection’s data to a JSON or CSV file:
$ mongoexport -d stocks -c values -o stocks.csvThis command exports data to the file stocks.csv. As with its counterpart, you can see the rest of mongoexport’s command options by starting it with the --help flag.