Skip to content

Command Line Interface

SQL Enlight provides the Enlight.exe command line tool which can be used to automate the analysis and layout tasks.

Enlight <command> [<parameters>]
ParameterDescription
activateLayoutTemplateActivate layout template with a given name.
analysisContextGenerate database context metadata and output it as a XML file.
analyzeServerRun database analysis and code analysis on SQL Server instance and a Database.
analyzeFilesRun code analysis on SQL files.
layoutReformat SQL files.
exportAnalysisTemplateExport analysis template to a file.
importAnalysisTemplateImport analysis template from file.
licenseActivateActivate license.
licenseCheckCheck license.
licenseDeactivateDeactivate license.
licensePrintPrint license status.
refactorRefactor T-SQL script files using registered code refactorings.
teamSettingsTeam Settings configuration options.
reportAnalysis report transformation using XSLT.
helpDisplay more information on a specific command.
versionDisplay version information.

For information commands and parameters usage, use “Enlight —help”.