Skip to content

Instantly share code, notes, and snippets.

@breiter
Created June 26, 2020 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breiter/ffef5d134e87667bd8bdd5c561b9641e to your computer and use it in GitHub Desktop.
Save breiter/ffef5d134e87667bd8bdd5c561b9641e to your computer and use it in GitHub Desktop.
Update all installed dotnet global tools
#!/bin/sh
# list global tools installed
# select tool <PACKAGE_ID>
# execute `dotnet tool update --global <PACKAGE_ID>`
dotnet tool list --global | awk 'NR > 2 {print $1}' | xargs -L1 dotnet tool update --global
@Roman-Blinkov
Copy link

Thank you!
Works: Windows 11 + git bash + dotnet 7

@breiter
Copy link
Author

breiter commented Feb 25, 2022

Welcome to Unix 1979, @Roman-Blinkov. 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment