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
List
to list installed global tools- Use sub command
Search
to search global tools published on nuget- Use sub command
Update
to update installed global tools- Use sub command
Install
to install global tools- Use sub command
Uninstall
to uninstall global toolsTo run the tool, type commands :
dotnet-tools -h
to show helpdotnet-tools -s
to show settingsdotnet-tools List
to list installed global toolsdotnet-tools List -p [pattern]
to list installed global tools matching patterndotnet-tools Search
to search public global toolsdotnet-tools Search -p [pattern]
to search public global tools matching patterndotnet-tools Update
to 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] --force
to 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-sources
To 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-sources
To uninstall cli tool, type this command :
dotnet tool uninstall -g DotnetToolsCli
Tools
: net 9.0, command-line, spectre-console