Piral.Blazor.Cli 0.4.1-preview.7933391150

This is a prerelease version of Piral.Blazor.Cli.
There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Piral.Blazor.Cli --version 0.4.1-preview.7933391150                
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 0.4.1-preview.7933391150                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Piral.Blazor.Cli&version=0.4.1-preview.7933391150&prerelease                
nuke :add-package Piral.Blazor.Cli --version 0.4.1-preview.7933391150                

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. 
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
0.5.0-preview.9323268279 70 5/31/2024
0.5.0-preview.9024802187 64 5/9/2024
0.5.0-preview.8970923590 77 5/6/2024
0.5.0-preview.8961943566 64 5/5/2024
0.5.0-preview.8937540881 35 5/3/2024
0.5.0-preview.8924267614 29 5/2/2024
0.5.0-preview.8924038944 28 5/2/2024
0.5.0-preview.8919570786 53 5/2/2024
0.5.0-preview.8916013860 52 5/1/2024
0.5.0-preview.8870989656 66 4/28/2024
0.5.0-preview.8846899499 74 4/26/2024
0.5.0-preview.8831737080 66 4/25/2024
0.5.0-preview.8817031997 62 4/24/2024
0.5.0-preview.8785877670 65 4/22/2024
0.5.0-preview.8768228498 72 4/20/2024
0.5.0-preview.8766464948 68 4/20/2024
0.5.0-preview.8552466834 66 4/4/2024
0.5.0-preview.8538723932 64 4/3/2024
0.5.0-preview.8538694667 58 4/3/2024
0.5.0-preview.8489808898 70 3/30/2024
0.5.0-preview.8378016864 59 3/21/2024
0.5.0-preview.12163386433 49 12/4/2024
0.5.0-preview.12163052794 51 12/4/2024
0.5.0-preview.10938254736 53 9/19/2024
0.5.0-preview.10937840879 54 9/19/2024
0.5.0-preview.10937538276 57 9/19/2024
0.5.0-preview.10903389206 64 9/17/2024
0.5.0-preview.10301764169 80 8/8/2024
0.4.1 383 2/16/2024
0.4.1-preview.7933391150 68 2/16/2024
0.4.1-preview.7924227833 73 2/16/2024
0.4.1-preview.7923896542 64 2/16/2024
0.4.1-preview.7922609748 66 2/15/2024
0.4.1-preview.7922124111 62 2/15/2024
0.4.1-preview.7921989076 65 2/15/2024
0.4.1-preview.7917520828 76 2/15/2024
0.4.0 216 2/13/2024
0.4.0-preview.7894041735 75 2/13/2024
0.4.0-preview.7889205161 73 2/13/2024
0.4.0-preview.7887825195 73 2/13/2024
0.4.0-preview.7797649507 78 2/6/2024
0.4.0-preview.7797573922 68 2/6/2024
0.4.0-preview.7738700089 72 2/1/2024
0.4.0-preview.7733951421 66 1/31/2024
0.4.0-preview.7647762968 70 1/24/2024
0.4.0-preview.7637863202 59 1/24/2024
0.4.0-preview.7633843794 58 1/24/2024
0.4.0-preview.7633029380 62 1/23/2024
0.4.0-preview.7604871059 67 1/22/2024
0.4.0-preview.7590591848 64 1/20/2024
0.4.0-preview.7583858528 55 1/19/2024
0.4.0-preview.7582739690 62 1/19/2024
0.4.0-preview.7582261330 61 1/19/2024
0.3.0-preview.7581632115 63 1/19/2024
0.3.0-preview.7534719969 64 1/15/2024
0.3.0-preview.7531251966 70 1/15/2024