What's new in .NET 10: new ways to use the .NET CLI
With .NET 10 the command line also … some commands. These changes involve a new way of executing commands in which the .NET CLI ( dotnet )

With .NET 10 the command line also went through improvements, including new aliases for running some commands. These changes involve a new way of executing commands in which the .NET CLI ( dotnet ) happened through a name + the verb that identifies the action , although the original form is still valid (starting with a verb, as in dotnet add ).
Below are the new forms, followed by the commands in their original form:
- dotnet package add , which is equivalent to dotnet add package
- dotnet packages list , equivalent to a dotnet list package
- dotnet package remove , also equivalent to dotnet remove package
- dotnet reference add , which is equivalent to dotnet add reference
- dotnet references list , equivalent to a dotnet references list
- dotnet reference remove , also equivalent to dotnet remove reference
The reason for these changes, according to the documentation, is to make command-line instructions more readable and consistent in scripts or documentation.
In the image below we can see a use of the dotnet package add command (a new form for dotnet add package ):

Translated from the Brazilian Portuguese original · Read the original





