Im new to MongoDB. Just installed Mongo through hombrew successfully. When I try to run the most basic commands such as “mongosh – version” or “mongo help” I get hit with a “Missing Semicolon” syntax error.
Im not sure what Im doing wrong.
Also, Im getting a reference error: “mongosh not defined” when running “mongosh -help”
Not all mongosh command needs to be executed from the OS prompt. The options of the mongosh can be executed from the OS prompt. You can see all the options after running mongosh --help.