@@ -61,6 +61,17 @@ Select an installation method below and follow the steps to install the
61
61
62
62
.. tabs::
63
63
64
+ .. tab:: Homebrew
65
+ :tabid: Homebrew
66
+
67
+ Complete the Prerequisites
68
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
69
+
70
+ To install the {+atlas-cli+} using Homebrew, you must:
71
+
72
+ 1. Use a MacOS or Linux operating system.
73
+ #. Install `Homebrew <https://brew.sh/>`__.
74
+
64
75
.. tab:: Yum
65
76
:tabid: yum
66
77
@@ -85,6 +96,21 @@ Follow These Steps
85
96
.. tabs::
86
97
:hidden:
87
98
99
+ .. tab:: Homebrew
100
+ :tabid: Homebrew
101
+
102
+ .. procedure::
103
+
104
+ .. step:: Install the {+atlas-cli+}.
105
+
106
+ Invoke the following ``brew`` command:
107
+
108
+ .. code-block:: sh
109
+
110
+ brew install mongodb-atlas-cli
111
+
112
+ .. include:: /includes/steps-verify-atlas-cli.rst
113
+
88
114
.. tab:: Yum
89
115
:tabid: yum
90
116
@@ -97,9 +123,9 @@ Follow These Steps
97
123
.. tab:: MongoDB Community Edition
98
124
:tabid: mdb-comm
99
125
100
- Create a ``/etc/yum.repos.d/mongodb-org-{MDB-Version} .repo``
126
+ Create a ``/etc/yum.repos.d/mongodb-org-5.0 .repo``
101
127
file so that you can install {+atlas-cli+} directly using
102
- ``yum``. Replace the placeholder ``{MDB-Version} `` with your
128
+ ``yum``. Replace ``5.0 `` with your
103
129
edition of MongoDB.
104
130
105
131
.. tabs::
@@ -110,33 +136,33 @@ Follow These Steps
110
136
.. code-block:: text
111
137
:emphasize-lines: 1
112
138
113
- [mongodb-org-{MDB-Version} ]
139
+ [mongodb-org-5.0 ]
114
140
name=MongoDB Repository
115
- baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/{MDB-Version} /x86_64/
141
+ baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/5.0 /x86_64/
116
142
gpgcheck=1
117
143
enabled=1
118
- gpgkey=https://www .mongodb.org/static/pgp/ server-{MDB-Version} .asc
144
+ gpgkey=https://pgp .mongodb.com/ server-5.0 .asc
119
145
120
146
.. tab:: Amazon Linux
121
147
:tabid: amazon
122
148
123
149
.. code-block:: text
124
150
:emphasize-lines: 1
125
151
126
- [mongodb-org-{MDB-Version} ]
152
+ [mongodb-org-5.0 ]
127
153
name=MongoDB Repository
128
- baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/{MDB-Version} /x86_64/
154
+ baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/5.0 /x86_64/
129
155
gpgcheck=1
130
156
enabled=1
131
- gpgkey=https://www .mongodb.org/static/pgp/ server-{MDB-Version} .asc
157
+ gpgkey=https://pgp .mongodb.com/ server-5.0 .asc
132
158
133
159
.. tab:: MongoDB Enterprise Edition
134
160
:tabid: mdb-ent
135
161
136
162
Create a
137
- ``/etc/yum.repos.d/mongodb-enterprise-{MDB-Version} .repo`` file
163
+ ``/etc/yum.repos.d/mongodb-enterprise-5.0 .repo`` file
138
164
so that you can install {+atlas-cli+} directly using
139
- ``yum``. Replace the placeholder ``{MDB-Version} `` with your
165
+ ``yum``. Replace ``5.0 `` with your
140
166
edition of MongoDB.
141
167
142
168
.. tabs::
@@ -147,25 +173,25 @@ Follow These Steps
147
173
.. code-block:: text
148
174
:emphasize-lines: 1
149
175
150
- [mongodb-enterprise-{MDB-Version} ]
176
+ [mongodb-enterprise-5.0 ]
151
177
name=MongoDB Repository
152
- baseurl=https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/{MDB-Version} /$basearch/
178
+ baseurl=https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/5.0 /$basearch/
153
179
gpgcheck=1
154
180
enabled=1
155
- gpgkey=https://www .mongodb.org/static/pgp/ server-{MDB-Version} .asc
181
+ gpgkey=https://pgp .mongodb.com/ server-5.0 .asc
156
182
157
183
.. tab:: Amazon Linux
158
184
:tabid: amazon
159
185
160
186
.. code-block:: text
161
187
:emphasize-lines: 1
162
188
163
- [mongodb-enterprise-{MDB-Version} ]
189
+ [mongodb-enterprise-5.0 ]
164
190
name=MongoDB Enterprise Repository
165
- baseurl=https://repo.mongodb.com/yum/amazon/2/mongodb-enterprise/{MDB-Version} /$basearch/
191
+ baseurl=https://repo.mongodb.com/yum/amazon/2/mongodb-enterprise/5.0 /$basearch/
166
192
gpgcheck=1
167
193
enabled=1
168
- gpgkey=https://www .mongodb.org/static/pgp/ server-{MDB-Version} .asc
194
+ gpgkey=https://pgp .mongodb.com/ server-5.0 .asc
169
195
170
196
.. step:: Install the {+atlas-cli+}.
171
197
@@ -186,13 +212,13 @@ Follow These Steps
186
212
187
213
From a terminal, issue the following command to import the MongoDB
188
214
public GPG Key from
189
- ``https://www .mongodb.org/static/pgp/ server-{MDB-Version}. asc> ``.
190
- Replace the placeholder ``{MDB-Version} `` with your
215
+ ``https://pgp .mongodb.com/ server-5.0. asc``.
216
+ Replace ``5.0 `` with your
191
217
edition of MongoDB.
192
218
193
219
.. code-block:: sh
194
220
195
- wget -qO - https://www .mongodb.org/static/pgp/ server-{MDB-Version} .asc | sudo apt-key add -
221
+ wget -qO - https://pgp .mongodb.com/ server-5.0 .asc | sudo apt-key add -
196
222
197
223
A successful command returns an ``OK``.
198
224
@@ -204,8 +230,8 @@ Follow These Steps
204
230
:tabid: mdb-comm
205
231
206
232
Create the list file
207
- ``/etc/apt/sources.list.d/mongodb-org-{MDB-Version} .list`` for
208
- your version of Ubuntu. Replace the placeholder ``{MDB-Version} `` with your
233
+ ``/etc/apt/sources.list.d/mongodb-org-5.0 .list`` for
234
+ your version of Ubuntu. Replace ``5.0 `` with your
209
235
edition of MongoDB.
210
236
211
237
.. tabs::
@@ -215,34 +241,34 @@ Follow These Steps
215
241
216
242
.. code-block:: sh
217
243
218
- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{MDB-Version} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{MDB-Version} .list
244
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0 .list
219
245
220
246
.. tab:: Ubuntu 18.04 (Bionic)
221
247
:tabid: comm-bionic
222
248
223
249
.. code-block:: sh
224
250
225
- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/{MDB-Version} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-{MDB-Version} .list
251
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0 .list
226
252
227
253
.. tab:: Debian 10 (Buster)
228
254
:tabid: comm-deb-10
229
255
230
256
.. code-block:: sh
231
257
232
- echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/{MDB-Version} main" | sudo tee /etc/apt/sources.list.d/mongodb-org-{MDB-Version} .list
258
+ echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0 .list
233
259
234
260
.. tab:: Debian 9 (Stretch)
235
261
:tabid: comm-deb-9
236
262
237
263
.. code-block:: sh
238
264
239
- echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/{MDB-Version} main" | sudo tee /etc/apt/sources.list.d/mongodb-org-{MDB-Version} .list
265
+ echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0 .list
240
266
241
267
.. tab:: MongoDB Enterprise Edition
242
268
:tabid: mdb-ent
243
269
244
270
Create a ``/etc/apt/sources.list.d/mongodb-enterprise.list``
245
- file for MongoDB. Replace the placeholder ``{MDB-Version} `` with your
271
+ file for MongoDB. Replace ``5.0 `` with your
246
272
edition of MongoDB.
247
273
248
274
.. tabs::
@@ -252,28 +278,36 @@ Follow These Steps
252
278
253
279
.. code-block:: sh
254
280
255
- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu focal/mongodb-enterprise/{MDB-Version} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
281
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu focal/mongodb-enterprise/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
256
282
257
283
.. tab:: Ubuntu 18.04 (Bionic)
258
284
:tabid: ent-bionic
259
285
260
286
.. code-block:: sh
261
287
262
- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu bionic/mongodb-enterprise/{MDB-Version} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
288
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.com/apt/ubuntu bionic/mongodb-enterprise/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
263
289
264
290
.. tab:: Debian 10 (Buster)
265
291
:tabid: ent-deb-10
266
292
267
293
.. code-block:: sh
268
294
269
- echo "deb http://repo.mongodb.com/apt/debian buster/mongodb-enterprise/{MDB-Version} main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
295
+ echo "deb http://repo.mongodb.com/apt/debian buster/mongodb-enterprise/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
270
296
271
297
.. tab:: Debian 9 (Stretch)
272
298
:tabid: ent-deb-9
273
299
274
300
.. code-block:: sh
275
301
276
- echo "deb http://repo.mongodb.com/apt/debian stretch/mongodb-enterprise/{MDB-Version} main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
302
+ echo "deb http://repo.mongodb.com/apt/debian stretch/mongodb-enterprise/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
303
+
304
+ .. step:: Refresh the package database.
305
+
306
+ Invoke the following ``apt`` command:
307
+
308
+ .. code-block:: sh
309
+
310
+ sudo apt-get update
277
311
278
312
.. step:: Install the {+atlas-cli+}.
279
313
@@ -340,6 +374,26 @@ method you used to install the {+atlas-cli+}:
340
374
341
375
.. tabs::
342
376
377
+
378
+ .. tab:: Homebrew
379
+ :tabid: Homebrew
380
+
381
+ Follow These Steps
382
+ ~~~~~~~~~~~~~~~~~~
383
+
384
+ .. procedure::
385
+
386
+ .. step:: Update the {+atlas-cli+}.
387
+
388
+ Invoke the following ``brew`` command:
389
+
390
+ .. code-block:: sh
391
+
392
+ brew update
393
+ brew upgrade mongocli-atlas-cli
394
+
395
+ .. include:: /includes/steps-verify-update-atlas-cli.rst
396
+
343
397
.. tab:: Yum
344
398
:tabid: yum
345
399
0 commit comments