# mayuki/Cocona

Micro-framework for .NET console application. Cocona makes it easy and fast to build console applications on .NET.

Repository: https://github.com/mayuki/Cocona
Canonical: https://ross.abutalabs.com/products/cocona
Language: C#
License: MIT
License Family: permissive
Topics: csharp, dotnet, cli, console, dotnet-core, command-line
Archived: true
Last push: 2024-08-13T15:28:41+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2426, "days_push": 750, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3457, forks 96 (observed 2026-08-28T04:08:05.551472+00:00)

## What it is
Cocona is a micro-framework for building .NET console applications with an ASP.NET Core-like minimal API style. It provides UNIX-style command-line option parsing, built-in help, shell completion, and native support for DI, logging, and configuration.

## Use cases
- build a cli tool in c#
- create console application with subcommands on .net
- parse command-line options like unix tools in dotnet
- add shell completion to a dotnet cli app
- build multi-command console app with dependency injection
- generate help text for a command-line tool

## When to choose
- you want an ASP.NET Core-like development experience for console apps
- you need getopt-style option semantics and sub-commands
- you want built-in help, validation, and bash/zsh completion out of the box
- you want DI, logging, and configuration integrated into a CLI

## When to avoid
- you are not on the .NET platform
- you need a zero-dependency minimal CLI parser (though Cocona.Lite exists)
- you only need simple argument parsing without framework features
- the project's release cadence suggests limited recent activity for critical needs

## Facets
- artifact type: framework
- maturity: active
- function: cli, web-framework, developer-tools, routing, middleware
- domain: developer-tools, cross-platform
- platform: dotnet, cross-platform, cli
- tags: csharp, console-applications, minimal-api, dependency-injection, shell-completion, getopt, command-line

## Member repositories
- mayuki/Cocona (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:05.551472+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-29T18:37:29.291909+00:00, confidence not recorded.
  - readme: https://github.com/mayuki/Cocona (fetched 2026-08-28T04:08:05.551472+00:00, sha ec21c4559887)
- Data as of 2026-08-30T08:39:29.467469+00:00.
