The dotnet CLI includes a templating engine that makes it pretty straightforward to create your own project templates (see this blog post for a good intro).
This new repo is the home for all IdentityServer4 templates to come – right now they are pretty basic, but good enough to get you started.
The repo includes three templates right now:
dotnet new is4
Creates a minimal IdentityServer4 project without a UI and just one API and one client.
Adds the quickstart UI to the current project (can be combined with is4)
Adds a boilerplate IdentityServer with UI, test users and sample clients and resources
See the readme for installation instructions.