Microsoft has released an interactive CLI tool dotnet scaffold, available in preview.
This tool simplifies the code generation process for ASP.NET Core projects, including Web APIs, Blazor, and Razor Pages.
Users can create templates with Entity Framework support, as well as customize the generation through interactive menus or automated parameters.