Skip to content

Commit 497e334

Browse files
committed
DOCPS-31571: Add upgrade information (#779)
* DOCPS-31571: Add upgrade information * small changes * wording * feedback fixes * vale fix * adding clarifying info (cherry picked from commit 31ac73b)
1 parent 0dd9676 commit 497e334

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

source/upgrade.txt

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ Upgrade Driver Versions
1313
Overview
1414
--------
1515

16-
On this page, you can learn about any changes you might need to make to
17-
your application to upgrade your driver to a new version without loss of
18-
functionality.
16+
On this page, you can learn how to upgrade your driver to a new version. This page also
17+
includes the changes you must make to your application to upgrade your driver
18+
without losing functionality, if applicable.
19+
20+
How to Upgrade
21+
--------------
1922

2023
Before you upgrade, perform the following actions:
2124

@@ -35,6 +38,18 @@ Before you upgrade, perform the following actions:
3538
application when upgrading driver versions by using the
3639
:ref:`{+stable-api+} <nodejs-stable-api>`.
3740

41+
To upgrade your driver version, run the following command in your application's
42+
directory:
43+
44+
.. code-block:: bash
45+
46+
npm install mongodb@{+version+}
47+
48+
To upgrade to a different version of the driver, replace the information after the
49+
``@`` symbol with your preferred version number. For more information about the
50+
``npm install`` command, see the `npm-install <https://docs.npmjs.com/cli/v10/commands/npm-install?v=true>`__
51+
npm documentation.
52+
3853
.. _node-breaking-changes:
3954

4055
Breaking Changes

0 commit comments

Comments
 (0)