Render Interactive Modes in Blazor Web App

1 Sep 20253 minutes to read

This section explains the set of commands used to create a Blazor Web App with various Interactive Render Modes. These commands can be executed via the command prompt (Windows), terminal (macOS), or shell (Linux), allowing you to create Blazor applications using different rendering modes.

If you set the Authentication Type as None and Interactivity location as Per page/component, you need to use the following command.

Interactive Render Mode Command
Server
  • C#
  • dotnet new blazor -o BlazorApp -int Server
    WebAssembly
  • C#
  • dotnet new blazor -o BlazorApp -int WebAssembly
    Auto
  • C#
  • dotnet new blazor -o BlazorApp -int Auto
    None
  • C#
  • dotnet new blazor -o BlazorApp -int None

    If you set the Authentication Type as Individual Accounts and Interactivity location as Per page/component, you need to use the following command.

    Interactive Render Mode Command
    Server
  • C#
  • dotnet new blazor -o BlazorApp -au Individual -int Server
    WebAssembly
  • C#
  • dotnet new blazor -o BlazorApp -au Individual -int WebAssembly
    Auto
  • C#
  • dotnet new blazor -o BlazorApp -au Individual -int Auto
    None
  • C#
  • dotnet new blazor -o BlazorApp -au Individual -int None

    If you set the Authentication Type as Individual Accounts and Interactivity location as Global, you need to use the following command.

    Interactive Render Mode Command
    Server
  • C#
  • dotnet new blazor -o BlazorApp -au Individual -int Server -ai
    WebAssembly
  • C#
  • dotnet new blazor -o BlazorApp -au Individual -int WebAssembly -ai
    Auto
  • C#
  • dotnet new blazor -o BlazorApp -au Individual -int Auto -ai
    None
  • C#
  • dotnet new blazor -o BlazorApp -au Individual -int None -ai

    If you set the Authentication Type as None and Interactivity location as Global, you need to use the following command.

    Interactive Render Mode Command
    Server
  • C#
  • dotnet new blazor -o BlazorApp -int Server-ai
    WebAssembly
  • C#
  • dotnet new blazor -o BlazorApp -int WebAssembly -ai
    Auto
  • C#
  • dotnet new blazor -o BlazorApp8 -int Auto -ai
    None
  • C#
  • dotnet new blazor -o BlazorApp8 -int None -ai

    NOTE

    If you want to see more available templates, you need to run the dotnet new blazor --help or dotnet new blazor -h command.