Skip to content

Commit d79065e

Browse files
DOCSP-21794: update atlascli instructions (#14)
1 parent 9e0aac9 commit d79065e

File tree

1 file changed

+84
-30
lines changed

1 file changed

+84
-30
lines changed

source/install-atlas-cli.txt

Lines changed: 84 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ Select an installation method below and follow the steps to install the
6161

6262
.. tabs::
6363

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+
6475
.. tab:: Yum
6576
:tabid: yum
6677

@@ -85,6 +96,21 @@ Follow These Steps
8596
.. tabs::
8697
:hidden:
8798

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+
88114
.. tab:: Yum
89115
:tabid: yum
90116

@@ -97,9 +123,9 @@ Follow These Steps
97123
.. tab:: MongoDB Community Edition
98124
:tabid: mdb-comm
99125

100-
Create a ``/etc/yum.repos.d/mongodb-org-{MDB-Version}.repo``
126+
Create a ``/etc/yum.repos.d/mongodb-org-5.0.repo``
101127
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
103129
edition of MongoDB.
104130

105131
.. tabs::
@@ -110,33 +136,33 @@ Follow These Steps
110136
.. code-block:: text
111137
:emphasize-lines: 1
112138

113-
[mongodb-org-{MDB-Version}]
139+
[mongodb-org-5.0]
114140
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/
116142
gpgcheck=1
117143
enabled=1
118-
gpgkey=https://www.mongodb.org/static/pgp/server-{MDB-Version}.asc
144+
gpgkey=https://pgp.mongodb.com/server-5.0.asc
119145

120146
.. tab:: Amazon Linux
121147
:tabid: amazon
122148

123149
.. code-block:: text
124150
:emphasize-lines: 1
125151

126-
[mongodb-org-{MDB-Version}]
152+
[mongodb-org-5.0]
127153
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/
129155
gpgcheck=1
130156
enabled=1
131-
gpgkey=https://www.mongodb.org/static/pgp/server-{MDB-Version}.asc
157+
gpgkey=https://pgp.mongodb.com/server-5.0.asc
132158

133159
.. tab:: MongoDB Enterprise Edition
134160
:tabid: mdb-ent
135161

136162
Create a
137-
``/etc/yum.repos.d/mongodb-enterprise-{MDB-Version}.repo`` file
163+
``/etc/yum.repos.d/mongodb-enterprise-5.0.repo`` file
138164
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
140166
edition of MongoDB.
141167

142168
.. tabs::
@@ -147,25 +173,25 @@ Follow These Steps
147173
.. code-block:: text
148174
:emphasize-lines: 1
149175

150-
[mongodb-enterprise-{MDB-Version}]
176+
[mongodb-enterprise-5.0]
151177
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/
153179
gpgcheck=1
154180
enabled=1
155-
gpgkey=https://www.mongodb.org/static/pgp/server-{MDB-Version}.asc
181+
gpgkey=https://pgp.mongodb.com/server-5.0.asc
156182

157183
.. tab:: Amazon Linux
158184
:tabid: amazon
159185

160186
.. code-block:: text
161187
:emphasize-lines: 1
162188

163-
[mongodb-enterprise-{MDB-Version}]
189+
[mongodb-enterprise-5.0]
164190
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/
166192
gpgcheck=1
167193
enabled=1
168-
gpgkey=https://www.mongodb.org/static/pgp/server-{MDB-Version}.asc
194+
gpgkey=https://pgp.mongodb.com/server-5.0.asc
169195

170196
.. step:: Install the {+atlas-cli+}.
171197

@@ -186,13 +212,13 @@ Follow These Steps
186212

187213
From a terminal, issue the following command to import the MongoDB
188214
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
191217
edition of MongoDB.
192218

193219
.. code-block:: sh
194220

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 -
196222

197223
A successful command returns an ``OK``.
198224

@@ -204,8 +230,8 @@ Follow These Steps
204230
:tabid: mdb-comm
205231

206232
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
209235
edition of MongoDB.
210236

211237
.. tabs::
@@ -215,34 +241,34 @@ Follow These Steps
215241

216242
.. code-block:: sh
217243

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
219245

220246
.. tab:: Ubuntu 18.04 (Bionic)
221247
:tabid: comm-bionic
222248

223249
.. code-block:: sh
224250

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
226252

227253
.. tab:: Debian 10 (Buster)
228254
:tabid: comm-deb-10
229255

230256
.. code-block:: sh
231257

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
233259

234260
.. tab:: Debian 9 (Stretch)
235261
:tabid: comm-deb-9
236262

237263
.. code-block:: sh
238264

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
240266

241267
.. tab:: MongoDB Enterprise Edition
242268
:tabid: mdb-ent
243269

244270
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
246272
edition of MongoDB.
247273

248274
.. tabs::
@@ -252,28 +278,36 @@ Follow These Steps
252278

253279
.. code-block:: sh
254280

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
256282

257283
.. tab:: Ubuntu 18.04 (Bionic)
258284
:tabid: ent-bionic
259285

260286
.. code-block:: sh
261287

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
263289

264290
.. tab:: Debian 10 (Buster)
265291
:tabid: ent-deb-10
266292

267293
.. code-block:: sh
268294

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
270296

271297
.. tab:: Debian 9 (Stretch)
272298
:tabid: ent-deb-9
273299

274300
.. code-block:: sh
275301

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
277311

278312
.. step:: Install the {+atlas-cli+}.
279313

@@ -340,6 +374,26 @@ method you used to install the {+atlas-cli+}:
340374

341375
.. tabs::
342376

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+
343397
.. tab:: Yum
344398
:tabid: yum
345399

0 commit comments

Comments
 (0)