Corvus.Json.Cli
5.6.1
dotnet tool install --global Corvus.Json.Cli --version 5.6.1
dotnet new tool-manifest
dotnet tool install --local Corvus.Json.Cli --version 5.6.1
#tool dotnet:?package=Corvus.Json.Cli&version=5.6.1
nuke :add-package Corvus.Json.Cli --version 5.6.1
Corvus.Json.Cli
Corvus.Json.Cli installs the corvusjson command-line tool for generating C# code from JSON Schema and query-language expressions.
Install
dotnet tool install --global Corvus.Json.Cli
JSON Schema generation
Generate strongly typed C# from a JSON Schema:
corvusjson jsonschema person.json --rootNamespace MyApp.Models --outputPath Generated/
By default, corvusjson jsonschema uses the V5 engine and generates Corvus.Text.Json types. Use --engine V4 when you explicitly need the immutable Corvus.Json.ExtendedTypes model.
Common options:
| Option | Description |
|---|---|
--rootNamespace |
Namespace for generated types. |
--outputPath |
Directory for generated .cs files. |
--outputRootTypeName |
Name for the root generated type. |
--engine |
Code generation engine: V5 or V4. |
--codeGenerationMode |
TypeGeneration, SchemaEvaluationOnly, or Both. |
--assertFormat |
Enables format assertion. Defaults to true. |
Other commands
The tool also includes commands for configuration-driven generation, validation, and query-language code generation:
corvusjson config myconfig.json
corvusjson validateDocument schema.json data.json
corvusjson jsonata expression.jsonata --rootNamespace MyApp.Expressions --outputPath Generated/
corvusjson jmespath expression.jmespath --rootNamespace MyApp.Expressions --outputPath Generated/
corvusjson jsonlogic rule.json --rootNamespace MyApp.Rules --outputPath Generated/
Legacy package
The older Corvus.Json.CodeGenerator package still provides the generatejsonschematypes command as a compatibility shim. New projects should install this package and use corvusjson.
Documentation
See the CLI Code Generation guide for the full reference.
License
Apache 2.0 - see LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.6.1 | 223 | 9/13/2026 |
| 5.6.0 | 90 | 9/13/2026 |
| 5.5.5 | 226 | 9/9/2026 |
| 5.5.4 | 446 | 9/1/2026 |
| 5.5.3 | 116 | 9/1/2026 |
| 5.5.2 | 148 | 8/30/2026 |
| 5.5.1 | 119 | 8/30/2026 |
| 5.5.0 | 144 | 8/27/2026 |
| 5.4.3 | 173 | 8/26/2026 |
| 5.4.2 | 138 | 8/26/2026 |
| 5.4.1 | 582 | 8/20/2026 |
| 5.4.0 | 123 | 8/19/2026 |
| 5.3.2 | 141 | 8/10/2026 |
| 5.3.1 | 123 | 8/5/2026 |
| 5.3.0 | 175 | 8/5/2026 |
| 5.2.13 | 141 | 8/2/2026 |
| 5.2.12 | 129 | 8/1/2026 |
| 5.2.10 | 180 | 7/26/2026 |
| 5.2.9 | 211 | 7/22/2026 |
| 5.2.7 | 264 | 7/12/2026 |