riddlc - The RIDDL Compiler¶
riddlc is the command-line compiler for RIDDL. It parses, validates, and
transforms RIDDL specifications.
Quick Start¶
# Validate a RIDDL file
riddlc validate mymodel.riddl
# Show help
riddlc help
# Show version
riddlc version
Key Features¶
- Syntax validation - Verify RIDDL files are syntactically correct
- Semantic validation - Check references, types, and containment rules
- BAST serialization - Convert to binary format for faster loading
- Style checking - Optional warnings for convention violations
- Reformatting - Standardize RIDDL source layout
Documentation Generation
Hugo documentation generation and diagram generation have been moved to the riddl-gen repository. Use Synapify for integrated documentation generation with AI assistance.
Documentation¶
| Section | Description |
|---|---|
| Installation | Download or build from source |
| Command Reference | Full command and option documentation |
| Configuration | Using HOCON configuration files |
| Compilation | Understanding the compilation process |
| GitHub Actions | CI/CD integration |
Example Usage¶
Basic Validation¶
Verbose Output with Timing¶
Using Configuration File¶
Generate BAST for Faster Loading¶
Common Workflows¶
Development Cycle¶
- Edit RIDDL source files
- Run
riddlc validateto check for errors - Fix any issues reported
- Repeat
CI/CD Pipeline¶
Using with sbt¶
See sbt-riddl for sbt integration.
Getting Help¶
Build Information¶
Check your installed version:
Output:
[info] About riddlc:
[info] name: riddlc
[info] version: 1.1.2
[info] documentation: https://riddl.tech
[info] copyright: © 2019-2026 Ossum Inc.
[info] licenses: Apache License, Version 2.0
[info] organization: Ossum Inc.
[info] scala version: 3.3.7