The dotnet tool that can update all dotnet tools
Build | NuGet |
---|---|
dotnet tool install --global dotnetCampus.UpdateAllDotNetTools
dotnet updatealltools
Or update all tools to prerelease version by:
dotnet UpdateAllTools --prerelease
The dotnet tool that can update all dotnet tools
License: MIT License
If a package id is blank skip it.
Otherwise you get a dotnet tool update -g
PS R:\test> dotnet updatealltools
Starting update all dotnet tools
Finding installed tools
dotnet tool list -g
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
R:\test>dotnet tool list -g&exit
Package Id Version Commands
------------------------------------------------------------------------------
cake.tool 0.37.0 dotnet-cake
dotnetcampus.updatealldotnettools 1.0.0 dotnet-updatealltools
electronnet.cli 7.30.2 electronize
microsoft.cst.applicationinspector.cli 1.2.46 appinspector
nbgv 3.0.26 nbgv
powershell 6.2.3 pwsh
project2015to2017.migrate2017.tool 4.1.2 dotnet-migrate-2017
project2015to2017.migrate2019.tool 4.1.2 dotnet-migrate-2019
dotnet tool update cake.tool -g
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
R:\test>dotnet tool update cake.tool -g&exit
Tool 'cake.tool' was successfully updated from version '0.37.0' to version '0.38.4'.
dotnet tool update dotnetcampus.updatealldotnettools -g
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
R:\test>dotnet tool update dotnetcampus.updatealldotnettools -g&exit
Tool 'dotnetcampus.updatealldotnettools' failed to update due to the following:
Failed to uninstall tool package 'dotnetcampus.updatealldotnettools': Access to the path 'C:\Users\ssi\.dotnet\tools\.store\dotnetcampus.updatealldotnettools\1.0.0' is denied.
dotnet tool update electronnet.cli -g
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
R:\test>dotnet tool update electronnet.cli -g&exit
Tool 'electronnet.cli' was successfully updated from version '7.30.2' to version '9.31.2'.
dotnet tool update microsoft.cst.applicationinspector.cli -g
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
R:\test>dotnet tool update microsoft.cst.applicationinspector.cli -g&exit
Tool 'microsoft.cst.applicationinspector.cli' was reinstalled with the latest stable version (version '1.2.46').
dotnet tool update nbgv -g
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
R:\test>dotnet tool update nbgv -g&exit
Tool 'nbgv' was successfully updated from version '3.0.26' to version '3.2.31'.
dotnet tool update powershell -g
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
R:\test>dotnet tool update powershell -g&exit
Tool 'powershell' was successfully updated from version '6.2.3' to version '7.0.3'.
dotnet tool update project2015to2017.migrate2017.tool -g
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
R:\test>dotnet tool update project2015to2017.migrate2017.tool -g&exit
Tool 'project2015to2017.migrate2017.tool' was successfully updated from version '4.1.2' to version '4.1.3'.
dotnet tool update project2015to2017.migrate2019.tool -g
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
R:\test>dotnet tool update project2015to2017.migrate2019.tool -g&exit
Tool 'project2015to2017.migrate2019.tool' was successfully updated from version '4.1.2' to version '4.1.3'.
dotnet tool update -g
Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
R:\test>dotnet tool update -g&exit
Usage: dotnet tool update [options] <PACKAGE_ID>
Arguments:
<PACKAGE_ID> The NuGet Package Id of the tool to update.
Options:
-g, --global Update the tool in the current user's tools directory.
--tool-path <PATH> The directory containing the tool to update.
--local Update the tool and the local tool manifest.
--configfile <FILE> The NuGet configuration file to use.
--add-source <SOURCE> Add an additional NuGet package source to use during the update.
--framework <FRAMEWORK> The target framework to update the tool for.
--version <VERSION> The version range of the tool package to update to.
--tool-manifest <PATH> Path to the manifest file.
--disable-parallel Prevent restoring multiple projects in parallel.
--ignore-failed-sources Treat package source failures as warnings.
--no-cache Do not cache packages and http requests.
--interactive Allows the command to stop and wait for user input or action (for example to complete authentication).
-h, --help Show command line help.
-v, --verbosity <LEVEL> Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
Specify one tool Package Id to update.
Update finished
PS R:\test>
Hi, this seems like an awesome tool. Do you have a way to update local tools? Since you list the tools as dotnet tool list -g
it only shows the globally installed tools. This tool would be even more awesome if it can update locally installed tools (which is the default for just about every github project),
I would find it very useful to run dotnet-updatealltools --prerelease
which would add --prerelease
as an additional argument for every process, making this tool very useful to keep yourself up-to-date with nightly/weekly builds.
When to submit 1.0.7 to nuget.org,Is there some plan?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.