list-models Command
The list-models command displays all models currently stored in the in-memory model store.
Synopsis
MauroImportExport.Cli list-models [--log-file FILE] [--log-level LEVEL]
Description
The list-models command queries the in-memory model store and displays information about all cached models. For each model, it shows:
- Storage key (used with --input-key in export commands)
- Model label
- Number of data classes
- Import timestamp (UTC)
- Source format
- Schema version
Models are stored in memory during import and convert operations and persist for the lifetime of the CLI process.
Options
- --log-file FILE
- Path to log file
- --log-level LEVEL
- Minimum logging level (Trace, Debug, Information, Warning, Error, Critical, None)
- --help
- Display help information for the list-models command and exit
Exit Status
| Code | Description |
|---|---|
| 0 | Success - model list displayed (even if empty) |
| 130 | Operation cancelled |
Examples
The following examples illustrate the use of the list-models command
List All Stored Models
MauroImportExport.Cli list-models
Example Output
┌─────────┬───────────────────┬─────────┬─────────────────────┬──────────────┬────────────────┐
│ Key │ Label │ Classes │ Imported At │ Source │ Schema Version │
├─────────┼───────────────────┼─────────┼─────────────────────┼──────────────┼────────────────┤
│ vocab1 │ Medical Terms │ 45 │ 2026-01-03 14:23:11 │ skos │ 2.0.0 │
│ abc123 │ Patient Model │ 12 │ 2026-01-03 14:25:33 │ jsonschema │ 2.0.0 │
└─────────┴───────────────────┴─────────┴─────────────────────┴──────────────┴────────────────┘
2 Total
In-Memory Store
The model store is a temporary, process-lifetime cache that:
- Stores models automatically during import and convert operations
- Allows models to be reused without reloading from files
- Uses keys for model identification (auto-generated or user-specified)
- Persists only for the duration of the CLI process
Using Stored Models
Models in the store can be referenced in export commands using the --input-key option:
MauroImportExport.Cli export dita --input-key vocab1 documentation
Notes
Use this command after imports to verify models were stored and to find their keys for subsequent export operations.
The store is cleared when the CLI process exits. For persistent storage, use JSON model files.