XrmEmulator.MetadataSync 1.6.0

dotnet tool install --global XrmEmulator.MetadataSync --version 1.6.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local XrmEmulator.MetadataSync --version 1.6.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=XrmEmulator.MetadataSync&version=1.6.0
                    
nuke :add-package XrmEmulator.MetadataSync --version 1.6.0
                    

xrm-metadata-sync

Interactive CLI tool to sync Dataverse metadata into XrmMockup format for use with XrmEmulator.

Install

dotnet tool install --global XrmEmulator.MetadataSync

Usage

xrm-metadata-sync

Or run directly without installing:

dnx XrmEmulator.MetadataSync

The tool will interactively guide you through:

  1. Connection setup - Choose between connection string, client secret, or interactive browser authentication
  2. Solution selection - Pick a Dataverse solution to sync metadata from
  3. Entity selection - Multi-select which entities to include (default XrmMockup entities are always included)
  4. Scope selection - Choose what to sync: entity metadata, plugins, workflows, security roles, option sets, currencies
  5. Output directory - Where to write the metadata files (default: ./Metadata)

CLI Arguments

You can pre-populate connection settings via CLI arguments or user secrets:

xrm-metadata-sync \
  --environment-url https://myorg.crm.dynamics.com \
  --client-id 00000000-0000-0000-0000-000000000000 \
  --client-secret mysecret \
  --tenant-id 00000000-0000-0000-0000-000000000000

Output

The tool produces files in XrmMockup's expected format:

  • Metadata.xml - Serialized entity metadata (DataContractSerializer)
  • Workflows/*.xml - Individual workflow definitions
  • SecurityRoles/*.xml - Individual security role definitions
  • TypeDeclarations.cs - Security role GUID constants
Product Compatible and additional computed target framework versions.
.NET 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.

This package has no dependencies.

Version Downloads Last Updated
1.6.0 135 2/9/2026
1.5.0 112 2/8/2026
1.4.0 113 2/8/2026
1.3.0 123 2/8/2026
1.2.0 109 2/8/2026
1.1.0 116 2/8/2026