skip to Main Content

I have mongodb community 6.0.0 installed.

The command mongo is not found.

The command mongosh is working.

mongosh --version
1.5.4

2

Answers


  1. You need to add the path to "mongo" to your terminal shell.

    export PATH=$PATH:/usr/local/mongodb/bin
    
    Login or Signup to reply.
  2. According to official document,

    The mongo shell has been deprecated in MongoDB v5.0. The replacement is mongosh.

    As you are using MongoDB v6.0, mongo is deprecated in your version.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search