und is the command-line interface to Understand — script project creation, analysis, CodeCheck, metrics, and reports, locally or in CI.
Run Understand from the command line · Headless workflow: create, analyze, check, report
und arch
manage automatic architectures
Automatic architectures organize project entities into hierarchical groups. This command lists and generates them for a project.
Options
| Option | Description |
|---|---|
-list | List all architectures with active/available status (default) |
-generate <name> | Add and generate an automatic architecture for the project |
-name <name> | Name the generated instance (with -generate) instead of using the architecture's default name |
-options <name=value;...> | Set architecture options (with -generate) as semicolon-separated name=value pairs, using the same option names shown in the GUI. An invalid name lists the architecture's available options. |
Built-in architecture names
| Option | Description |
|---|---|
Directory Structure | Organizes files by directory structure |
Calendar | Organizes files by modification date |
Language | Organizes files by programming language |
Visual Studio | Organizes files by Visual Studio project |
When a database is specified, plugin architectures defined by .upy scripts are also included in the list.
To remove an architecture from a project, use the remove command:
und remove -arch <name> mydb.und
Example usage
und arch -list mydb.und
und arch -generate Language mydb.und
und arch -generate "Visual Studio" mydb.und
und arch -generate "Git Stability" -name "Code Churn" mydb.und
und arch -generate "Git Stability" -options "Date Relative to=Most Recent Commit" mydb.und
und remove -arch Language mydb.und