CodeCharter.Cli 1.5.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global CodeCharter.Cli --version 1.5.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local CodeCharter.Cli --version 1.5.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CodeCharter.Cli&version=1.5.1
                    
nuke :add-package CodeCharter.Cli --version 1.5.1
                    

CodeCharter CLI

Deterministic code quality analysis for .NET, built on Roslyn. Write rules in a LINQ-like DSL, store them as .ccr files, and run them from the command line, in CI, or from your editor.

Installed as a .NET global tool, the command is codecharter:

dotnet tool install --global CodeCharter.Cli
codecharter analyze MyProject.sln --rules path/to/rules

What it does

  • analyze — analyze a solution or project and report findings, with CI-friendly exit codes and a --git-ref mode that gates only changed lines.
  • validate / test / docs — parse and type-check a .ccr rule, run its spec (hit/miss cases), and read the rule-authoring documentation offline.
  • restore / update / verify / push — resolve versioned rule profiles against the CodeCharter portal, keep codecharter.lock.json in sync, verify the local bundle cache, and upload rule and profile drafts.
  • config — inspect, validate and edit .codecharter/config.yml, including the config.local.yml overlay.
  • coverage — run tests with coverage collection and gate on a minimum line-coverage percentage.
  • mcp / install — run the CodeCharter MCP server (Model Context Protocol) and register it with an AI coding tool, so analysis is available on demand.
  • lsp / config-lsp — language servers for .ccr rules and for .codecharter/config.yml.
  • auth / login / logout — manage the credentials stored on this machine.

Run codecharter --help or codecharter <command> --help for the full surface.

Runtime requirements

This tool is part of a commercial product. Installing the package does not grant a usage right. A valid CodeCharter license or API key is required at runtime; without it the CLI will not perform analysis.

See https://codecharter.tools for documentation, and https://codecharter.tools/docs/cli/license for how to obtain a license and configure it.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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 was computed.  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.8.2 116 11/19/2026
1.8.1 108 11/15/2026
1.8.0 120 11/14/2026
1.7.1 114 11/12/2026
1.7.0 573 11/9/2026
1.6.7 187 9/28/2026
1.6.6 123 9/28/2026
1.6.5 122 9/26/2026
1.6.4 5,991 9/26/2026
1.6.3 2,564 9/8/2026
1.6.2 338 9/6/2026
1.6.1 322 9/4/2026
1.6.0 183 9/4/2026
1.5.6 218 9/2/2026
1.5.5 369 8/31/2026
1.5.4 176 8/31/2026
1.5.3 225 8/27/2026
1.5.2 307 8/25/2026
1.5.1 137 8/25/2026
1.5.0 147 8/24/2026
Loading failed