Skip to content

Commit 9643df6

Browse files
committed
DOCSP-15525 update Manual for mongosh - mongo codeblocks
1 parent 9ff09e3 commit 9643df6

File tree

42 files changed

+76
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+76
-76
lines changed

source/appendix/security/appendixC-openssl-client.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ B. Generate the Test PEM File for Client
142142

143143
.. code-block:: javascript
144144

145-
mongo --tls --host <serverHost> --tlsCertificateKeyFile test-client.pem --tlsCAFile test-ca.pem
145+
mongosh --tls --host <serverHost> --tlsCertificateKeyFile test-client.pem --tlsCAFile test-ca.pem
146146

147147

148148
.. example::
@@ -151,7 +151,7 @@ B. Generate the Test PEM File for Client
151151

152152
.. code-block:: javascript
153153

154-
mongo --ssl --host <serverHost> --sslPEMKeyFile test-client.pem --sslCAFile test-ca.pem
154+
mongosh --ssl --host <serverHost> --sslPEMKeyFile test-client.pem --sslCAFile test-ca.pem
155155

156156
On macOS,
157157
If you are :red:`testing` with Keychain Access to manage certificates,
@@ -172,7 +172,7 @@ B. Generate the Test PEM File for Client
172172

173173
.. code-block:: javascript
174174

175-
mongo --tls --tlsCertificateSelector subject="<TestClientCertificateCommonName>"
175+
mongosh --tls --tlsCertificateSelector subject="<TestClientCertificateCommonName>"
176176

177177
Although still available, :option:`--ssl <mongosh --ssl>` and
178178
:option:`--sslCertificateSelector <mongosh
@@ -183,7 +183,7 @@ B. Generate the Test PEM File for Client
183183

184184
.. code-block:: javascript
185185

186-
mongo --ssl --sslCertificateSelector subject="<TestClientCertificateCommonName>"
186+
mongosh --ssl --sslCertificateSelector subject="<TestClientCertificateCommonName>"
187187

188188
For adding certificates to Keychain Access, refer to your
189189
official documentation for Keychain Access.

source/core/retryable-writes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ MongoDB Drivers
7979

8080
.. code-block:: bash
8181

82-
mongo --retryWrites
82+
mongosh --retryWrites
8383

8484
.. _retryable-write-ops:
8585

source/core/security-ldap-external.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ with LDAP authentication and authorization:
431431

432432
.. code-block:: bash
433433

434-
mongo --username [email protected] --password --authenticationDatabase '$external' --authenticationMechanism "PLAIN" --host "mongodb.example.com" --port 27017
434+
mongosh --username [email protected] --password --authenticationDatabase '$external' --authenticationMechanism "PLAIN" --host "mongodb.example.com" --port 27017
435435

436436
If you do not specify the password to the :option:`-password <mongo
437437
--password>` command-line option, :mongosh:`mongosh </>`

source/includes/extracts-client-side-field-level-encryption.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ content: |
5757
5858
.. code-block:: bash
5959
60-
mongo --eval "
60+
mongosh --eval "
6161
var AWS_ACCESS_KEY_ID = '$AWS_ACCESS_KEY_ID'
6262
var AWS_SECRET_ACCESS_KEY = '$AWS_SECRET_ACCESS_KEY'
6363
" \
@@ -82,7 +82,7 @@ content: |
8282
8383
TEST_LOCAL_KEY=$(echo "$(head -c 96 /dev/urandom | base64 | tr -d '\n')")
8484
85-
mongo --nodb --shell --eval "var TEST_LOCAL_KEY='$TEST_LOCAL_KEY'"
85+
mongosh --nodb --shell --eval "var TEST_LOCAL_KEY='$TEST_LOCAL_KEY'"
8686
8787
Create the client-side field level encryption object using the
8888
generated local key string:

source/includes/fact-default-bind-ip.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ the hostname or its associated ip address ``198.51.100.1``:
4141

4242
.. code-block:: none
4343
44-
mongo --host My-Example-Associated-Hostname
44+
mongosh --host My-Example-Associated-Hostname
4545
46-
mongo --host 198.51.100.1
46+
mongosh --host 198.51.100.1
4747
4848
.. end-override

source/includes/steps-authenticate-as-client.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ action:
99
example:
1010
language: javascript
1111
code: |
12-
mongo --username "prodManager" --password "cleartextPassword" --authenticationDatabase "products"
12+
mongosh --username "prodManager" --password "cleartextPassword" --authenticationDatabase "products"
1313
---
1414
title: Close the session when your work is complete.
1515
stepnum: 2

source/includes/steps-change-own-password-and-custom-data-prereq.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pre: |
99
action:
1010
language: javascript
1111
code: |
12-
mongo --port 27017 -u myUserAdmin -p --authenticationDatabase 'admin'
12+
mongosh --port 27017 -u myUserAdmin -p --authenticationDatabase 'admin'
1313
post: |
1414
If you do not specify the password to the :option:`-p <mongosh -p>`
1515
command-line option, :mongosh:`mongosh </>` prompts for the

source/includes/steps-change-own-password-and-custom-data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ action:
1111
section.
1212
language: javascript
1313
code: |
14-
mongo --port 27017 -u user123 --authenticationDatabase 'test' -p
14+
mongosh --port 27017 -u user123 --authenticationDatabase 'test' -p
1515
post: |
1616
1717
If you do not specify the password to the :option:`-p <mongosh -p>`

source/includes/steps-configure-ldap-mongodb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ content: |
9898
9999
.. code-block:: bash
100100
101-
mongo --host <host> --authenticationMechanism PLAIN --authenticationDatabase '$external' -u <user> -p
101+
mongosh --host <host> --authenticationMechanism PLAIN --authenticationDatabase '$external' -u <user> -p
102102
103103
- id: authafter
104104
name: Authenticate after Connection

source/includes/steps-configure-ldap-sasl-activedirectory-authentication.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ pre: |
301301
302302
.. code-block:: bash
303303
304-
mongo --username [email protected] --password --authenticationMechanism 'PLAIN' --authenticationDatabase '$external' --host <hostname> --port <port>
304+
mongosh --username [email protected] --password --authenticationMechanism 'PLAIN' --authenticationDatabase '$external' --host <hostname> --port <port>
305305
306306
If you do not specify the password to the :option:`-p <mongosh
307307
--password>` command-line option, :mongosh:`mongosh </>`

0 commit comments

Comments
 (0)