Skip to content

Blazor Microfrontend Library Template — Parameters

Reference for dotnet new connectsoft-blazor-mfe. See .template.config/dotnetcli.host.json for short flags.

Standard CLI parameters

Parameter Type CLI Description
name string -n, --name Solution / namespace root via sourceName replacement.

Template-specific parameters

Parameter Type Default CLI (examples) Description
Framework choice net10.0 --framework / -f Primary moniker for docs/tooling.
uiKitAdapter choice Flowbite --uikit-adapter / -ui Tokens, Flowbite, or DaisyUI.
includeTests bool true --include-tests / -tests Test projects (unit, architecture, linker).
ShellPort int 7000 --shell-port / -sp Shell HTTPS/HTTP port defaults in launch settings.
BffApiPort int 7001 --bff-port / -bp BFF port.
SelfServiceMfePort int 7002 --selfservice-port / -ssp Self-service MFE port.
AdminMfePort int 7003 --admin-port / -ap Admin MFE port.
EnableHttps bool true --enable-https / -https HTTPS in dev profiles.
UseLocalDb bool true --use-localdb / -ldb LocalDB for dev.
IncludeSampleData bool true --include-sample-data / -sample Sample/demo data.
theme choice Light --theme / -th Light / Dark.
density choice Default --density / -d Layout density.
enableRTL bool false --enable-rtl / -rtl RTL support.
skipRestore bool false --skip-restore / -sr Skip post-scaffold restore.

Examples

dotnet new connectsoft-blazor-mfe -n Contoso.Portal --uikit-adapter Tokens -f net9.0
dotnet new connectsoft-blazor-mfe -h