Skip to content

Commit d96859c

Browse files
DOCSP-17487 Change refs to mongosh (#172)
* DOCSP-17487 Change refs to mongosh * Apply suggestions from code review Co-authored-by: John Williams <[email protected]> * DOCSP-17487 updates for copy review feedback * DOCSP-17487 updates for review feedback Co-authored-by: John Williams <[email protected]>
1 parent 01eb516 commit d96859c

9 files changed

+65
-79
lines changed

snooty.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "datalake"
22
title = "MongoDB Atlas Data Lake"
33

4-
intersphinx = ["https://docs.mongodb.com/manual/objects.inv","https://docs.atlas.mongodb.com/objects.inv"]
4+
intersphinx = ["https://docs.mongodb.com/manual/objects.inv","https://docs.atlas.mongodb.com/objects.inv","https://docs.mongodb.com/database-tools/objects.inv","https://docs.mongodb.com/mongodb-shell/objects.inv"]
55

66
toc_landing_pages = ["/config/config-data-lake", "/tutorial/getting-started", "/admin/query-with-sql", "/query/query-data-lake", "/tutorial/connect"]
77

@@ -83,6 +83,7 @@ mms = "Cloud Manager"
8383
mongo = ":binary:`~bin.mongo`"
8484
mongod = ":binary:`~bin.mongod`"
8585
mongos = ":binary:`~bin.mongos`"
86+
mongosh = ":binary:`~bin.mongosh`"
8687
nfs = ":abbr:`NFS (Network File System)`"
8788
nvme = ":abbr:`NVMe (non-volatile memory express)`"
8889
nvme-clusters = "clusters with local NVMe SSDs"

source/includes/fact-add-shell-to-path.rst

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,52 +7,47 @@
77

88
content: |
99

10-
a. Double-click the ``.msi`` file in Windows Explorer
11-
and proceed through the installation wizard.
10+
1. Extract the files from the downloaded archive.
11+
12+
#. Click :icon-fa5-brands:`windows` and select
13+
:guilabel:`Control Panel`.
1214

13-
#. Add the ``bin`` directory to your command path.
15+
#. Click :guilabel:`System and Security`, then
16+
:guilabel:`System`, then :guilabel:`Advanced System
17+
Settings`.
1418

15-
1. Click :icon-fa5-brands:`windows` and select :guilabel:`Control Panel`.
19+
#. Click :guilabel:`Environment Variables`.
1620

17-
#. Click :guilabel:`System and Security`, then :guilabel:`System`,
18-
then :guilabel:`Advanced System Settings`.
21+
#. Select :guilabel:`Path` and click :guilabel:`Edit`.
1922

20-
#. Click :guilabel:`Environment Variables`.
21-
22-
#. Select :guilabel:`Path` and click :guilabel:`Edit`.
23-
24-
#. Add the ``bin`` directory where the installer placed your
25-
MongoDB executables and click :guilabel:`OK`.
23+
#. Click :guilabel:`New`, add the filepath to your |mongosh|
24+
binary, and click :guilabel:`OK`.
2625

2726
- id: macos
2827
name: macOS
2928

3029
content: |
3130

3231
Copy the Homebrew command from the |service| UI
33-
window and run it in your terminal.
32+
window and run it in your terminal. If you downloaded the
33+
MongoDB Shell directly, follow the steps to `install
34+
<https://docs.mongodb.com/mongodb-shell/install/>`__ |mongosh|.
3435

3536
- id: linux
3637
name: Linux
3738

3839
content: |
3940

40-
a. Run the following command in your terminal to extract
41-
the :binary:`~bin.mongo` shell:
42-
43-
.. code-block:: shell
41+
Install the |mongosh| package.
4442

45-
tar -xzf ./<filename>.tgz
43+
- For ``.deb`` package, use ``dpkg`` to install |mongosh|:
4644

47-
#. Add the ``bin`` directory to your ``PATH``
48-
environment variable.
45+
.. code-block:: sh
4946
50-
.. code-block:: none
47+
sudo dpkg -i mongodb-mongosh_<mongosh-version-and-platform>.deb
5148
52-
export PATH=/<extraction-directory>/bin:$PATH
49+
- For ``.rpm`` package, use ``rpm`` to install |mongosh|:
5350

54-
.. note::
51+
.. code-block:: sh
5552
56-
This command applies only to the current shell session. Edit
57-
the ``PATH`` environment variable in ``~/.profile``
58-
to update the variable across shell sessions and reboots.
53+
sudo rpm -i mongodb-mongosh_<mongosh-version-and-platform>.rpm

source/includes/steps-connect-shell.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ level: 4
44
content: |
55
Click the :guilabel:`Connect` button for your {+dl+}.
66
---
7-
title: "Click :guilabel:`Connect with the Mongo Shell`."
7+
title: "Click :guilabel:`Connect with the MongoDB Shell`."
88
ref: shell-connect-with-shell-button
99
level: 4
1010
stepnum: 2
@@ -14,10 +14,9 @@ ref: shell-copy-string
1414
level: 4
1515
stepnum: 4
1616
content: |
17-
This is a unique connection string specific to your |service|
18-
cluster. |service| replaces the ``username`` of the connection
19-
string with the username of the database user you created earlier
20-
in this procedure.
17+
This is a unique connection string specific to your {+dl+}. |service|
18+
replaces the ``username`` of the connection string with the username
19+
of the database user that you :ref:`created <create-mdb-user>`.
2120
---
2221
title: "Paste and run your connection string in your terminal."
2322
ref: shell-run-connection-string
@@ -32,12 +31,12 @@ content: |
3231
You will be prompted to enter the password you specified when you
3332
created your database user in |service|.
3433
35-
You should now be connected to your |service| cluster within the
36-
:binary:`~bin.mongo` shell.
34+
You should now be connected to your {+dl+} within the MongoDB Shell,
35+
|mongosh|.
3736
3837
.. important:: Connection Troubleshooting
3938
40-
If you are having trouble connecting to your cluster, double check
39+
If you are having trouble connecting to your {+dl+}, double check
4140
that you have added your IP address to your :atlas:`IP Access List
4241
</tutorial/whitelist-connection-ip-address/>` and that you are
4342
specifying the correct database user credentials. If you have

source/includes/steps-data-lake-data-mapping.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
title: "Run the following command in your :binary:`~bin.mongo` shell to
2+
title: "Run the following command in your MongoDB Shell to
33
display the mapped database."
44
ref: data-lake-check-databases-step1
55
level: 4
@@ -9,7 +9,7 @@ content: |
99
1010
show dbs
1111
12-
The ``mongo`` shell outputs the following:
12+
The MongoDB Shell outputs the following:
1313
1414
.. code-block:: sh
1515
:copyable: false
@@ -36,7 +36,7 @@ content: |
3636
3737
show collections
3838
39-
The ``mongo`` shell outputs the following:
39+
The MongoDB Shell outputs the following:
4040
4141
.. code-block:: none
4242
:copyable: false

source/includes/steps-data-lake-shell-installed.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,15 @@ source:
1212
ref: shell-connect-with-shell-button
1313
file: steps-connect-shell.yaml
1414
---
15-
title: "Click :guilabel:`I have the Mongo Shell Installed`."
15+
title: "Click :guilabel:`I have the MongoDB Shell Installed`."
1616
ref: shell-installed-step3
1717
level: 4
1818
stepnum: 3
1919
---
20-
title: "Select your ``mongo`` shell version from the drop-down."
20+
title: "Select ``mongosh`` from the dropdown."
2121
ref: shell-installed-step4
2222
level: 4
2323
stepnum: 4
24-
content: |
25-
26-
.. note::
27-
28-
You must use Mongo Shell v3.6 or later to connect to your
29-
Data Lake.
3024
---
3125
ref: shell-installed-step5
3226
level: 4

source/includes/steps-data-lake-shell-not-installed.yaml

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ source:
1212
ref: shell-connect-with-shell-button
1313
file: steps-connect-shell.yaml
1414
---
15-
title: "Click :guilabel:`I do not have the Mongo Shell Installed`."
15+
title: "Click :guilabel:`I do not have the MongoDB Shell Installed`."
1616
ref: shell-not-installed-step3
1717
level: 4
1818
stepnum: 3
@@ -23,62 +23,59 @@ ref: shell-not-installed-step4
2323
level: 4
2424
stepnum: 4
2525
---
26-
title: "Download the ``mongo`` shell."
26+
title: "Download the MongoDB shell, |mongosh|."
2727
ref: shell-download
2828
level: 4
2929
stepnum: 5
3030
content: |
3131
- If you are using :guilabel:`Windows` or :guilabel:`Linux`, you can
3232
choose to either download the shell directly, or fetch the shell
33-
via URL.
33+
via URL. For Linux, the type of file you download depends on the operating system you selected. If you select a version of:
34+
35+
- **Ubuntu or Debian** you receive a ``.deb`` package.
36+
- **RHEL, Amazon Linux, or SUSE** you receive an ``.rpm`` package.
37+
38+
If your operating system isn't listed, see the :mongosh:`.tgz
39+
installation instructions </install>` in the |mongosh|
40+
documentation.
3441
3542
- If you are using :guilabel:`macOS`, you can use the provided
36-
Homebrew command to download the shell.
43+
Homebrew command to download or go to the `MongoDB Shell
44+
page <https://www.mongodb.com/try/download/shell>`__ to download
45+
|mongosh|.
3746
---
38-
title: "Add the ``mongo`` shell to your system path."
47+
title: "Install and add ``mongosh``, if necessary, to your system path."
3948
ref: shell-system-path
4049
level: 4
4150
stepnum: 6
4251
content: |
43-
To run the :binary:`~bin.mongo` shell from your terminal, you must
44-
add the shell to your system path. Select the appropriate tab based
45-
on your operating system:
52+
To run the MongoDB shell from your terminal, you must add the shell
53+
to your system path. Select the appropriate tab based on your
54+
operating system:
4655
4756
.. include:: /includes/fact-add-shell-to-path.rst
4857
49-
You should now be able to run the ``mongo`` shell using your terminal.
58+
You should now be able to run |mongosh| using your terminal.
5059
---
51-
title: "Test your ``mongo`` shell installation."
60+
title: "Test your |mongosh| installation."
5261
optional: true
5362
ref: shell-test-install
5463
level: 4
5564
stepnum: 7
5665
content: |
57-
To see if you have correctly added the ``mongo`` shell to
58-
your system path, run the following command in your terminal:
66+
To see if you have correctly added |mongosh| to your system path,
67+
run the following command in your terminal:
5968
6069
.. code-block:: none
6170
62-
mongo --version
71+
mongosh --version
6372
6473
You should see an output similar to the following:
6574
6675
.. code-block:: none
6776
:copyable: false
6877
69-
MongoDB shell version v4.4.1
70-
Build Info: {
71-
"version": "4.4.1",
72-
"gitVersion": "ad91a93a5a31e175f5cbf8c69561e788bbc55ce1",
73-
"modules": [
74-
"enterprise"
75-
],
76-
"allocator": "system",
77-
"environment": {
78-
"distarch": "x86_64",
79-
"target_arch": "x86_64"
80-
}
81-
}
78+
1.0.0
8279
---
8380
ref: shell-not-installed-step8
8481
level: 4

source/query/download-query-logs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To download {+adl+} query logs, you must have the
3434
:authrole:`Project Data Access Read Only` or higher role.
3535

3636
Procedure
37-
~~~~~~~~~
37+
---------
3838

3939
To download query logs:
4040

source/tutorial/connect.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Connect to Your {+data-lake-short+}
1717
*Estimated completion time: 15 minutes*
1818

1919
This part of the tutorial will walk you through connecting to your
20-
{+dl+} using the :binary:`~bin.mongo` shell.
20+
{+dl+} using the MongoDB Shell, |mongosh|.
2121

2222
Prerequisites
2323
-------------
@@ -31,11 +31,11 @@ the following:
3131

3232
.. _data-lake-connect:
3333

34-
Connect to Your {+data-lake-short+} Using the ``mongo`` Shell
35-
-------------------------------------------------------------
34+
Connect to Your {+dl+} Using the MongoDB Shell
35+
-------------------------------------------------
3636

37-
Connecting to your {+data-lake-short+} depends on whether
38-
you have the :binary:`~bin.mongo` shell installed:
37+
Connecting to your {+dl+} depends on whether you have the MongoDB
38+
shell, |mongosh|, installed:
3939

4040
.. tabs::
4141

source/tutorial/run-queries.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To complete this part of the tutorial, you will need to have completed:
3535
- **Part 3:** :doc:`/tutorial/configure-database-collections`
3636

3737
You must be :ref:`connected <data-lake-connect>` to your {+dl+} with the
38-
:binary:`~bin.mongo` shell before running the following queries.
38+
MongoDB Shell before running the following queries.
3939

4040
Queries
4141
-------

0 commit comments

Comments
 (0)