YetAnotherCLISDK.Web 0.0.3

dotnet add package YetAnotherCLISDK.Web --version 0.0.3
                    
NuGet\Install-Package YetAnotherCLISDK.Web -Version 0.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="YetAnotherCLISDK.Web" Version="0.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YetAnotherCLISDK.Web" Version="0.0.3" />
                    
Directory.Packages.props
<PackageReference Include="YetAnotherCLISDK.Web" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add YetAnotherCLISDK.Web --version 0.0.3
                    
#r "nuget: YetAnotherCLISDK.Web, 0.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package YetAnotherCLISDK.Web@0.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=YetAnotherCLISDK.Web&version=0.0.3
                    
Install as a Cake Addin
#tool nuget:?package=YetAnotherCLISDK.Web&version=0.0.3
                    
Install as a Cake Tool

YetAnotherCLISDK.Web

Blazor Server components for YetAnotherCLISDK — bring a terminal-like CLI interface to your web applications.

Renders Panel, Table, Rule, Lists, TreeView, BarChart, ProgressBar, Spinner, and interactive Menu components in the browser, styled as a dark terminal UI, powered by ANSI-to-HTML conversion.


Installation

dotnet add package YetAnotherCLISDK.Web

Setup

1. Add the stylesheet to your _Host.cshtml:

<link href="_content/YetAnotherCLISDK.Web/cli-sdk.css" rel="stylesheet" />

2. Add the namespace to _Imports.razor:

@using YetAnotherCLISDK.Web
@using YetAnotherCLISDK.Web.Components
@using YetAnotherCLISDK.Core

Components

Wrap any component in <div class="cli-terminal"> for the full terminal look.

<CliPanel>

<CliPanel Content="Hello, world!"
          Title="Welcome"
          Border="@BorderStyle.Rounded"
          BorderColor="@(new Style { Foreground = Color.Cyan })" />
Parameter Type Default Description
Content string (required) Text content (supports markup)
Title string? null Optional panel title
Border BorderStyle? null Border style (Single, Double, Rounded, Heavy, Ascii, Dotted)
BorderColor Style? null Border color and style
TitleStyle Style? null Title color and style
PaddingX int 1 Horizontal padding
PaddingY int 0 Vertical padding
Width int? null Fixed width in characters

<CliTable>

<CliTable Title="Markets"
          Border="@BorderStyle.Rounded"
          Columns="@([ ("Pair", Alignment.Left), ("Price", Alignment.Right) ])"
          Rows="@([ ["BTC/USDT", "$67,420"], ["ETH/USDT", "$3,512"] ])" />

<CliRule>

<CliRule Title="Section" RuleStyle="@(new Style { Foreground = Color.DarkCyan })" />

<CliBulletList> / <CliOrderedList>

<CliBulletList Title="Features" Items="@(["Fast", "Colorful", "Interactive"])" />

<CliOrderedList Title="Steps" Items="@(["Install", "Configure", "Ship"])" />

<CliTreeView>

<CliTreeView RootLabel="src" Nodes="@(
[
    new CliTreeNode { Label = "Components", Children =
    [
        new CliTreeNode { Label = "CliPanel.razor" },
        new CliTreeNode { Label = "CliTable.razor" },
    ]},
    new CliTreeNode { Label = "Program.cs" },
])" />

<CliBarChart>

<CliBarChart Title="Portfolio" BarWidth="30" Bars="@(
[
    new CliBar { Label = "BTC", Value = 45.2, Color = Color.Orange },
    new CliBar { Label = "ETH", Value = 28.7, Color = Color.Blue },
])" />

<CliProgressBar>

<CliProgressBar @ref="_bar" Total="100" Value="0" Label="Loading" Width="40" />

@code {
    CliProgressBar? _bar;

    async Task Run() {
        for (int i = 0; i <= 100; i += 5) {
            await _bar!.SetValue(i);
            await Task.Delay(100);
        }
    }
}

<CliSpinner>

<CliSpinner Style="CliSpinner.CliSpinnerStyle.Dots" Label="Processing..." />

Available styles: Dots, Line, Arrow, Clock, Bounce, Pulse


<CliSelectionMenu>

Arrow keys to navigate, Enter to confirm, Escape to cancel.

<CliSelectionMenu Prompt="Choose environment:"
                  Options="@([ new CliMenuOption { Label = "Production" },
                                new CliMenuOption { Label = "Staging", CssColor = "#dcdcaa" } ])"
                  OnSelect="@(val => selected = val)" />

<CliMultiSelectMenu>

Space to toggle, Enter to confirm.

<CliMultiSelectMenu Prompt="Select features:"
                    Options="@([ new CliMenuOption { Label = "Auth" },
                                  new CliMenuOption { Label = "Logging" } ])"
                    OnConfirm="@(vals => selected = vals)" />

Markup

All text content supports the YetAnotherCLISDK markup syntax:

[bold red]Error:[/] Something went wrong.
[green]Success:[/] All done.
[#ff6b6b]Custom hex color[/]
[rgb(78,201,176)]RGB color[/]

Requirements


License

MIT

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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.3 184 3/22/2026
0.0.2 130 3/22/2026
0.0.1 108 3/22/2026