CLI Tools

Everything you can do with NeoUI from the command line — package management, CSS compilation, the development loop, and what's coming next.

Installing Packages

NeoUI is distributed entirely via NuGet. The primary package includes everything; the others are optional additions.

Styled components (includes Primitives + all icon libraries)

Terminal
$ dotnet add package NeoUI.Blazor --version 3.6.3

Headless primitives only (when building a custom design system)

Terminal
$ dotnet add package NeoUI.Blazor.Primitives --version 3.6.3

Icon libraries (all included transitively with NeoUI.Blazor)

Terminal
$ dotnet add package NeoUI.Icons.Lucide --version 3.6.3
Terminal
$ dotnet add package NeoUI.Icons.Heroicons --version 3.6.3
Terminal
$ dotnet add package NeoUI.Icons.Feather --version 3.6.3

Building Your Project

Standard dotnet commands work as expected. If you have the Tailwind CSS build integration configured in your .csproj, dotnet build automatically runs npm install and npm run build:css before compiling.

Build

Terminal
$ dotnet build

Run with hot reload

Terminal
$ dotnet watch

Publish for production

Terminal
$ dotnet publish -c Release

Tailwind CSS Build

If you have set up the optional Tailwind CSS pipeline (documented in the Theming guide), the following npm commands are available from your Shared project directory:

Install dependencies (first time setup)

Terminal
$ npm install

Compile and minify CSS

Terminal
$ npm run build:css

Watch mode — recompile on every CSS file change

Terminal
$ npx tailwindcss -i ./wwwroot/css/app-input.css -o ./wwwroot/css/app.css --watch

The compiled output is written to wwwroot/css/app.css and referenced in App.razor via @Assets[...].

Useful dotnet Commands

A quick reference for common development tasks.

Command What it does
dotnet new install NeoUI.Blazor.Templates Install the NeoUI project template package from NuGet.
dotnet new neoui -n MyApp Scaffold a new Blazor app pre-wired with NeoUI components.
dotnet new list neoui Verify the NeoUI template is registered.
dotnet new uninstall NeoUI.Blazor.Templates Remove the NeoUI template package.
dotnet build Build the solution. Also triggers npm install + Tailwind CSS compilation if configured.
dotnet watch Run with hot reload. Recompiles and refreshes the browser on file save.
dotnet publish -c Release Publish a production build with optimized assets and fingerprinted URLs.
dotnet add package <name> Add a NuGet package reference to the current project.
dotnet restore Restore NuGet packages without building.
dotnet clean Remove all build output. Useful when CSS or asset changes aren't being picked up.
npm install Install Tailwind CSS devDependencies from package.json (Shared project directory).
npm run build:css Compile and minify Tailwind CSS from app-input.css to app.css.

Project Templates

NEW

The NeoUI template package scaffolds a complete Blazor Web App — sidebar layout, theme switcher, dark mode toggle, Spotlight command palette, and Tailwind CSS v4 — in a single command. Supports Server, WebAssembly, and Auto interactivity modes.

Install the template package (once)

Terminal
$ dotnet new install NeoUI.Blazor.Templates

Scaffold a new app

Terminal
$ dotnet new neoui -n MyApp

Verify the template is registered

Terminal
$ dotnet new list neoui

Uninstall

Terminal
$ dotnet new uninstall NeoUI.Blazor.Templates

For all template options (--interactivity, --empty, port randomization, and more) see the Project Template docs.

Next Steps

Reconnecting...

Attempting to rejoin the server

Connection Lost

Retrying in seconds

Connection Failed

Failed to rejoin the server.
Please retry or reload the page.

Session Paused

The session has been paused by the server

Resume Failed

Failed to resume the session.
Please reload the page.