Your company here — click to reach over 10,000 unique daily visitors

dotnet-new-update - Man Page

updates installed template packages.

dotnet new update

This article applies to: ✔️ .NET Core 3.1 SDK and later versions


dotnet new update [--interactive] [--add-source|--nuget-source <SOURCE>] 
    [-d|--diagnostics] [--verbosity <LEVEL>] [-h|--help]

dotnet new update --check-only|--dry-run [--interactive] [--add-source|--nuget-source <SOURCE>] 
    [-d|--diagnostics] [--verbosity <LEVEL>] [-h|--help]


The dotnet new update command updates installed template packages. The dotnet new update command with --check-only option checks for available updates for installed template packages without applying them.

Starting with the .NET 7 SDK, the dotnet new syntax has changed:

Other options that were available before are still available to use with their respective subcommands. Separate help for each subcommand is available via the -h or --help option: dotnet new <subcommand> --help lists all supported options for the subcommand.

Additionally, tab completion is now available for dotnet new. It supports completion for installed template names and for the options a selected template provides. To activate tab completion for the .NET SDK, see Enable tab completion. > > Examples of the old syntax: > > - Show help for the update subcommand. > > - Check for updates for installed template packages: > > dotnetcli >   dotnet new --update-check > > > - Update installed template packages: > > dotnetcli >   dotnet new --update-apply >



See Also


2023-10-25 .NET Documentation