-
Notifications
You must be signed in to change notification settings - Fork 16
CLI Commands
PhuocLe edited this page Jun 20, 2026
·
2 revisions
devkit is the command-line tool for DynamicsCrm.DevKit automation. It supports code generation, Dataverse server component deployment, web resource deployment, solution packaging, report operations, data source creation, and MCP server hosting for AI agents.
| Command | Status | Purpose | Documentation |
|---|---|---|---|
generator |
Current | Generate C# late-bound classes, JavaScript form typings, and Web API helper code from Dataverse metadata. | cli-generator |
server |
Current | Deploy plugins, workflows, custom actions, custom APIs, and data providers. | cli-server |
webresource |
Current | Deploy web resources from a profile or deploy one file directly. | cli-webresource |
modelbuilder |
Current | Generate early-bound classes through PAC ModelBuilder. | cli-modelbuilder |
solution |
Current | Extract or pack Dataverse solutions through PAC CLI. | cli-solution |
downloadreport |
Current | Download reports from a Dataverse solution. | cli-downloadreport |
uploadreport |
Current | Upload reports to a Dataverse solution. | cli-uploadreport |
downloadwebresource |
Current | Download web resources from a Dataverse solution. | cli-downloadwebresource |
datasource |
Current | Create virtual table data source records from configuration. | cli-datasource |
mcp |
Current | Start the DevKit MCP server or list/setup MCP tools. | cli-mcp |
plugin |
Deprecated | Compatibility alias for server deployment with plugins profile type. Use server. |
cli-plugin |
workflow |
Deprecated | Compatibility alias for server deployment with workflows profile type. Use server. |
cli-workflow |
dataprovider |
Deprecated | Compatibility alias for server deployment with dataproviders profile type. Use server. |
cli-dataprovider |
proxytype |
Deprecated | Compatibility command that redirects to modelbuilder. |
cli-proxytype |
legacy-solution |
Deprecated | Compatibility command that redirects to solution. |
cli-legacy-solution |
Most commands inherit these options from the shared DevKit command base:
| Option | Description |
|---|---|
--conn |
Dataverse connection string. |
--json |
Path to DynamicsCrm.DevKit.Cli.json. |
--profile |
Profile name inside the JSON section used by the command. |
--auth |
Authentication type: Interactive, DeviceCode, ClientSecret, FromPac, OAuth, or AD. |
--url |
Dataverse environment URL. |
--clientid |
Azure AD application client ID. |
--clientsecret |
Azure AD client secret. |
--pacprofile |
PAC CLI authentication profile name or index. |
--username |
Username for OAuth authentication. |
--password |
Password for OAuth authentication. |
--domain |
Domain for AD/on-premises authentication. |
--sdk-login |
Use the legacy SDK login dialog. |
The CLI still accepts older /type:<task> style invocations and converts them to the current command names where possible. New scripts should use the command names above directly.