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
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package XrmEmulator.MetadataSync --version 1.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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:
- Connection setup - Choose between connection string, client secret, or interactive browser authentication
- Solution selection - Pick a Dataverse solution to sync metadata from
- Entity selection - Multi-select which entities to include (default XrmMockup entities are always included)
- Scope selection - Choose what to sync: entity metadata, plugins, workflows, security roles, option sets, currencies
- 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 definitionsSecurityRoles/*.xml- Individual security role definitionsTypeDeclarations.cs- Security role GUID constants
| Product | Versions 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.