|
| 1 | +.. _mdb-shell-install: |
| 2 | + |
| 3 | +======================= |
| 4 | +Install the |mdb-shell| |
| 5 | +======================= |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 1 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +.. include:: /includes/admonitions/fact-mdb-shell-beta.rst |
| 16 | + |
| 17 | +Prerequisites |
| 18 | +------------- |
| 19 | + |
| 20 | +To use the |mdb-shell|, you must have a MongoDB deployment to connect |
| 21 | +to. |
| 22 | + |
| 23 | +- For a free cloud-hosted deployment, you can use |
| 24 | + `MongoDB Atlas <https://www.mongodb.com/cloud/atlas?tck=docs_vsce>`__. |
| 25 | + |
| 26 | +- To learn how to run a local MongoDB deployment, see |
| 27 | + :manual:`Install MongoDB </installation/>`. |
| 28 | + |
| 29 | +Procedure |
| 30 | +--------- |
| 31 | + |
| 32 | +.. tabs-platforms:: |
| 33 | + |
| 34 | + .. tab:: |
| 35 | + :tabid: windows |
| 36 | + |
| 37 | + .. include:: /includes/steps/install-shell-windows.rst |
| 38 | + |
| 39 | + .. tab:: |
| 40 | + :tabid: macOS |
| 41 | + |
| 42 | + .. _macos-install-homebrew: |
| 43 | + |
| 44 | + Install with Homebrew |
| 45 | + ~~~~~~~~~~~~~~~~~~~~~ |
| 46 | + |
| 47 | + .. important:: |
| 48 | + |
| 49 | + To install ``mongosh`` with Homebrew on macOS, you must have a |
| 50 | + minimum `node.JS <https://nodejs.org/en/download/>`__ version |
| 51 | + of ``12.0.0``. |
| 52 | + |
| 53 | + To view the complete list of system requirements for Homebrew, |
| 54 | + see the |
| 55 | + `Homebrew Website <https://docs.brew.sh/Installation>`__. |
| 56 | + |
| 57 | + The Homebrew package manager is the recommended installation |
| 58 | + method for ``mongosh`` on macOS. To learn how to manually install |
| 59 | + ``mongosh`` from an archive, see :ref:`macos-install-archive`. |
| 60 | + |
| 61 | + To install ``mongosh`` with Homebrew: |
| 62 | + |
| 63 | + .. include:: /includes/steps/install-shell-macos-homebrew.rst |
| 64 | + |
| 65 | + .. _macos-install-archive: |
| 66 | + |
| 67 | + Install from Tarball |
| 68 | + ~~~~~~~~~~~~~~~~~~~~ |
| 69 | + |
| 70 | + To manually install ``mongosh`` using a downloaded ``.tgz`` |
| 71 | + tarball: |
| 72 | + |
| 73 | + .. include:: /includes/steps/install-shell-macos.rst |
| 74 | + |
| 75 | + .. tab:: |
| 76 | + :tabid: linux |
| 77 | + |
| 78 | + .. include:: /includes/steps/install-shell-generic-linux.rst |
| 79 | + |
| 80 | +Next Steps |
| 81 | +---------- |
| 82 | + |
| 83 | +Once you successfully install ``mongosh``, learn how to |
| 84 | +:ref:`connect to your MongoDB deployment <mdb-shell-connect>`. |
0 commit comments