Onnxify.CLI
0.3.7
dotnet tool install --global Onnxify.CLI --version 0.3.7
dotnet new tool-manifest
dotnet tool install --local Onnxify.CLI --version 0.3.7
#tool dotnet:?package=Onnxify.CLI&version=0.3.7
nuke :add-package Onnxify.CLI --version 0.3.7
Warning This package is currently in active development and research. Its public API is unstable and may change radically in future versions.
Onnxify.CLI
Onnxify.CLI is the command-line entry point for this repository. It is published as a dotnet tool and exposes the onnxify command.
Install
dotnet tool install --global Onnxify.CLI
What It Provides
- Inspect ONNX model structure from the terminal.
- Compare ONNX model structure from the terminal.
- Inspect safetensors files from the terminal.
- Generate C# project output from an ONNX model.
Example Commands
onnxify --version
onnxify onnx show model.onnx
onnxify onnx show --inputs --outputs --nodes model.onnx
onnxify onnx diff original.onnx exported.onnx
onnxify onnx diff --nodes original.onnx exported.onnx
onnxify onnx inputs-outputs model.onnx
onnxify safetensors show model.safetensors
onnxify project generate model.onnx output-dir
ONNX Commands
Show A Model
onnxify onnx show [options] <model.onnx>
Without options, onnx show prints the default OnnxModel representation. With one or more section options, it prints a compact summary and only the requested sections.
Options:
--inputsincludes graph inputs.--outputsincludes graph outputs.--valuesincludes initializer previews and intermediate value-info entries.--nodesincludes compact node signatures with inputs, outputs, and attributes.
Compare Two Models
onnxify onnx diff [options] <left.onnx> <right.onnx>
onnx diff compares two ONNX models and prints metadata, operator counts, and ordered graph-section differences. Without section options, it includes inputs, outputs, values, and nodes. With section options, it always includes metadata and operator counts, then only the requested graph sections.
Options:
--inputsincludes graph input differences.--outputsincludes graph output differences.--valuesincludes initializer and intermediate value differences.--nodesincludes compact node signature differences.
Show Inputs And Outputs
onnxify onnx io <model.onnx>
onnxify onnx inputs-outputs <model.onnx>
Both forms print the model input and output tensors.
Repository
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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 |
|---|---|---|
| 0.3.7 | 43 | 6/27/2026 |
| 0.3.6 | 54 | 6/26/2026 |
| 0.3.5 | 91 | 6/23/2026 |
| 0.3.4 | 107 | 6/19/2026 |
| 0.3.3 | 106 | 6/15/2026 |
| 0.3.2 | 106 | 6/14/2026 |
| 0.3.1 | 98 | 6/12/2026 |
| 0.3.0 | 104 | 6/11/2026 |
| 0.2.0 | 101 | 6/8/2026 |
| 0.1.4 | 118 | 6/2/2026 |
| 0.1.3 | 108 | 6/1/2026 |
| 0.1.2 | 128 | 5/28/2026 |
| 0.1.1 | 109 | 5/20/2026 |
| 0.1.0 | 115 | 5/18/2026 |
| 0.0.0.15 | 101 | 5/18/2026 |
| 0.0.0.14 | 111 | 5/17/2026 |
| 0.0.0.13 | 105 | 5/14/2026 |
## 0.3.6
- Aligned the package version with the 0.3.6 Onnxify package family release.
## 0.3.5
- Aligned the package version with the 0.3.5 Onnxify package family release.
## 0.3.3
- Picked up the core graph-loading fixes for ONNX models with `None` tensor dimensions and positional empty optional node inputs.
## 0.3.2
- Aligned the package version with the 0.3.2 Onnxify package family release.
- Picked up the core graph-loading fix for ONNX files whose `value_info` repeats graph input or output names.
- Added section filters to `onnxify onnx show`, including `--nodes`, `--values`, `--inputs`, and `--outputs`.
- Added `onnxify onnx diff` with matching section filters for comparing model summaries, nodes, values, inputs, and outputs.
## 0.3.0
- Aligned the package version with the 0.3.0 Onnxify package family release.
- Picked up the TorchSharp `0.107.0` baseline used by the TorchSharp-backed package family.
- Picked up the latest package-family improvements, including expanded ModelGenerator TorchModule import coverage.
## 0.2.0
- Aligned the package version with the 0.2.0 Onnxify package family release.
## 0.1.2
- Aligned the package version with the 0.1.2 Onnxify package family release.
## 0.1.1
- Aligned the package version with the 0.1.1 Onnxify package family release.
## 0.0.0.1
- Initial release