CodeCharter.Cli
1.7.1
See the version list below for details.
dotnet tool install --global CodeCharter.Cli --version 1.7.1
dotnet new tool-manifest
dotnet tool install --local CodeCharter.Cli --version 1.7.1
#tool dotnet:?package=CodeCharter.Cli&version=1.7.1
nuke :add-package CodeCharter.Cli --version 1.7.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 config add rules path/to/rules # declare a rule directory once
codecharter analyze MyProject.sln
A run reads the rule sources .codecharter/config.yml declares (profiles:,
then rules:) plus any --rules <dir> passed on the command line; nothing is
discovered implicitly.
What it does
analyze— analyze a solution or project and report findings, with CI-friendly exit codes and a--git-refmode that gates only changed lines.validate/test/docs— parse and type-check a.ccrrule, 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, keepcodecharter.lock.jsonin sync, verify the local bundle cache, and upload rule and profile drafts.config— inspect, validate and edit.codecharter/config.yml, including theconfig.local.ymloverlay.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.ccrrules 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 | Versions 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. |
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 |