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://” --username m001-student”, but i get this error:

uncaught exception: SyntaxError: unexpected token: string literal :


Dont use quotes before mongo command
Use this way

mongo “mongodb+srv://” --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