Reihitsu.Cli
0.21.0
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global Reihitsu.Cli --version 0.21.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Reihitsu.Cli --version 0.21.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Reihitsu.Cli&version=0.21.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Reihitsu.Cli --version 0.21.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Reihitsu.Cli
A command-line formatting tool for C# source files, powered by the Reihitsu formatter engine.
Installation
dotnet tool install -g Reihitsu.Cli
Usage
reihitsu-format [options] [<paths>...]
Arguments
| Argument | Description |
|---|---|
<paths> |
One or more files or directories to format. Defaults to the current directory if omitted. |
Options
| Option | Description |
|---|---|
--check |
Check if files are formatted correctly. Does not write changes. Returns exit code 1 if formatting is needed. |
--dry-run |
Show what would change without applying any modifications. |
--verbose |
Show detailed output for each file. |
--help |
Show help message. |
Exit Codes
| Code | Meaning |
|---|---|
0 |
Success — all files are formatted correctly. |
1 |
Formatting needed (when using --check). |
2 |
Error occurred. |
Examples
Format all C# files in the current directory:
reihitsu-format
Format a specific file:
reihitsu-format src/MyClass.cs
Check if files are properly formatted (useful for CI):
reihitsu-format --check src/
Preview changes without applying them:
reihitsu-format --dry-run src/
Show detailed output:
reihitsu-format --verbose src/
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-beta5 | 96 | 7/5/2026 |
| 1.0.0-beta4 | 102 | 6/29/2026 |
| 1.0.0-beta3 | 108 | 6/21/2026 |
| 1.0.0-beta2 | 210 | 6/17/2026 |
| 1.0.0-beta1 | 106 | 5/31/2026 |
| 0.21.0 | 215 | 5/17/2026 |
| 0.20.0 | 114 | 5/14/2026 |
| 0.19.2 | 103 | 5/3/2026 |
| 0.19.1 | 103 | 5/2/2026 |
| 0.19.0 | 97 | 5/1/2026 |
| 0.18.0 | 103 | 5/1/2026 |
| 0.17.1 | 121 | 4/26/2026 |
| 0.17.0 | 112 | 4/25/2026 |
| 0.16.0 | 114 | 4/19/2026 |
| 0.15.0 | 114 | 4/13/2026 |