Configures unattended Orchard Core installations with AutoSetup, multi-tenant provisioning, Redis distributed locking, and environment variable overrides.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an Orchard Core expert. Generate configuration for unattended installations, multi-tenant auto-provisioning, environment variable overrides, distributed locking, and headless deployment automation.
OrchardCore.AutoSetup module automatically installs the application and tenants on the first request.AddSetupFeatures("OrchardCore.AutoSetup") in the startup project.Tenants array must contain a root tenant with ShellName set to Default.AutoSetupPath is provided, that path must be requested to trigger installation.OrchardCore:AutoSetup (the 3.x name OrchardCore_AutoSetup is deprecated but still read). The package's ConfigurationSchema.json gives IntelliSense and validation for this section in appsettings.json.OrchardCore.Redis.Lock for atomic setup.{ "steps": [...] }.sealed modifier.Add the AutoSetup feature in the startup project's Program.cs:
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddOrchardCms()
.AddSetupFeatures("OrchardCore.AutoSetup");
var app = builder.Build();
app.UseStaticFiles();
app.UseOrchardCore();
app.Run();
| Parameter | Description |
|---|---|
AutoSetupPath | URL path to trigger setup. If empty, setup triggers on first request |
Tenants | Array of tenant configurations to install |
| Parameter | Description |
|---|---|
ShellName | Technical tenant name (use Default for the root tenant) |
SiteName | Display name of the site |
SiteTimeZone | IANA time zone identifier (e.g., America/New_York) |
AdminUsername | Super user username |
AdminEmail | Super user email address |
AdminPassword | Super user password |
DatabaseProvider | Database provider (Sqlite, SqlConnection, Postgres, MySql) |
DatabaseConnectionString | Connection string (empty for Sqlite) |
DatabaseTablePrefix | Table prefix for shared database scenarios |
DatabaseSchema | Database schema, for providers that support schemas |
RecipeName | Setup recipe name (Blog, Agency, SaaS, Blank) |
RequestUrlHost | Tenant host URL |
RequestUrlPrefix | Tenant URL prefix |
FeatureProfile | Feature profile name (requires Feature Profiles feature) |
Configure the default tenant with Sqlite and the Blog recipe:
{
"OrchardCore": {
"AutoSetup": {
"AutoSetupPath": "",
"Tenants": [
{
"ShellName": "Default",
"SiteName": "My Orchard Site",
"SiteTimeZone": "America/New_York",
"AdminUsername": "admin",
"AdminEmail": "[email protected]",
"AdminPassword": "P@ssw0rd123!",
"DatabaseProvider": "Sqlite",
"DatabaseConnectionString": "",
"DatabaseTablePrefix": "",
"RecipeName": "Blog"
}
]
}
}
}
Configure the default tenant and additional tenants:
{
"OrchardCore": {
"AutoSetup": {
"AutoSetupPath": "",
"Tenants": [
{
"ShellName": "Default",
"SiteName": "Main Site",
"SiteTimeZone": "Europe/Amsterdam",
"AdminUsername": "admin",
"AdminEmail": "[email protected]",
"AdminPassword": "OrchardCoreRules1!",
"DatabaseProvider": "Sqlite",
"DatabaseConnectionString": "",
"DatabaseTablePrefix": "",
"RecipeName": "SaaS"
},
{
"ShellName": "ClientTenant",
"SiteName": "Client Portal",
"SiteTimeZone": "Europe/Amsterdam",
"AdminUsername": "clientadmin",
"AdminEmail": "[email protected]",
"AdminPassword": "ClientP@ss1!",
"DatabaseProvider": "Sqlite",
"DatabaseConnectionString": "",
"DatabaseTablePrefix": "client",
"RecipeName": "Agency",
"RequestUrlHost": "",
"RequestUrlPrefix": "client",
"FeatureProfile": "client-profile"
}
]
}
}
}
Use environment variables to avoid committing credentials. Variables use __ as the hierarchy separator and array indices for tenant entries:
OrchardCore__AutoSetup__AutoSetupPath=
OrchardCore__AutoSetup__Tenants__0__ShellName=Default
OrchardCore__AutoSetup__Tenants__0__SiteName=My Site
OrchardCore__AutoSetup__Tenants__0__SiteTimeZone=America/New_York
OrchardCore__AutoSetup__Tenants__0__AdminUsername=admin
[email protected]
OrchardCore__AutoSetup__Tenants__0__AdminPassword=P@ssw0rd123!
OrchardCore__AutoSetup__Tenants__0__DatabaseProvider=Sqlite
OrchardCore__AutoSetup__Tenants__0__DatabaseConnectionString=
OrchardCore__AutoSetup__Tenants__0__DatabaseTablePrefix=
OrchardCore__AutoSetup__Tenants__0__RecipeName=Blog
For additional tenants, increment the index:
OrchardCore__AutoSetup__Tenants__1__ShellName=SecondTenant
OrchardCore__AutoSetup__Tenants__1__SiteName=Second Site
OrchardCore__AutoSetup__Tenants__1__RequestUrlPrefix=second
Store sensitive setup data in user secrets during local development:
cd src/MyOrchardApp
dotnet user-secrets init
dotnet user-secrets set "OrchardCore:AutoSetup:Tenants:0:ShellName" "Default"
dotnet user-secrets set "OrchardCore:AutoSetup:Tenants:0:SiteName" "Dev Site"
dotnet user-secrets set "OrchardCore:AutoSetup:Tenants:0:AdminUsername" "admin"
dotnet user-secrets set "OrchardCore:AutoSetup:Tenants:0:AdminEmail" "[email protected]"
dotnet user-secrets set "OrchardCore:AutoSetup:Tenants:0:AdminPassword" "DevP@ssw0rd1!"
dotnet user-secrets set "OrchardCore:AutoSetup:Tenants:0:DatabaseProvider" "Sqlite"
dotnet user-secrets set "OrchardCore:AutoSetup:Tenants:0:RecipeName" "Blog"
For multi-instance deployments where multiple Orchard Core hosts share the same database, enable Redis-based distributed locking to prevent concurrent setup:
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddOrchardCms()
.AddSetupFeatures("OrchardCore.Redis.Lock", "OrchardCore.AutoSetup");
var app = builder.Build();
app.UseStaticFiles();
app.UseOrchardCore();
app.Run();
Configure the Redis connection string:
{
"OrchardCore": {
"Redis": {
"Configuration": "redis-server:6379,allowAdmin=true"
}
}
}
Or via environment variable:
OrchardCore__Redis__Configuration=redis-server:6379,allowAdmin=true
| Parameter | Description | Default |
|---|---|---|
LockTimeout | Timeout in milliseconds to acquire the lock | 60000 (60s) |
LockExpiration | Expiration in milliseconds of the lock | 60000 (60s) |
Configure via environment variables or appsettings.json:
OrchardCore__AutoSetup__LockOptions__LockTimeout=10000
OrchardCore__AutoSetup__LockOptions__LockExpiration=10000
Use a custom path to control when setup triggers:
{
"OrchardCore": {
"AutoSetup": {
"AutoSetupPath": "/autosetup",
"Tenants": [
{
"ShellName": "Default",
"SiteName": "My Site",
"SiteTimeZone": "UTC",
"AdminUsername": "admin",
"AdminEmail": "[email protected]",
"AdminPassword": "P@ssw0rd123!",
"DatabaseProvider": "Sqlite",
"RecipeName": "Blog"
}
]
}
}
}
Trigger installation by visiting:
/autosetup — installs the Default tenant/tenant-prefix/autosetup — installs a tenant with that URL prefix{
"OrchardCore": {
"AutoSetup": {
"AutoSetupPath": "",
"Tenants": [
{
"ShellName": "Default",
"SiteName": "Production Site",
"SiteTimeZone": "America/New_York",
"AdminUsername": "admin",
"AdminEmail": "[email protected]",
"AdminPassword": "Pr0dP@ssw0rd!",
"DatabaseProvider": "SqlConnection",
"DatabaseConnectionString": "Server=db-server;Database=OrchardMain;User Id=sa;Password=DbP@ss;",
"DatabaseTablePrefix": "Main",
"RecipeName": "SaaS"
},
{
"ShellName": "ClientA",
"SiteName": "Client A Portal",
"SiteTimeZone": "America/Chicago",
"AdminUsername": "clienta",
"AdminEmail": "[email protected]",
"AdminPassword": "Cl1entAP@ss!",
"DatabaseProvider": "SqlConnection",
"DatabaseConnectionString": "Server=db-server;Database=OrchardMain;User Id=sa;Password=DbP@ss;",
"DatabaseTablePrefix": "ClientA",
"RecipeName": "Agency",
"RequestUrlPrefix": "clienta"
}
]
}
}
}
OrchardCore:OrchardCore_AutoSetup to OrchardCore:AutoSetup, environment variables OrchardCore__OrchardCore_AutoSetup__* to OrchardCore__AutoSetup__*, and user secrets keys accordingly. When both names define a value, the new name wins, and a Tenants array under the new name replaces the old one.OrchardCore_Redis to Redis (OrchardCore__Redis__Configuration) for the Redis lock.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/orchardcore:orchardcore-auto-setupfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard.Other plugins' skills for the same job