diff --git a/source/upgrade.txt b/source/upgrade.txt index fe505f962..70e45c2cc 100644 --- a/source/upgrade.txt +++ b/source/upgrade.txt @@ -13,9 +13,12 @@ Upgrade Driver Versions Overview -------- -On this page, you can learn about any changes you might need to make to -your application to upgrade your driver to a new version without loss of -functionality. +On this page, you can learn how to upgrade your driver to a new version. This page also +includes the changes you must make to your application to upgrade your driver +without losing functionality, if applicable. + +How to Upgrade +-------------- Before you upgrade, perform the following actions: @@ -35,6 +38,18 @@ Before you upgrade, perform the following actions: application when upgrading driver versions by using the :ref:`{+stable-api+} `. +To upgrade your driver version, run the following command in your application's +directory: + +.. code-block:: bash + + npm install mongodb@{+version+} + +To upgrade to a different version of the driver, replace the information after the +``@`` symbol with your preferred version number. For more information about the +``npm install`` command, see the `npm-install `__ +npm documentation. + .. _node-breaking-changes: Breaking Changes