scitools.com

← All und commands

und is the command-line interface to Understand — script project creation, analysis, CodeCheck, metrics, and reports, locally or in CI.

und import

imports project settings or arches or baselines

The import command can be run in three main ways:

1) Import Project Settings

This is the default. It overrides all the settings, including files in the database to match the settings in the XML file. In general, this is used when creating a new database. The command could look like this

und create import settings.xml myNewProject.und
und -db newProject.und import settings.xml (If project already exists)
import settings.xml (Interactive Mode)

2) Import Architectures

This imports architectures into the project. It is invoked using the -arch switch. It could look like this

und import -arch myArch.xml myProject.und
import -arch myArch.xml (Interactive Mode)

3) Import Baselines

This imports a baseline codecheck file into the project. It is invoked using the -baseline switch. It could look like this

und import -baseline path/to/results.sarif myProject.und