To be a developer is to be lazy. I often use the dotnet global tools set up through the dotnet CLI.

Unfortunately, to date there is no “dotnet tool update --all” command to update all the packages at the same time. Here is the PowerShell command that I use to update all of them while sitting back in my seat:

foreach ($packageToUpdate in $(dotnet tool list --global | Select-Object -Skip 2)) {
    Write-Host "dotnet tool update --global $($packageToUpdate.Split(" ", 2)[0])"
    dotnet tool update --global $($packageToUpdate.Split(" ", 2)[0])
}