Mongo DB Upgrade 4.2 to 6.0

Hello…i had installed mongo db version 4.2.I need to upgrade to 6.0.Is there any option for upgrading from UI?

The minimum version you could be on is 4.4 as 4.2 is end of life.

This tutorial steps through creating and upgrading a staging cluster.