Problem on Chapter 1: Basic Aggregation - $match and $project ==> Lab - $match

When I’m trying to run this command as required : 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 , I got an error in the image.

I defined the env variable path of mongodb server bin.

thanks, Erez

Hi @Erez_Katsman, and welcome to the MongoDB Community forums! :wave:

My guess is you have MongoDB 6.0 installed locally on your machine. The mogno command line tool is deprecated and was removed in the 6.0 binaries. When you installed MongoDB, the newer mongosh tool should have been installed, if not you can download it for your given platform. You should be able to run the command you are trying to run by replacing mongo with mongosh.

1 Like