BetterDev.ShadcnBlazor.Cli 1.1.0

dotnet tool install --global BetterDev.ShadcnBlazor.Cli --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local BetterDev.ShadcnBlazor.Cli --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=BetterDev.ShadcnBlazor.Cli&version=1.1.0
                    
nuke :add-package BetterDev.ShadcnBlazor.Cli --version 1.1.0
                    

BetterDev.ShadcnBlazor.Cli ✦

Official CLI tool for scaffolding ShadcnBlazor components directly into your Blazor projects with full source code ownership.

Live Documentation License: MIT


⚡ Installation

Install as a global .NET CLI tool:

dotnet tool install -g BetterDev.ShadcnBlazor.Cli

To update to the latest version:

dotnet tool update -g BetterDev.ShadcnBlazor.Cli

🚀 Usage

1. Initialize a Blazor Project

Run inside your Blazor project folder:

shadcn-blazor init

This fully integrates ShadcnBlazor into your project:

  • Creates Components/UI/ and copies the shared support layer (Cn, variants, services)
  • Copies the compiled stylesheet (wwwroot/shadcn-blazor.css) and JS interop (wwwroot/shadcn-blazor.js) — no Tailwind setup needed
  • Registers DI services (builder.Services.AddShadcnBlazor()) in Program.cs
  • Wires the stylesheet & script into wwwroot/index.html
  • Adds @using ShadcnBlazor to _Imports.razor

The command is idempotent — files that already exist are skipped.


2. List Available Components

shadcn-blazor list

3. Add Components Directly to Your Project

Scaffold pure Razor source code directly into Components/UI/:

# Add specific components
shadcn-blazor add button card dialog tabs toast

# Add all components
shadcn-blazor add --all

📖 Full Documentation & Showcase

👉 https://better-dev-team.github.io/shadcn-blazor/

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.1.0 105 9/4/2026
1.0.2 128 8/13/2026
1.0.1 97 8/13/2026
1.0.0 107 8/13/2026