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.
dotnet-morphir)morphir-mck entry pointmorphir-mck, with the same argumentsThese migration commands are not yet implemented.
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.
The configuration guide distinguishes the compatibility TOML cache loader from the additive shared configuration and project system.
The morphir config read commands inspect effective/scoped values, source reports and redacted explanations. JSON output follows the published schema; success, missing keys and usage/loading failures use exit codes 0/1/2. Shared config set/unset editing, project migrate and bounded workspace migrate are available. Start with the workspace configuration walkthrough.
See the Troubleshooting Guide for solutions to common issues.
Validate Morphir IR JSON files against official schemas
Commands for managing Morphir distributions, tools, and extensions.
Inspect and edit Morphir configuration through shared services
Migration of one classic morphir-elm project to the newer Morphir project system
Preview and apply a loss-checked migration from classic morphir.json to TOML
Bounded adoption of classic projects into a Morphir workspace
Preview and apply bounded workspace adoption with per-project loss checks and recoverable writes
Run the separately installed Morphir Compatibility Kit, morphir-mck
Report whether this host can run WASM extensions, with its engine, profiles and bounds, or the reason it cannot
Experimental and internal: run the crafted WASM host cases against a host’s worker mode, and check the report
Set up the Morphir toolchain with morphirup and run it, then the command reference
Experimental and internal: serve one WASM extension module over stdio for a conformance runner
Solutions to common issues with Morphir .NET CLI
Compile source code to Morphir IR
What the extension installer currently implements and what remains
Generate target artifacts from a Morphir model
Check a Morphir model with the built-in analyzers
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.