How do i update my garrysmod steamcmd server

I already updated from srcds to steampipe or steamcmd, when I launch my server it says that it needs to update so how do I update it via steamcmd

Reinstall it.

I don’t remember how to do that, if I do reinstall it will it remove my gamemodes and changes to the server?

Yes. Just back up all necessary data.

Do you by any chance have teamviewer

I do, but I am not doing it for you.

Here’s the commands you need to follow.