Error running export command

Dear,

I try run this command

mongoexport --uri=“mongodb+srv://m001-student:m001-mongodb-basics@Sandbox.ma9at.mongodb.net/sample_supplies” --collection=sales --out=sales.json

And I got error
“uncaught exception: SyntaxError: unexpected token: identifier :
@(shell):1:14”
What was wrong in syntaxt? ,Please help

Thanks
Bac

The quotation marks:

mongoexport --uri="mongodb+srv://m001-student:m001-mongodb-basics@Sandbox.ma9at.mongodb.net/sample_supplies" --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.