Syntax Error: missing ' ; ' before statement

mongodump--uri "mongodb+srv://m001-student:m001-mongodb-basics@sandbox.nsca8.mongodb.net/sample_supplies"
2020-12-15T16:42:40.915+0000 E QUERY    [js] SyntaxError: missing ; before statement @(shell):1:11

Why I am getting a syntax error?

There should be a space after mongodump and before --uri.

Because you are inside the Mongo Shell, so NodeJS is complaining.

This should be run from the Bash Shell, quit out of mongo or open a new terminal.

Think of it this way: mongodump is a binary, same as mongo

Hi @Akash_Shirale,

Let us know if you are still facing any issues.

~ Shubham