Mongo Connect DB

1	mongo # connects to mongodb://127.0.0.1:27017 by default
2	mongo --host <host> --port <port> -u <user> -p <pwd> # omit the password if you want a prompt
3	mongo "mongodb://192.168.1.1:27017"
4	mongo "mongodb+srv://cluster-name.abcde.mongodb.net/<dbname>" --username <username> # MongoDB Atlas
Magnificent Monkey Adi