morphir ir verify
Validate Morphir IR JSON files against official schemas
The Morphir .NET CLI provides powerful command-line tools for working with Morphir IR files, validating schemas, and managing Morphir projects.
(Future commands will be documented here)
The Morphir .NET CLI is distributed as a .NET tool. Install it globally with:
dotnet tool install -g Morphir.CLI
Or locally in a project:
dotnet tool install Morphir.CLI
For help with any command, use the --help flag:
morphir --help
morphir ir --help
morphir ir verify --help
The most common workflow is validating Morphir IR JSON files to ensure they conform to the expected schema:
# Validate a single file with auto-detection
morphir ir verify path/to/morphir-ir.json
# Validate with explicit schema version
morphir ir verify --schema-version 3 path/to/morphir-ir.json
# Get JSON output for CI/CD
morphir ir verify --json path/to/morphir-ir.json
# Quiet mode (only errors)
morphir ir verify --quiet path/to/morphir-ir.json
See the morphir ir verify documentation for complete details.
All Morphir CLI commands use consistent exit codes:
These exit codes are designed for CI/CD integration and scripting.
(Future: Configuration file format and options will be documented here)
See the Troubleshooting Guide for solutions to common issues.
Validate Morphir IR JSON files against official schemas
Solutions to common issues with Morphir .NET CLI
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.