Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

The izzy CLI

The izzy command creates new apps from templates, sets up IzzyBlazor in an app you already have, and adds blocks and pages to your app. The code it adds is yours to change. You can see every change before izzy makes it.

Install

izzy is a .NET tool, and you can run it two ways. An app that izzy created or set up has its own copy. To create an app or to set up one you have, install izzy for your whole machine.

In an app

izzy new, the dotnet new templates and izzy init each add izzy to the app's tool manifest, .config/dotnet-tools.json, at the version of the IzzyBlazor package the app references. In the app's folder, restore it once, then run it through dotnet:

bash
dotnet tool restore
dotnet izzy list

This needs nothing on your PATH, and everyone who clones the app gets the same izzy. Commit the manifest with your app. Inside such an app, izzy writes the commands it tells you to run as dotnet izzy. The rest of these pages write izzy: put dotnet before it when you use the app's copy.

On your machine

bash
dotnet tool install -g IzzyBlazor.Cli --prerelease

.NET puts the command in ~/.dotnet/tools (%USERPROFILE%\.dotnet\tools on Windows). When the terminal answers "command not found", that folder isn't on your PATH: see izzy: command not found.

Check your setup

bash
izzy doctor

izzy doctor checks what izzy needs on your machine and in the app in this folder: the .NET SDK that folder uses, the app's IzzyBlazor package and its own copy of izzy against the izzy you ran, your account, and the browser for izzy audit. Each line says what it found, and one that is off says how to fix it. --build builds the app too, and --browser names the browser to check. It changes nothing and needs no account. --json prints the checks as data, each with an id, a level (ok, info, warn or fail) and what it found. One that is off has a fix, a sentence that says what to do, and where there is one, the command that does it or the url to get it from.

Update

The CLI has the same version as the library. When a newer release is out, izzy says so in one line after a command. It never updates by itself.

In your app's folder, izzy update moves the app to the newest release. It changes the version of the IzzyBlazor package in your project files and of izzy in the app's tool manifest, then builds the app. Add --dry-run or --diff to see the change first, or --to with a version to pick the release.

bash
izzy update --diff
izzy update

izzy update ends with what the releases in between removed or renamed. Razor takes an old parameter name without a warning, and the page fails when it opens, so read the list.

izzy check lists where your app still uses them, by file, line and column, with what replaces each. It looks in the .razor, .cs and .css files, so a renamed CSS variable shows up too. Add --to with a version to see what moving to it would break.

With IzzyBlazor Pro, izzy upgrade makes the changes. It prints a plan and writes nothing: each rename it would make, and what is left to change by hand, by file and line with what to use instead. Add --diff to see the renames as a diff. When the plan is right, izzy upgrade --apply makes the renames. It starts from the release izzy update moved your app from, kept in .izzy/upgrade.json until nothing is left to change. For an app you updated by hand, name that release with --from.

Before you move, izzy upgrade --plan says what the move takes. It lists your solution's IzzyBlazor packages and izzy, the target framework and packages the release needs, and what you change yourself: global.json, Dockerfile images, the .NET version in CI, and packages released with .NET. It then restores a copy of your projects at the new versions, so a package that doesn't support them shows up first. Your app isn't changed. Add --no-restore to skip the restore.

bash
izzy upgrade --plan
izzy upgrade
izzy upgrade --apply
izzy upgrade --from 0.1.0-alpha.20

Outside an app, or with --global, izzy update updates the izzy on your machine. It runs dotnet tool update -g IzzyBlazor.Cli with the version.

To learn of a release, izzy asks nuget.org for the package's versions, at most once a day, while a command runs. The request doesn't wait for an answer after the command ends, and it says nothing about you or your app. izzy doesn't ask in CI, with --json, or when a script or an editor reads its output. To turn it off, set IZZY_NO_UPDATE_CHECK=1. izzy update itself asks each time, unless you give it --to.

Commands

Commands
CommandWhat it does
izzy new starter|kit <id> -n <name>Creates a new app from a starter or an app kit, as dotnet new does, such as izzy new starter sidebar or izzy new kit crm. See Create an app and Templates.
izzy initSets up IzzyBlazor in an app you already have. See Add to an existing app.
izzy updateMoves your app to the newest IzzyBlazor: the package and the app's izzy. Outside an app, it updates the izzy on your machine. See Update.
izzy checkLists where your app uses what a release renamed or removed, CSS variables too, with what replaces each. See Update.
izzy upgradePlans the changes for what the releases between your app's old version and the new one removed or renamed. With --apply, renames what has a new name. With --plan, says what a move needs before you make it (Pro). See Update.
izzy add block <id>Adds a block to your app, such as izzy add block hero.
izzy add page --name <Name>Adds a new page with its route and title, and with --nav a link in the app's nav. See Pages and components.
izzy add razor --name <Name>Adds a component with no route, with its parameters, and the @using its folder needs. See Pages and components.
izzy add component <Name> --at <file>:<line>Adds a component's usage example from these docs to a page. See Components.
izzy add crud <Model>Creates a page to display, add, edit and delete a model's records.
izzy wrap, unwrap, extractPuts a component around markup, takes one away, or moves markup to a component of its own. A free account. See Wrap, unwrap and extract.
izzy doctorChecks the .NET SDK, your app's versions, your account and the audit's browser, and says how to fix what is off.
izzy loginSigns this machine in to your free IzzyBlazor account, which the app starters, blocks and kits come with. See Your account.
izzy audit <url>Checks a page's accessibility with axe-core in the Chrome or Edge on your machine, and writes a report. See Accessibility audit.
izzy agentSets up your AI assistant in your app. It writes a skill that teaches the assistant to build with IzzyBlazor, and connects the docs server and izzy mcp. See AI assistants.
izzy mcpRuns izzy's commands as tools for your AI assistant. izzy agent adds it to your assistant's settings.
izzy listLists the starters, kits, blocks and components. To list one kind, name it, such as izzy list block or izzy list component.
izzy describe starter|kit|block <id>Lists an item's settings, such as izzy describe block hero. With --json, it also lists the components the item uses, how it works in each render mode, and its accessibility notes.
izzy describe component <Name>Lists a component's options, content, events and examples, such as izzy describe component DataGrid. It describes your app's version of the library.
izzy describe tokensLists the library's CSS variables by group, with their light and dark values and what each is for. With --json, it also lists the internal ones, the old names releases renamed, and IzzyTheme's settings. See Tokens.
izzy add token <name>Adds a color of your own, such as izzy add token promo --light #7c3aed: its variables in wwwroot/theme.css and its Accent and Color members. izzy rename token and izzy remove token change it everywhere your app has it. See Tokens.
izzy capabilities --jsonLists this izzy's commands, their options and the plan each needs, for an editor or agent that drives izzy.
izzy theme varsWrites what IzzyTheme puts in the page's head for the settings you give, such as izzy theme vars --brand "#0f766e" --radius full.
izzy theme sampleWrites a page that shows a theme on the library's components, for the settings izzy theme vars takes, with no app running.

Run izzy add in your app's folder. To see what you can add, run izzy list. To see an item's settings, run izzy describe with its kind and id, such as izzy describe block hero.

The code is yours

izzy adds plain Razor and C# files to your app. Nothing is hidden in a package, so you can change the text, the layout and the code. To see what you can do with it, read the License.

izzy doesn't replace a file unless you add --overwrite. To see what a command would change, add --diff. See Previewing changes.

izzy records each item it adds in .izzy/items.json, with its version and settings. Commit this file with your app.

Next steps

Connection lost

Rejoining the server…