How to start cosmosdb emulator from command line?

1.8k views Asked by At

I installed the emulator according to this and following this guide. I am starting here: Use the emulator on Linux or macOS. cosmos docsI can start the cosmosdb emulator from the windows menu. However I need to start it and make the port exposed to my macbook so my dev environment can connect to it. To do this I see you have to start the emulator from the command line. But if I try to run it from the command line it says

command not found

Why do I get this error given that I have installed it correctly according to the docs? How do I start it from the command line?

1

There are 1 answers

3
Mark Brown On

This is just above the section you referred to in your question in the docs.

Microsoft.Azure.Cosmos.Emulator.exe /AllowNetworkAccess /Key=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM +4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==

Make sure to read and follow these instructions carefully. There are multiple steps involved in running the emulator hosted in a Windows VM from Mac or Linux.