Configures remote deployment import/export in Orchard Core, covering RemoteInstance/RemoteClient setup, API key handling, permissions, and upload validation.
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.
OrchardCore.Deployment.Remote extends the Deployment module with remote
import and export. It registers RemoteInstanceService, RemoteClientService,
an IDeploymentTargetProvider, HTTP client support, admin navigation, and
permissions. Remote deployments should be treated as privileged administrative
operations because they can move site configuration and content.
OrchardCore.Deployment.Remote; its manifest depends on OrchardCore.Deployment.RemoteInstance stores a remote URL, client name, and API key; protect access to all three.RemoteClientService protects client API keys with a time-limited data protector before persistence.RemoteInstanceService stores remote instance data through its document manager.{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Deployment",
"OrchardCore.Deployment.Remote"
],
"disable": []
}
]
}
All remote permissions are static members of OrchardCore.Deployment.DeploymentPermissions and are granted to Administrator by default:
| Member | Name | Purpose |
|---|---|---|
ManageRemoteInstances | Manage remote instances | Create, edit, and delete remote instances (and see their API keys). |
ManageRemoteClients | Manage remote clients | Create, edit, and delete remote clients on the destination. |
ExportRemoteInstances | Export to remote instances | Deploy to a remote instance. |
Export | Export Data | Required to execute any deployment plan, including to a remote instance. |
Grant Export and ExportRemoteInstances without ManageRemoteInstances to operators who may deploy but must not create or reveal credentials.
A destination remote client is represented by RemoteClient:
| Property | Meaning |
|---|---|
Id | Generated identifier. |
ClientName | Name selected by a remote instance. |
ProtectedApiKey | Data-protected API-key bytes. |
A source remote instance is represented by RemoteInstance:
| Property | Meaning |
|---|---|
Name | Admin-facing instance name. |
Url | Remote import endpoint, e.g. https://example.com/OrchardCore.Deployment.Remote/ImportRemoteInstance/Import (add the tenant URL prefix for a non-default tenant). |
ClientName | Destination client identity. |
ApiKey | Credential used against the remote client. |
Create matching credentials at both ends through the remote deployment admin screens. The client name and API key must match. Do not assume a remote instance record itself grants access; the remote site must have a client that accepts its credentials.
The source builds a .zip package and sends it as a multipart POST. The
destination validates the client name and API key, runs the uploaded package
through the file upload security pipeline (FileCreationService, so an
enabled antivirus scanner such as OrchardCore.Antivirus.ClamAV can reject
it), writes it under the tenant-scoped temporary directory
(ITempDirectoryProvider, OrchardCore:TempDirectory:Path), and executes
Recipe.json. A rejected upload returns 400 Bad Request with the reason.
The module exposes import and export controllers plus the remote instance deployment target provider. Prefer the user interface for normal operations so permissions and validation remain in the intended request path.
Use the services only for a focused administrative integration:
using OrchardCore.Deployment.Remote.Services;
namespace MyModule;
public sealed class RemoteDeploymentLookup
{
private readonly RemoteInstanceService _remoteInstanceService;
public RemoteDeploymentLookup(RemoteInstanceService remoteInstanceService)
{
_remoteInstanceService = remoteInstanceService;
}
public Task<OrchardCore.Deployment.Remote.Models.RemoteInstance> GetAsync(string id)
{
return _remoteInstanceService.GetRemoteInstanceAsync(id);
}
}
Use GetRemoteInstanceAsync for cached read-only lookup and
LoadRemoteInstanceAsync when an update is intended. Create and update
operations persist changes through the service instead of modifying a document
list directly.
On failure, verify remote URL reachability (endpoint path and tenant prefix),
TLS certificates, client name, credential pairing, enabled features,
permissions, reverse-proxy limits on multipart POST size, and upload
validation errors in the destination logs. Rotate an API key by
updating both the remote client and every associated remote instance. Treat a
deployment payload as sensitive until its content and target are confirmed.
RemoteInstanceService has distinct read and update APIs. Use
GetRemoteInstanceListAsync and GetRemoteInstanceAsync for cached immutable
reads. Use LoadRemoteInstanceListAsync and LoadRemoteInstanceAsync before
editing data, then use the service create, update, or delete methods to write
through the document manager.
RemoteClientService loads its persisted client list through YesSql and
protects API keys using a data protector scoped to OrchardCore.Deployment.
Call its create or update methods rather than serializing an API key into a
custom content item. This preserves the module's credential-protection design.
Remote deployment transports an Orchard deployment plan; it does not ensure that a target has every required module, feature, content definition, or external dependency. Before export, compare enabled features and package versions. Import foundational definitions first where a plan depends on them, and validate the target in a staging tenant.
Remote deployment is appropriate for deliberate administration. It is not a general-purpose replication protocol or a substitute for database backups.
OrchardCore.Deployment.Remote.Permissions.ManageRemoteInstances, ManageRemoteClients, and Export were removed. Use DeploymentPermissions.ManageRemoteInstances, DeploymentPermissions.ManageRemoteClients, and DeploymentPermissions.ExportRemoteInstances. Stored role permission names are unchanged.ITempDirectoryProvider instead of Path.GetTempPath(); set OrchardCore:TempDirectory:Path when the system temp volume is small.FileCreationService, so file upload security handlers can reject them.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/orchardcore:orchardcore-deployment-remotefrom 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