# Tyrrrz/CliFx

Class-first framework for building command-line interfaces

Repository: https://github.com/Tyrrrz/CliFx
Canonical: https://ross.abutalabs.com/products/clifx
Homepage: https://nuget.org/packages/CliFx
Language: C#
License: MIT
License Family: permissive
Topics: command-line, cli, terminal, command, dotnet, dotnet-core, dotnet-standard, framework
Last push: 2026-08-01T14:34:11+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 45, longevity 100
- inputs: {"age_days": 2649, "days_push": 32, "days_rel": 152, "gap_med": 323, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1615, forks 66 (observed 2026-08-28T04:05:11.457965+00:00)

## What it is
CliFx is an opinionated, class-first framework for building command-line applications in .NET. It handles argument parsing, command routing, help text generation, and error handling so developers only define commands as classes with attributes.

## Use cases
- build a cli application in c#
- parse command-line arguments in dotnet
- generate help text for cli commands automatically
- create nested command hierarchies for a terminal tool
- make a testable console application
- build an aot-compatible command-line tool

## When to choose
- you want a complete cli framework rather than just an argument parser
- you prefer declarative class-and-attribute command definitions
- you need auto-generated help, routing, and error handling out of the box
- you target .NET Standard 2.0+ or need Native AOT/trimming support

## When to avoid
- you need a low-level argument parser with full manual control
- you're not on the .NET ecosystem
- you dislike opinionated frameworks with implicit conventions
- you object to the project's terms-of-use political statements

## Facets
- artifact type: framework
- maturity: active
- function: cli, web-framework, routing, error-handling, developer-tools
- domain: developer-tools, cross-platform
- platform: dotnet, cross-platform, cli
- tags: argument-parsing, command-line-interface, class-first, help-generation, nuget, csharp, command-line

## Member repositories
- Tyrrrz/CliFx (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:11.457965+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:50:16.597176+00:00, confidence not recorded.
  - readme: https://github.com/Tyrrrz/CliFx (fetched 2026-08-28T04:05:11.457965+00:00, sha 6c3739502d26)
  - homepage: https://nuget.org/packages/CliFx (fetched 2026-08-29T11:22:30.670845+00:00, sha d9bbc88103fd)
  - site_page: https://www.nuget.org/policies/About (fetched 2026-08-29T11:22:30.680290+00:00, sha a113b8a074c9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
