Overview of the Syncfusion® .NET CLI

3 Nov 20268 minutes to read

The Syncfusion® .NET CLI (sfdotnet) is a cross-platform command line tool that creates Blazor projects, manages Syncfusion® Blazor NuGet packages from a terminal. After you install the CLI, you can run sfdotnet with no arguments to open an interactive menu, or run a direct command such as sfdotnet new blazor for scripted, prompt-free creation.

You can use the CLI to perform the following actions:

  • Create a Blazor Web App (Server, WebAssembly, or Auto render mode) or a standalone Blazor WebAssembly app, optionally containing generated Syncfusion® component demo pages. For details, refer to Create a Blazor project.
  • Add, update, list, and search Syncfusion® Blazor NuGet packages in an existing project. For details, refer to Manage packages.
  • Configure an official Syncfusion® Model Context Protocol (MCP) server for AI coding clients. For details, refer to MCP configuration.
  • Install official Syncfusion® component skills for AI agents. For details, refer to AI skills installation.
  • Generate projects for Blazor, .NET MAUI, WPF, WinForms, and WinUI 3.

This documentation covers the Blazor platform.

Prerequisites

The following software is required before you install and use the CLI:

  • A .NET SDK that contains the ASP.NET Core Blazor templates. The CLI creates Blazor projects through the installed official blazor and blazorwasm templates; it does not carry its own copy of those templates.
  • Network access to the configured NuGet sources when restore or build is selected.
    N> The CLI reads each installed template’s help output and offers only the target frameworks the installed template reports. .NET 10 (net10.0) is the default when available.

Syncfusion® packages resolve from the official nuget.org feed, https://api.nuget.org/v3/index.json. Package installs resolve the latest stable release and write a concrete version, never *. Use --version to pin a release.

Installation and setup

The CLI is published as a .NET global tool with the package ID Syncfusion.DotNet.Cli.

  1. Open a terminal and run the following command:
dotnet tool install -g Syncfusion.DotNet.Cli
  1. Verify the installation and print the CLI version.
sfdotnet --version
  1. Add the global tools directory to the PATH environment variable if the sfdotnet command is not found after installation. The .NET global tools are installed in %USERPROFILE%\.dotnet\tools (Windows) or ~/.dotnet/tools (Linux/macOS), and this directory must be on the PATH.

    Environment variable Value
    PATH %USERPROFILE%\.dotnet\tools
  2. Run sfdotnet help for a short command map, or sfdotnet help blazor for the Blazor command map and package aliases.

Help output in the Syncfusion .NET CLI

To update the tool to the latest release, run:

dotnet tool update -g Syncfusion.DotNet.Cli

To remove the tool, run:

dotnet tool uninstall -g Syncfusion.DotNet.Cli

Initialize the CLI

Run sfdotnet in an interactive terminal to open the main menu. The menu shows the current CLI version and groups the available operations.

Syncfusion .NET CLI main menu

Group Operation Command reference
Project creation Create a new project sfdotnet new
Package management Add a package to an existing project sfdotnet add
Package management Update a package in an existing project sfdotnet update
Discovery List available packages sfdotnet list <platform> packages
Discovery List installed packages in an existing project sfdotnet list <platform> installed
Discovery Search for packages sfdotnet search
AI & Skills Setup Model Context Protocol (MCP) sfdotnet mcp init
AI & Skills Add component skills to AI Agent sfdotnet skills install
Help and information View CLI information sfdotnet info
Help and information Show help sfdotnet help
Help and information Exit the interactive session Ctrl+C

The <platform> text is a usage placeholder. Use blazor for Blazor.

Complete direct commands remain usable without opening the menu. --no-interactive disables prompts in any command. Run sfdotnet help blazor to show the Blazor command map and package aliases.

Available commands

Command Purpose For details, refer to
sfdotnet new blazor Create a new Blazor project Create a Blazor project
sfdotnet add blazor <package> Add a Syncfusion® package to an existing project Manage packages
sfdotnet update blazor <package> Update a package in an existing project Manage packages
sfdotnet list blazor packages List available packages in the Blazor package catalog Manage packages
sfdotnet list blazor installed List installed packages in an existing project Manage packages
sfdotnet search blazor <text> Search package aliases, IDs, names, and descriptions Manage packages
sfdotnet mcp init blazor Configure a project-local Syncfusion® MCP client MCP configuration
sfdotnet skills install blazor Install Syncfusion® component skills for AI agents AI skills installation
sfdotnet info Show CLI information  
sfdotnet help blazor Show the Blazor command map and package aliases  
sfdotnet --version Show the CLI version  

Global options

Option Description
-h, --help Show command help
--version Show the CLI version
--interactive Allow interactive prompts (default when stdin is a terminal)
--no-interactive Disable interactive prompts; fail instead of prompting
--json Emit machine-readable output
--verbose Print detailed diagnostic output
--no-color Disable colored output

FAQs

Which platforms does the CLI support?

Blazor, .NET MAUI, WPF, WinForms, and WinUI 3. This documentation covers Blazor.

See also