# python-poetry/cleo

Cleo allows you to create beautiful and testable command-line interfaces.

Repository: https://github.com/python-poetry/cleo
Canonical: https://ross.abutalabs.com/products/cleo
Homepage: https://cleo.readthedocs.io
Language: Python
License: MIT
License Family: permissive
Topics: python, cli, command-line
Last push: 2026-08-03T21:37:13+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 8, longevity 100
- inputs: {"age_days": 4643, "days_push": 30, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1353, forks 97 (observed 2026-08-28T04:04:28.663589+00:00)

## What it is
Cleo is a Python library for building command-line interfaces with declarative commands, arguments, options, and styled terminal output. It is the CLI framework underlying Poetry and emphasizes testable command design.

## Use cases
- build a cli tool in python
- parse command-line arguments and options
- add colored output to terminal commands
- write testable command-line commands
- create multi-command cli applications
- build a cli framework for a python package

## When to choose
- you want a declarative, class-based cli framework in python
- you need styled terminal output with custom color styles
- testability of cli commands is a priority
- you are building tooling in the poetry ecosystem

## When to avoid
- you want a minimal argparse-style standard library solution
- you need a mature, stable api - cleo is being rewritten for 3.0
- you are building guis or web apps rather than clis

## Facets
- artifact type: library
- maturity: active
- function: cli, developer-tools
- domain: developer-tools
- platform: python, cli, cross-platform
- tags: cli-framework, command-line-interface, terminal-output-styling, testable-commands, poetry-ecosystem, command-line

## Member repositories
- python-poetry/cleo (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:28.663589+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-30T04:42:06.948088+00:00, confidence not recorded.
  - readme: https://github.com/python-poetry/cleo (fetched 2026-08-28T04:04:28.663589+00:00, sha ce4f4cbdb703)
  - registry_pypi: https://pypi.org/pypi/cleo/json (fetched 2026-08-29T12:01:06.773855+00:00, sha 0184d864d0b4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
