Skip to content

Instantly share code, notes, and snippets.

@locnt19
Created September 19, 2022 10:14
Show Gist options
  • Save locnt19/822d0507347febef4b8f7577fbf2832c to your computer and use it in GitHub Desktop.
Save locnt19/822d0507347febef4b8f7577fbf2832c to your computer and use it in GitHub Desktop.
Install MongoShell on Windows 11
Install from MSI
1. Open the MongoDB Shell download page: https://www.mongodb.com/try/download/shell?jmp=docs
2. In the Platform dropdown, select Windows 64-bit (8.1+) (MSI)
3. Click Download.
4. Double-click the installer file.
5. Follow the prompts to install mongosh.
a. Open the Control Panel.
b. In the System and Security category, click System.
c. Click Advanced system settings. The System Properties modal displays.
d. Click Environment Variables.
e. In the System variables section, select Path and click Edit. The Edit environment variable modal displays.
f. Click New and add the filepath to your mongosh binary.
g. Click OK to confirm your changes. On each other modal, click OK to confirm your changes.
To confirm that your PATH environment variable is correctly configured to find mongosh, open a command prompt and enter the mongosh --help command. If your PATH is configured correctly, a list of valid commands displays.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment