Piral.Blazor.Cli 1.0.0

dotnet tool install --global Piral.Blazor.Cli --version 1.0.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 Piral.Blazor.Cli --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Piral.Blazor.Cli&version=1.0.0
                    
nuke :add-package Piral.Blazor.Cli --version 1.0.0
                    

Piral Logo

Piral.Blazor.Cli · GitHub License | GitHub Tag GitHub Issues Gitter Chat

The dotnet tool (CLI) for working with Piral.Blazor.Server-based applications.

Installation

To install the tool globally run the following command:

dotnet tool install --global Piral.Blazor.Cli

This will install the piral-blazor-server tool in the standard binary directory. Now you should be able to use it already.

Running

You can invoke the the tool by running the following command:

piral-blazor-server <command>

where <command is one of the following commands:

  • create-emulator
  • prefill-cache
  • publish-microfrontend

The following sections go into details on these commands.

Create Emulator

The command piral-blazor-server create-emulator can be used to create an emulator NuGet package for the current Piral.Blazor server (also referred to as app shell).

Example:

piral-blazor-server create-emulator -o dist

Creates an emulator (NuGet package) in the dist directory. The csproj file for the example above is assumed to be in the working directory.

Prefill Cache

The command piral-blazor-server prefill-cache can be used to prefill the cache. This is useful when you want to operate on a static / pre-configured set of micro frontends. Also, it helps to improve the startup performance. Usually, this command would be used in a CI/CD pipeline, i.e., before the server is actually started or run somewhere.

Example:

piral-blazor-server prefill-cache --environment Production --source ./App --output ./App/.cache

Prefills the cache using the appsettings.Production.json and appsettings.json files from the App subdirectory of the current working directory. Puts the files in the App/.cache directory.

Publish Micro Frontend

The command piral-blazor-server publish-microfrontend can be used to build and publish a micro frontend. This builds, packs, and publishes the micro frontend as a NuGet package.

Example:

piral-blazor-server publish-microfrontend --source ./SomeMf --url https://feed.piral.cloud/api/v1/nuget/myfeed --key abcdef1234

Builds, packs, and publishes the project found in the SomeMf directory of the current working directory. Uses the given URL as NuGet feed. The authentication is based on the provided key.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.0.0 381 5/3/2025
1.0.0-preview.15032838973 303 5/14/2025
1.0.0-preview.14879604889 280 5/7/2025
1.0.0-preview.14814030658 140 5/3/2025
1.0.0-preview.14813943958 134 5/3/2025
0.5.1 322 4/13/2025
0.5.1-preview.14430174911 272 4/13/2025
0.5.1-preview.14402538938 216 4/11/2025
0.5.0 297 3/27/2025
0.5.0-preview.14111244135 203 3/27/2025
0.5.0-preview.14111107440 180 3/27/2025
0.5.0-preview.13980934142 243 3/20/2025
0.5.0-preview.13975780120 201 3/20/2025
0.5.0-preview.13859826695 185 3/14/2025
0.5.0-preview.12163386433 150 12/4/2024
0.5.0-preview.12163052794 141 12/4/2024
0.5.0-preview.10938254736 156 9/19/2024
0.5.0-preview.10937840879 185 9/19/2024
0.5.0-preview.10937538276 164 9/19/2024
0.5.0-preview.10903389206 159 9/17/2024
Loading failed