File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed
Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,6 @@ between applications and MongoDB instances in the official MongoDB
1919:driver:`Drivers </>`. For a list of drivers and links to
2020driver documentation, see :driver:`Drivers </>`.
2121
22- .. note::
23-
24- The MongoDB Atlas UI provides the connection strings for you
25- when you :atlas:`connect to a database deployment
26- </connect-to-database-deployment/>`. To register a new Atlas
27- account, start at the :mdbacct:`MongoDB Atlas registration page
28- </register?tck=docs_atlas>`.
29-
3022Connection String Formats
3123-------------------------
3224
@@ -130,6 +122,24 @@ Examples
130122
131123 .. include:: /includes/fact-pct-encode-uri.rst
132124
125+ - id: atlas
126+ name: Atlas Deployment
127+ content: |
128+
129+ .. note::
130+
131+ The MongoDB Atlas UI provides the connection strings for
132+ you when you :atlas:`connect to a database deployment
133+ </connect-to-database-deployment/>`. To register a new
134+ Atlas account, start at the
135+ :mdbacct:`MongoDB Atlas registration page
136+ </register?tck=docs_atlas>`.
137+
138+ .. code-block: bash
139+
140+ mongosh "mongodb+srv://cluster0.example.mongodb.net/
141+ myFirstDatabase" --username JohnDoe
142+
133143For more examples, see :ref:`connections-connection-examples`.
134144
135145Components
You can’t perform that action at this time.
0 commit comments