Providing a dotnet cli tool to manage dotnet global tools
In this repo, i m building a cli tool that allows to manage dotnet global tools.
The tool is based on multiple sub commands :
- Use sub command
Listto list installed global tools- Use sub command
Searchto search global tools published on nuget- Use sub command
Updateto update installed global tools- Use sub command
Installto install global tools- Use sub command
Uninstallto uninstall global toolsTo run the tool, type commands :
dotnet-tools -hto show helpdotnet-tools -sto show settingsdotnet-tools Listto list installed global toolsdotnet-tools List -p [pattern]to list installed global tools matching patterndotnet-tools Searchto search public global toolsdotnet-tools Search -p [pattern]to search public global tools matching patterndotnet-tools Updateto update installed global toolsdotnet-tools Update -p [pattern]to update installed global tools matching patterndotnet-tools Install [id]to install global toolsdotnet-tools Install [id] --forceto force install global toolsdotnet-tools Install [id] --version [version]to install global tools with some versiondotnet-tools Uninstall [id]to uninstall global toolsTo install cli tool from a local source path, type commands :
dotnet tool install -g --configfile .\Nugets\local.config DotnetToolsCli --version "*-*" --ignore-failed-sourcesTo install cli tool from nuget source, type this command :
- For stable version :
dotnet tool install -g DotnetToolsCli --ignore-failed-sources- For prerelease version :
dotnet tool install -g DotnetToolsCli --version "*-*" --ignore-failed-sourcesTo uninstall cli tool, type this command :
dotnet tool uninstall -g DotnetToolsCli
Tools : net 9.0, command-line, spectre-console