Blazorise 2.0 Migration CLI

The Blazorise Migrator is a command-line tool that helps you safely and predictably upgrade existing projects to Blazorise 2.0.

It analyzes your solution or project, reports the required changes, and can automatically apply them when you are ready. You stay in control at every step.

When to Use

Use the Blazorise Migrator when upgrading an existing application from Blazorise 1.x to 2.0.

  • You are updating package references to Blazorise 2.0.
  • Your project uses components, parameters, or APIs that changed in 2.0.
  • You want a guided, reviewable upgrade process with minimal manual changes.

The migrator is not required for new projects created with Blazorise 2.0 templates.

Installation

Install the migrator as a global .NET tool from NuGet.
dotnet tool install -g Blazorise.Migrator --prerelease

Verify installation

Confirm that the tool is available on your system path.
blazorise-migrate --version

Recommended workflow

Follow this workflow to ensure a safe and reviewable migration.
  1. Run analyze to understand which projects and files will be affected.
  2. Use --json to save the analysis report for later review or sharing.
  3. Run migrate with --dry-run to preview all file changes.
  4. Re-run migrate with --backup to apply changes and keep .bak copies.

Analyze

Inspect your solution

Analyze a solution or project to determine required Blazorise 2.0 migration changes.

The analyze command always runs in dry-run mode and never modifies files. It reports all detected migration actions before any changes are applied.

If --path is omitted, the current directory is used. You may specify a folder, .sln, .slnx, or .csproj.

blazorise-migrate analyze [--path <path>] [--json <file>] [--all-projects] [--verbose]

Migrate

Apply changes

Apply required Blazorise 2.0 migration changes to eligible projects.

The migrate command updates projects that reference Blazorise packages. Use --dry-run to preview changes and --backup to preserve original files.

If --path is omitted, the current directory is used.

No files are modified unless the migrate command is executed without --dry-run.

blazorise-migrate migrate [--path <path>] [--dry-run] [--backup] [--all-projects] [--verbose]

Command options

Analyze options

NameDefaultType
--path <path>current directorystring

Path to a folder, .sln, .slnx, or .csproj.

--json <file>nonestring

Writes the analysis report to the specified file.

--all-projectsfalsebool

Scan all projects under the path, even if they do not reference Blazorise packages.

--verbosefalsebool

Output detailed diagnostics during analysis.

Migrate options

NameDefaultType
--path <path>current directorystring

Path to a folder, .sln, .slnx, or .csproj.

--dry-runfalsebool

Preview all changes without modifying files.

--backupfalsebool

Create .bak files before applying changes.

--all-projectsfalsebool

Scan all projects under the path, regardless of Blazorise references.

--verbosefalsebool

Output detailed diagnostics during migration.

Global options

NameType
--helpflag

Display command help information.

--versionflag

Display the installed tool version.

On this page