Mongoexport --fieldFile error: Failed: open fields.txt

It is a syntax issue
There are spaces in your command
Put the command in a notepad and remove the spaces before each parameter and run the command again.It will work

    • db is not same as --db