Advanced CLI
Use the CLI only when manual setup is not enough.
The package-first path is the default. The CLI is for scaffold help on an existing app.
Install or update
dotnet tool install --global AgentBlazor.Cli --version 0.1.0-preview.11
dotnet tool update --global AgentBlazor.Cli --version 0.1.0-preview.11Standard run order
agentblazor init ./MySolution.slnx --host MyBlazorApp
agentblazor scaffold ./MySolution.slnx --host MyBlazorApp --provider openai --diff
agentblazor scaffold ./MySolution.slnx --host MyBlazorApp --provider openai --approve
dotnet restore ./MySolution.slnx --force-evaluate
dotnet build ./MySolution.slnx --no-restore -nologo
agentblazor doctor ./MySolution.slnx --host MyBlazorApp
agentblazor validate ./MySolution.slnx --host MyBlazorAppWhat to pass as the target
- Use
.slnor.slnxwhen the app lives in a larger solution. - Use
.csprojwhen you want to point directly at the host project. - Use
--hostwhen a solution contains more than one project candidate. - For hosted WebAssembly, target the server host project.
Provider flags
agentblazor scaffold ./MySolution.slnx --host MyBlazorApp --provider openai
agentblazor scaffold ./MySolution.slnx --host MyBlazorApp --provider azure-openai
agentblazor scaffold ./MySolution.slnx --host MyBlazorApp --provider ollamaWhat scaffold --diff should tell you
- Which packages will be added.
- Which startup and shell files will be touched.
- Whether the host stays automatic or review-first.
- What still needs manual follow-through.