SplatDev.Umbraco.Plugins.Schema2Yaml 2.0.5

dotnet add package SplatDev.Umbraco.Plugins.Schema2Yaml --version 2.0.5
                    
NuGet\Install-Package SplatDev.Umbraco.Plugins.Schema2Yaml -Version 2.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SplatDev.Umbraco.Plugins.Schema2Yaml" Version="2.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SplatDev.Umbraco.Plugins.Schema2Yaml" Version="2.0.5" />
                    
Directory.Packages.props
<PackageReference Include="SplatDev.Umbraco.Plugins.Schema2Yaml" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SplatDev.Umbraco.Plugins.Schema2Yaml --version 2.0.5
                    
#r "nuget: SplatDev.Umbraco.Plugins.Schema2Yaml, 2.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SplatDev.Umbraco.Plugins.Schema2Yaml@2.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SplatDev.Umbraco.Plugins.Schema2Yaml&version=2.0.5
                    
Install as a Cake Addin
#tool nuget:?package=SplatDev.Umbraco.Plugins.Schema2Yaml&version=2.0.5
                    
Install as a Cake Tool

SplatDev.Umbraco.Plugins.Schema2Yaml

NuGet NuGet Downloads CI License: MIT

A migration and Infrastructure-as-Code tool for Umbraco 13–17 that exports your entire Umbraco site structure to YAML format. Export once, version-control it, and import anywhere using the companion SplatDev.Umbraco.Plugins.Yaml2Schema plugin.

Umbraco 13 users: install v1.x of this package.

Perfect for:

  • Migrating between Umbraco versions (14 → 15 → 16 → 17)
  • Site cloning and environment bootstrapping
  • Version control of your Umbraco structure
  • Backup and documentation
  • Team collaboration with declarative site definitions

Umbraco Version Compatibility

Umbraco .NET Dashboard NuGet package
13.x net8.0 AngularJS dashboard v1.x
14.x net8.0 Lit web component v2.x (latest)
15.x net9.0 Lit web component v2.x (latest)
16.x net9.0 Lit web component v2.x (latest)
17.x net10.0 Lit web component v2.x (latest)

The v2.x NuGet package ships all three TFMs (net8.0 / net9.0 / net10.0) in a single package — NuGet automatically selects the right one at install time.


Features

Complete Schema Export

  • DataTypes — Property editors with full configuration
  • DocumentTypes — Content types with all properties, tabs, compositions, and templates
  • Media Types — Media types with properties and folder structure
  • Templates — Razor templates with full content
  • Languages — Multi-language configuration
  • Dictionary Items — Translations for all languages with parent-child hierarchy

Content & Media Export

  • Content — All content nodes with properties, sort order, and published state
  • Media — Media items with automatic file download to local folder
  • Media Files — Physical files downloaded and organized in Umbraco folder structure

User Management Export

  • Members — Member accounts with properties and groups (passwords excluded)
  • Users — Back-office users with roles (opt-in via config, passwords excluded)

Export Features

  • 📦 Single ZIP Download — All YAML + media bundled in one archive
  • 📊 Export Statistics — Live counts per entity type with duration
  • 🖥️ Dashboard UI — Settings section dashboard (AngularJS for Umbraco 13, Lit web component for Umbraco 14–17)
  • 🔄 Version Detection — Automatic API compatibility for Umbraco 13–17
  • 📁 Folder Structure — Media files maintain Umbraco's original folder hierarchy

Installation

dotnet add package SplatDev.Umbraco.Plugins.Schema2Yaml

Or via NuGet Package Manager:

Install-Package SplatDev.Umbraco.Plugins.Schema2Yaml

No further registration is required — the plugin self-registers via Schema2YamlComposer on startup and the dashboard appears automatically in the Settings section.


Usage

  1. Navigate to the Settings section in the Umbraco back-office
  2. Click the Schema Export dashboard tab
  3. Click Export to YAML to generate YAML from your current site
  4. Review the export statistics and YAML preview
  5. Click Download YAML to save as a single file, or
  6. Click Download ZIP to get YAML + all media files bundled together

The ZIP archive structure:

umbraco-export.zip
├── umbraco.yml           # Complete schema + content file
└── media/                 # Media files in Umbraco folder structure
    ├── images/
    │   └── logo.png
    └── documents/
        └── brochure.pdf

Via API (Programmatic)

using SplatDev.Umbraco.Plugins.Schema2Yaml.Services;

public class MyController : Controller
{
    private readonly ISchemaExportService _exportService;

    public MyController(ISchemaExportService exportService)
    {
        _exportService = exportService;
    }

    public async Task<IActionResult> ExportSchema()
    {
        // Export to YAML string
        var yaml = await _exportService.ExportToYamlAsync();

        // Export to file on disk
        await _exportService.ExportToFileAsync("exports/umbraco.yml");

        // Export to ZIP with media files
        var zipBytes = await _exportService.ExportToZipAsync();
        return File(zipBytes, "application/zip", "umbraco-export.zip");
    }
}

REST API Endpoints

The plugin exposes authenticated endpoints under /umbraco/api/SchemaExport/:

Method Endpoint Description
GET /Export Export and return { yaml, statistics } as JSON
GET /DownloadYaml Stream YAML as a file download
GET /DownloadZip Stream ZIP (YAML + media) as a file download
GET /Statistics Return statistics from the last export

