dotnet publish command - .NET CLI
The dotnet publish command publishes a .NET project or solution to a directory.