◷ Reading Time: 2 minutes
It is possible to execute an existing package profile via the command line. FlexRule Designer accepts some parameters and can build your package from the console command line.
FlexRule.Designer.exe [Project File] -plugin FlexRule.Designer.Deployment.dll -run "build package" -profile [Profile file path] -includeAssemblies -version [Package version] -identifier [Package identifier] -output [Package location to save]
- plugin: This parameter must remain as above FlexRule.Designer.Deployment.dll as we are targeting the publisher plugin.
- run: This parameter is the command that is defined within the plugin. It should remain the same as the above build package
- profile: Defines a Decision Module file relative to the location of your rule project. If multiple Decision Module needs to be added, multiple profile parameters can be used.
- includeAssemblies: ensures all the assemblies in the project will be included in the package.
- version: Defines the package version
- identifier: Defines the package identifier
- output: This is the full path to which the package is saved.
The below command creates a package for our sample XBRL project:
FlexRule.Designer.exe "D:\XBRL Rules\XBRL.frpj" -plugin FlexRule.Designer.Deployment.dll -run "build package" -profile "Publish\XBRL Package.xml" -includeAssemblies -version 1 -identifier "XBRL Validation Rules" -output "d:\XBRL Validation Package.frdp"
The package will be stored at d:\XBRL validation package.frdp