Page cover

πŸŒ„Update

This command checks for updates to the package.

To do this command, you would run:

mdb update

If a new update is available, it will prompt you that an update is available and asks you if you'd like to update:

An example of the command notifying the user that an update to v5.5.0 is available.

On the prompt, typing Y will execute the following command to update the package for you globally.

npm install -g mdbadges-cli@latest

After the update has finished, you'll see the following in the terminal:

? β–² Are you sure you want to update now? Yes
β—  Updating... # Spinner


changed 112 packages in 5s # where the normal npm installation would occur

βœ” Update complete!

You are now on v5.5.0! To verify, run mdb version.
Check out what's changed by running mdb changelog.

Selecting N will simply exit the command.

Aliases: upd / u

Last updated

Was this helpful?