Installation
Add the admin panel to an ASP.NET Core app
To install StellarAdmin, you need an ASP.NET Core app (MVC, Razor Pages or minimal APIs) running on .NET 10 or later.
Install the packages
Add the StellarAdmin package:
dotnet add package StellarAdminIf you want to use StellarAdmin with EF Core, also add the StellarAdmin.EntityFrameworkCore package:
dotnet add package StellarAdmin.EntityFrameworkCoreRegister StellarAdmin
Call AddStellarAdmin in Program.cs to register the StellarAdmin services.
using StellarAdmin;
builder.Services.AddStellarAdmin(admin =>
{
// Resources and other configuration go here
});Map StellarAdmin
Call MapStellarAdmin to map the StellarAdmin endpoints. StellarAdmin's CSS and scripts are static assets, so your app also needs to serve those. If it doesn't already call MapStaticAssets or UseStaticFiles, add a call to MapStaticAssets:
var app = builder.Build();
app.MapStaticAssets();
app.MapStellarAdmin();
app.Run();Open the admin panel
Run the application and go to /stellaradmin. You will see the admin panel layout with a setup checklist that will help you get started with StellarAdmin.


Changing the path
The admin panel is served at /stellaradmin. To serve it on another path, pass the path to MapStellarAdmin():
app.MapStellarAdmin("/admin");Requiring authorization
By default, anyone who can reach your app can open the admin panel. To restrict access, call RequireAuthorization.
builder.Services.AddStellarAdmin(admin =>
{
admin.RequireAuthorization();
});StellarAdmin plugs in to the standard ASP.NET Core authentication and authorization. See authorization for other options.
Next steps
Add your first resources in the quick start. If something doesn't work, see installation issues.