Shell doesn't show the db that i use in compass

How to import the documents that are in compass to shell, the database in the compass is not listed in shell

You are probably not connected to the same server in compass and from the shell.

What are the connections hosts and ports from both?

Hi,

I believe @steevej-1495 is right. Please use this command to connect to the cluster:

mongo "mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0" --authenticationDatabase admin --ssl -u m121 -p aggregations --norc

José Carlos

Thanks for your response @steevej-1495 and @jcarlosgarcia the command worked.