I cannot figure out why im producing this error when trying to do a simple export of 3 fields to a .csv file for mongodb. My code is as follows:
c:mongodb24\bin>mongoexport -db local -c pets -f type,name, color --csv -o c:\Data\CSC 451\spreadsheet.csv
Error: too many positional options
I'm wanting to export the type, name, and color data into the spreadsheet csv file.
Correct answer:
c:mongodb24\bin>mongoexport -db local -c pets -f type,name,color --csv -o c:\Data\CSC451\spreadsheet.csv