DynamicsCrm.DevKit.Cli.json - phuocle/Dynamics-Crm-DevKit GitHub Wiki
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.
These sections below explain detail hereby:
- servers
- webresources
- datasources
- solutionpackagers
- generators
- downloadwebresources
- downloadreports
- uploadreports
- proxytypes
servers
"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 namesolution
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
filesincludefiles
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
"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 namesolution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to add components to it whencreated
/registered
rootfolder
the root folderDynamicsCrm.DevKit.Cli
findresource
filesincludefiles
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
"datasources": [
{
"profile": "DEBUG",
"solution": "???",
"displayname": "???",
"pluralname": "???",
"name": "???"
}
]
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique namesolution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to add components to it whencreated
/registered
displayname
display name of the data sourcepluralname
plural name of the data sourcename
logical name of the data source
solutionpackagers
"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 namesolution
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 executesolutiontype
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
"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 nametype
valid with3
typesCSharp
orJsForm
orJsWebApi
rootnamespace
root namespace value to use generator namespacerootfolder
the folder to saved the files. IfEmpty
,DynamicsCrm.DevKit.Cli
use as current folder when executeentities
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 actionfalse
Uglify
js code files
downloadwebresources
"downloadwebresources": [
{
"profile": "DEBUG",
"solution": "???"
}
]
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique namesolution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to downloadwebresources
files and save to current folder
downloadreports
"downloadreports": [
{
"profile": "DEBUG",
"solution": "???"
}
]
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique namesolution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to downloadreports
files and save to current folder
uploadreports
"uploadreports": [
{
"profile": "DEBUG",
"solution": "???",
"language": [ "???" ]
}
]
profile
use to pass toDynamicsCrm.DevKit.Cli
argumentprofile
. You can define multi profiles and should be unique namesolution
a validsolution logical name
.DynamicsCrm.DevKit.Cli
use to add components to it whencreated
language
a string language. E.g.:English
proxytypes
"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 namerootnamespace
root namespace value to use generator namespaceoutput
output file, save in the current folder whenDynamicsCrm.DevKit.Cli
executeentities
*
orall
generatorall entities
of the currentconnected
instancelogicalname1,logicalname2,logicalname3
generator with the matchlogicalname
entity, separator by,