Update ESXi 5.0 to 5.5 remotely

I needed to update a server from ESXi 5.0 to 5.5 which was hosted with OVH. I really didnt want to rebuild it using their installer as it would mean reformatting and rebuilding and also a lot of downtime. Luckily, it seems its possible to update it using esxicli. This is how i did it.