|
| 1 | +--- |
| 2 | +source: |
| 3 | + file: steps-install-shell-base.yaml |
| 4 | + ref: navigate-dlc |
| 5 | +ref: navigate-dlc-windows |
| 6 | +--- |
| 7 | +source: |
| 8 | + file: steps-install-shell-base.yaml |
| 9 | + ref: open-mdb-shell-page |
| 10 | +ref: open-mdb-shell-page-windows |
| 11 | +--- |
| 12 | +source: |
| 13 | + file: steps-install-shell-base.yaml |
| 14 | + ref: download-archive |
| 15 | +ref: download-archive-windows |
| 16 | +--- |
| 17 | +title: "Extract the files from the downloaded archive." |
| 18 | +ref: extract-archive |
| 19 | +level: 4 |
| 20 | +--- |
| 21 | +title: "Add the MongoDB Shell binary to your ``PATH`` environment |
| 22 | + variable." |
| 23 | +ref: add-shell-to-path |
| 24 | +level: 4 |
| 25 | +content: | |
| 26 | +
|
| 27 | + Ensure that the extracted |mdb-shell| binary is in the desired |
| 28 | + location in your filesystem, then add that location to your ``PATH`` |
| 29 | + environment variable. |
| 30 | +
|
| 31 | + To add the |mdb-shell| binary's location to your |
| 32 | + ``PATH`` environment variable: |
| 33 | +
|
| 34 | + 1. Open the :guilabel:`Control Panel`. |
| 35 | +
|
| 36 | + #. In the :guilabel:`System and Security` category, click |
| 37 | + :guilabel:`System`. |
| 38 | +
|
| 39 | + #. Click :guilabel:`Advanced system settings`. The **System |
| 40 | + Properties** modal displays. |
| 41 | +
|
| 42 | + #. Click :guilabel:`Environment Variables`. |
| 43 | +
|
| 44 | + #. In the *System variables* section, select ``Path`` and click |
| 45 | + :guilabel:`Edit`. The **Edit environment variable** modal |
| 46 | + displays. |
| 47 | +
|
| 48 | + #. Click :guilabel:`New` and add the filepath to your ``mongosh`` |
| 49 | + binary. |
| 50 | +
|
| 51 | + #. Click :guilabel:`OK` to confirm your changes. On each other |
| 52 | + modal, click :guilabel:`OK` to confirm your changes. |
| 53 | +
|
| 54 | + To confirm that your ``PATH`` environment variable is correctly |
| 55 | + configured to find ``mongosh``, open a command prompt and enter the |
| 56 | + ``mongosh --help`` command. If your ``PATH`` is configured |
| 57 | + correctly, a list of valid commands displays. |
| 58 | +
|
| 59 | +... |
0 commit comments