Mongo/mongodb command not working even environment variable path is set

I have done all things. I set the path variable to the bin and deleted and reinstalled MongoDB multiple times. but mongobd/mongo command is not working in my cmd.
rather mongod work perfectly. please help me to fix it.
image

What is your mongodb version?
mongo is not packaged with latest versions as it is deprecated
You have to use mongosh which must be available in your bin
Just issue mongosh and see if you can connect

1 Like

I’m using latesst version of mongodb(6.0.1)


please watch my reply

Please check contents of your mongodb/bin directory
Did you try mongosh?
If mongosh shell is not in your bin you can always install it separately and try to work with mongodb

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.