dotnet new Templates
Lumeo ships a NuGet package of dotnet new item
templates so you can scaffold pages, forms, and components that follow the conventions described in these docs
without copy-pasting boilerplate. The package is called Lumeo.Templates.
Install
Install the templates globally on your machine:
After install, dotnet new list lumeo will list the three item templates below.
To remove them, run dotnet new uninstall Lumeo.Templates.
lumeo-page
Scaffolds a new .razor page with an
@page directive, a
Stack layout,
a heading, and a starter Card with a
Button.
Command
Produces Dashboard.razor
Parameters
| Name | Description | Default |
|---|---|---|
--name |
Page class name (PascalCase). | NewPage |
--route |
URL route, without leading slash. | new-page |
lumeo-form
Scaffolds a POCO model annotated with [LumeoForm]
plus a page that renders the generated form. See
[LumeoForm] Generator
for the underlying source generator.
Command
Produces FeedbackModel.cs
Parameters
| Name | Description | Default |
|---|---|---|
--ModelName |
Model class name (PascalCase). | ContactForm |
--PageName |
Page class name (PascalCase). | ContactFormPage |
--route |
Page route, without leading slash. | contact |
lumeo-component
Scaffolds a reusable .razor component
following Lumeo conventions — an explicit @namespace,
Class,
AdditionalAttributes,
ChildContent,
and theme-aware CSS variables for background and border.
Command
Produces Hero.razor
Parameters
| Name | Description | Default |
|---|---|---|
--ComponentName |
Component name (PascalCase). | MyComponent |
--namespace |
Target namespace. | MyApp.Components |