Export documents that match the query in the specified file to a CSV file, omitting the list of field names on the first line
mongoexport --collection=collection_name --type=csv --fields="field1,field2,..." --queryFile=path/to/file --noHeaderLine --out=path/to/file.csv