CodeCharter.Cli
1.6.6
See the version list below for details.
dotnet tool install --global CodeCharter.Cli --version 1.6.6
dotnet new tool-manifest
dotnet tool install --local CodeCharter.Cli --version 1.6.6
#tool dotnet:?package=CodeCharter.Cli&version=1.6.6
nuke :add-package CodeCharter.Cli --version 1.6.6
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.6.7 | 145 | 9/28/2026 |
| 1.6.6 | 98 | 9/28/2026 |
| 1.6.5 | 105 | 9/26/2026 |
| 1.6.4 | 2,382 | 9/26/2026 |
| 1.6.3 | 2,553 | 9/8/2026 |
| 1.6.2 | 326 | 9/6/2026 |
| 1.6.1 | 305 | 9/4/2026 |
| 1.6.0 | 166 | 9/4/2026 |
| 1.5.6 | 203 | 9/2/2026 |
| 1.5.5 | 356 | 8/31/2026 |
| 1.5.4 | 166 | 8/31/2026 |
| 1.5.3 | 212 | 8/27/2026 |
| 1.5.2 | 290 | 8/25/2026 |
| 1.5.1 | 124 | 8/25/2026 |
| 1.5.0 | 133 | 8/24/2026 |
| 1.4.11 | 1,067 | 8/9/2026 |
| 1.4.10 | 125 | 8/8/2026 |
| 1.4.9 | 126 | 8/3/2026 |
| 1.4.8 | 134 | 8/3/2026 |
| 1.4.7 | 133 | 8/2/2026 |