All endpoints require the Settings section access policy.

Configuration

Override defaults in appsettings.json:

{
  "UmbracoSchema2Yaml": {
    "ExportPath": "exports/umbraco.yml",
    "IncludeMedia": true,
    "MediaPath": "exports/media",
    "IncludeContent": true,
    "IncludeMembers": true,
    "IncludeUsers": false,
    "CompressYaml": false,
    "MaxHierarchyDepth": 50
  }
}
Setting Default Description
ExportPath exports/umbraco.yml Default YAML export file path
IncludeMedia true Include media items and file downloads
MediaPath exports/media Media files download location
IncludeContent true Include content nodes
IncludeMembers true Include member accounts
IncludeUsers false Include back-office users (security consideration)
CompressYaml false Minimise YAML output
MaxHierarchyDepth 50 Max depth for content/media tree traversal

Generated YAML Structure

umbraco:
  languages:
    - isoCode: en-US
      cultureName: English (United States)
      isDefault: true
      isMandatory: true

  dataTypes:
    - alias: pageTitle
      name: Page Title
      editorUiAlias: Umbraco.TextBox
      config:
        maxLength: 100

  documentTypes:
    - alias: homePage
      name: Home Page
      icon: icon-home
      allowedAsRoot: true
      allowedTemplates:
        - homePage
      defaultTemplate: homePage
      tabs:
        - name: Content
          properties:
            - alias: pageTitle
              name: Page Title
              dataType: Page Title
              mandatory: true

  templates:
    - alias: homePage
      name: Home Page
      content: |
        @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage
        @{ Layout = "_Layout.cshtml"; }
        <h1>@Model.Value("pageTitle")</h1>

  content:
    - name: Home
      documentType: homePage
      template: homePage
      published: true
      properties:
        pageTitle: Welcome to My Site

  dictionaryItems:
    - key: Welcome
      translations:
        en-US: Welcome
        es-ES: Bienvenido

  members:
    - name: John Doe
      email: john@example.com
      username: johndoe
      memberType: Member
      isApproved: true

Migration Workflow

Source Site (Umbraco 13–17)
       │
       ▼  Schema2Yaml (this plugin)
  umbraco.yml + media files
       │
       ▼  Git / file transfer
Target Site (Umbraco 13–17)
       │
       ▼  Yaml2Schema companion plugin
  Replicated Site Structure

What transfers

✅ All structure (types, templates, languages)
✅ All content and media
✅ Property values and data type configurations
✅ Parent-child relationships and sort order
✅ Multi-language content
✅ Dictionary translations

What doesn't transfer

❌ User/member passwords (require reset on import)
❌ Package-specific data (packages must be reinstalled)
❌ Database IDs (new GUIDs generated on import)
❌ Content version history (only latest published version)


Best Practices

Security

  • ⚠️ Passwords are never exported — members and users require a password reset after import
  • ⚠️ Review before committing — check for sensitive property values before adding YAML to version control
  • Add exports/ to .gitignore — prevent accidental commits of local export files
  • IncludeUsers is off by default — opt in explicitly if you need back-office user export

Performance

  • For large sites (1 000+ content nodes): export may take several minutes
  • Disable media export for schema-only exports: "IncludeMedia": false
  • Disable content export for structure-only exports: "IncludeContent": false

Team Collaboration

  • Commit umbraco.yml to version control for shared environments
  • Don't commit media files unless the library is small — use a CDN or shared storage instead
  • Use Yaml2Schema on local/staging environments to bootstrap from the shared YAML

Troubleshooting

Export is slow

Disable media and/or content export in appsettings.json for schema-only exports.

Media files not downloading

Check file permissions on the wwwroot/media folder and verify there is enough disk space for ZIP creation.

YAML import fails on target site

  • Ensure the Yaml2Schema version supports the target Umbraco version
  • Verify all required packages/property editors are installed on the target site

Roadmap

  • Core export — all 10 entity types
  • Dashboard UI — AngularJS (Umbraco 13) + Lit web component (Umbraco 14–17)
  • ZIP download with media
  • Multi-version support (Umbraco 13–17, net8/9/10)
  • CI/CD — GitHub Actions for build, test, and NuGet publish
  • Selective export (choose specific types or subtrees)
  • Incremental exports (only changes since last export)
  • Export scheduling and automation
  • CLI tool for CI/CD pipeline integration
  • Cloud storage export (Azure Blob, S3)

Contributing

  1. Fork the repository at github.com/SplatDev-Ltda/umbraco-yaml
  2. Create a feature branch
  3. Follow the existing code style (see companion Yaml2Schema plugin as baseline)
  4. Add unit tests for new functionality
  5. Submit a pull request

Support


License

MIT — see LICENSE for details.


Developed by SplatDev Ltda

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.5 40 4/7/2026
2.0.4 83 4/7/2026
1.0.12 31 4/7/2026
1.0.11 70 4/7/2026

v2.0.4: Add strict upper-bound version ranges on Umbraco dependencies so NuGet correctly falls back to v1.x on Umbraco 13 projects. Supports Umbraco 14–17. For Umbraco 13, use v1.x.