CWALabs.AspNetCore.Identity.CosmosDb.DemoTemplate
12.0.2
dotnet new install CWALabs.AspNetCore.Identity.CosmosDb.DemoTemplate::12.0.2
CWALabs.AspNetCore.Identity.CosmosDb.DemoTemplate
CWALabs.AspNetCore.Identity.CosmosDb.DemoTemplate is a dotnet new project template package that scaffolds a complete ASP.NET Core demo app wired for:
- ASP.NET Core Identity
- Azure Cosmos DB via
AspNetCore.Identity.CosmosDb - Passkey (WebAuthn) endpoints and UI
Versioning Note
Package versions for this template now follow SemVer 2.0 and no longer track the target .NET version number.
If you notice a version jump (for example to 12.0.0), that reflects the versioning scheme change for NuGet consistency, not a direct change in target framework by itself.
Install
dotnet new install CWALabs.AspNetCore.Identity.CosmosDb.DemoTemplate
What this does:
dotnet new installtells the .NET SDK to download and register a template package on your machine.CWALabs.AspNetCore.Identity.CosmosDb.DemoTemplateis the NuGet package ID for this template pack.- After installation, the template becomes available to the
dotnet newcommand, just like the built-in project templates that ship with the SDK. - This does not create a project yet. It only makes the template available for later use.
If you want to see which template packs are installed locally, run:
dotnet new uninstall
If you later want to remove this template pack, run:
dotnet new uninstall CWALabs.AspNetCore.Identity.CosmosDb.DemoTemplate
Official documentation:
Create a Demo Project
dotnet new cosmos-identity-demo -n MyIdentityCosmosDemo
cd MyIdentityCosmosDemo
dotnet run
What this does:
dotnet new cosmos-identity-democreates a new project from the installed template.cosmos-identity-demois the template short name. It is the friendly command name exposed by the template package after installation.-n MyIdentityCosmosDemosets the name of the generated project and the output folder name.cd MyIdentityCosmosDemomoves into the newly created project directory.dotnet runrestores dependencies if needed, builds the app, and starts it locally.
If you want to create the project in a different folder, you can also use -o:
dotnet new cosmos-identity-demo -n MyIdentityCosmosDemo -o .\samples\MyIdentityCosmosDemo
If you want to see the template's available options before creating a project, run:
dotnet new cosmos-identity-demo --help
Official documentation:
Configure Cosmos DB
After scaffolding, set your connection values in appsettings.json:
ConnectionStrings:CosmosDbCosmosDb:DatabaseNamePasskeys:ServerDomain
For local development, use the Cosmos DB Emulator.
Related Packages
- Main package: AspNetCore.Identity.CosmosDb
- Passkey page item templates: CWALabs.AspNetCore.Identity.CosmosDb.PasskeyTemplates
License
MIT
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 12.0.2 | 35 | 4/4/2026 |