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
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package BetterDev.ShadcnBlazor.Cli --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BetterDev.ShadcnBlazor.Cli ✦
Official CLI tool for scaffolding ShadcnBlazor components directly into your Blazor projects with full source code ownership.
⚡ 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()) inProgram.cs - Wires the stylesheet & script into
wwwroot/index.html - Adds
@using ShadcnBlazorto_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
| Product | Versions 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.