Error running export command


I try run this command

mongoexport --uri=“mongodb+srv://” --collection=sales --out=sales.json

And I got error
“uncaught exception: SyntaxError: unexpected token: identifier :
What was wrong in syntaxt? ,Please help


The quotation marks:

mongoexport --uri="mongodb+srv://" --collection=sales --out=sales.json 

Normally you’ll want --authenticationDatabase admin but in this case ain’t necessary.

You have to run this command on the command line. You have to exit the mongo shell first.

Hi @Lam_Hong_Bac,

I hope your issues is resolved now. Let us know if you are still facing any issues.