Connection to Atlas from Mongo Shell

I’m trying to connect to Atas cluster using MongoDB shell version v4.4.1.

In particular i use string “mongo “mongodb+srv://sandbox.xdar6.mongodb.net/Sandbox” --username m001-student”, but i get this error:

uncaught exception: SyntaxError: unexpected token: string literal :

@(shell):1:6

Dont use quotes before mongo command
Use this way

mongo “mongodb+srv://sandbox.xdar6.mongodb.net/Sandbox” --username m001-student
Also make sure you are not at mongo prompt
Run the command at os prompt

You are already in the mongo shell. You have to exit and do that in the command terminal.

Thank You, now that’s ok