-
Notifications
You must be signed in to change notification settings - Fork 15
DynamicsCrm.DevKit.Cli.json
PhuocLe edited this page Sep 28, 2023
·
5 revisions
DynamicsCrm.DevKit
used DynamicsCrm.DevKit.Cli.json
file as the core of the config tool. With this json
file, you can config then run DynamicsCrm.DevKit.Cli commands for faster deployment.
- servers
- webresources
- datasources
- solutionpackagers
- generators
- downloadwebresources
- downloadreports
- uploadreports
- proxytypes
"servers": [
{
"profile": "DEBUG",
"solution": "???",
"folder": "bin\\Debug",
"includefiles": [
"???.Plugin.*.dll",
"???.Plugin.*.nupkg",
"???.CustomAction.*.dll",
"???.Workflow.*.dll",
"???.CustomApi.*.dll",
"???.DataProvider.*.dll"
],
"excludefiles": [
"???.*.Test.dll"
]
}
]
-
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique name -
solution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to add components to it whencreated
/registered
-
folder
the root folder thatDynamicsCrm.DevKit.Cli
use to find*.dll
,*.nupkg
files -
includefiles
files you want to deploy. You can use*
as a pattern for search current folder,**
for searchcurrent folder
andsub-folder
-
excludefiles
files to be exclude, can use*
and**
"webresources": [
{
"profile": "DEBUG",
"solution": "???",
"rootfolder": "",
"includefiles": [
"css\\**.css",
"entities\\*.js",
"html\\**.html",
"images\\**.png",
"js\\**.js",
"lib\\**.js",
"resources\\*.resx"
],
"excludefiles": [
"test\\**.js"
],
"dependencies": [
{
"webresources": [
"???_/entities/[entity].js"
],
"dependencies": [
"???_/entities/[entity].form.js",
"???_/entities/[entity].webapi.js"
]
},
{
"webresources": [
"???_/entities/[entity].form.js"
],
"dependencies": [
"???_/lib/devkit.js"
]
}
]
}
]
-
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique name -
solution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to add components to it whencreated
/registered
-
rootfolder
the root folderDynamicsCrm.DevKit.Cli
findresource
files -
includefiles
files you want to deploy. You can use*
as a pattern for search current folder,**
for searchcurrent folder
andsub-folder
-
excludefiles
files to be exclude, can use*
and**
-
dependencies
setupwebresources
dependencies.
Tag
[entity]
is aplaceholder
of entity logical name
"datasources": [
{
"profile": "DEBUG",
"solution": "???",
"displayname": "???",
"pluralname": "???",
"name": "???"
}
]
-
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique name -
solution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to add components to it whencreated
/registered
-
displayname
display name of the data source -
pluralname
plural name of the data source -
name
logical name of the data source
"solutionpackagers": [
{
"profile": "Extract-Unmanaged",
"solution": "???",
"rootfolder": "",
"solutiontype": "Unmanaged",
"folder": "???",
"type": "Extract",
"mapfile": ""
},
{
"profile": "Extract-Managed",
"solution": "???",
"rootfolder": "",
"solutiontype": "Managed",
"folder": "???",
"type": "Extract",
"mapfile": ""
},
{
"profile": "Pack-Unmanaged",
"solution": "???",
"rootfolder": "",
"solutiontype": "Unmanaged",
"folder": "???",
"type": "Pack",
"mapfile": ""
},
{
"profile": "Pack-Managed",
"solution": "???",
"rootfolder": "",
"solutiontype": "Managed",
"folder": "???",
"type": "Pack",
"mapfile": ""
}
]
-
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique name -
solution
a validsolution logical name
. This is the solution you want toExtract
/Pack
-
rootfolder
the root folderDynamicsCrm.DevKit.Cli
use to saved files. IfEmpty
,DynamicsCrm.DevKit.Cli
use as current folder when execute -
solutiontype
valid with2
valuesManaged
/Unmanaged
-
folder
the folder name to reference files bysolution packager
-
type
valid with2
valuesExtract
/Pack
-
mapfile
the map file to use with solution packager. Itrelated file path
with therootfolder
"generators": [
{
"profile": "LATEBOUND",
"type": "CSharp",
"rootnamespace": "???",
"rootfolder": "???",
"entities": "folder",
"debug": "?"
},
{
"profile": "JS-FORM",
"type": "JsForm",
"rootnamespace": "???",
"rootfolder": "???",
"entities": "folder",
"debug": "?"
},
{
"profile": "JS-WEBAPI",
"type": "JsWebApi",
"rootnamespace": "???",
"rootfolder": "???",
"entities": "folder",
"debug": "?"
}
]
-
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique name -
type
valid with3
typesCSharp
orJsForm
orJsWebApi
-
rootnamespace
root namespace value to use generator namespace -
rootfolder
the folder to saved the files. IfEmpty
,DynamicsCrm.DevKit.Cli
use as current folder when execute -
entities
valid with3
values-
*
orall
generatorall entities
-
folder
orempty
generatorentities
as the pattern-
*.generated.cs
fortype = "CSharp"
-
*.form.js
fortype = "JsForm"
-
*.webapi.js
fortype = "JsWebApi"
-
-
logicalname1,logicalname2,logicalname3
generator with the matchlogicalname
entity, separator by,
-
-
debug
-
?
use with the value read in the saved file. If not found the file, usetrue
-
true
no action -
false
Uglify
js code files
-
"downloadwebresources": [
{
"profile": "DEBUG",
"solution": "???"
}
]
-
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique name -
solution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to downloadwebresources
files and save to current folder
"downloadreports": [
{
"profile": "DEBUG",
"solution": "???"
}
]
-
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique name -
solution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to downloadreports
files and save to current folder
"uploadreports": [
{
"profile": "DEBUG",
"solution": "???",
"language": [ "???" ]
}
]
-
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique name -
solution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to add components to it whencreated
-
language
a string language. E.g.:English
"proxytypes": [
{
"profile": "ALL",
"namespace": "???",
"output": "GeneratedCode.cs",
"entities": ""
}
]
-
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique name -
rootnamespace
root namespace value to use generator namespace -
output
output file, save in the current folder whenDynamicsCrm.DevKit.Cli
execute -
entities
-
*
orall
generatorall entities
of the currentconnected
instance -
logicalname1,logicalname2,logicalname3
generator with the matchlogicalname
entity, separator by,
-