Skip to content

Command Line Tool - ImportAnalysisTemplate

The command imports analysis template from a file.

Enlight importAnalysisTemplate
--template=<template file>
[ --merge=<mode>]
[ --enableRules=<rules>]
Parameter Description
template Required. Location of the external analysis template file.
enableRules Comma separated list of rules or groups which to be enabled after the template is imported. Use `*’ to enable all rules in the imported template or group name to enable all rules in a group.
merge (Default: None) Template elements which to be merged. The option value can be all, rules or none. Valid values: None, All, Rules.

Merge only rules from external analysis template to the current template:

Enlight importAnalysisTemplate --merge=Rules --template=d:\exported-analysis-template.xml

Merge rules and groups from external analysis template to the current template:

Enlight importAnalysisTemplate --merge=All --template=d:\exported-analysis-template.xml

Replace the current analysis template and activate a set of analysis rules and groups:

Enlight importAnalysisTemplate --enableRules=sa0001,sa0078,sa0099,performance,design --template=d:\exported-analysis-template.xml

Command Line Interface