# citty: 6.5 out of 10

Reasonable, with limits. 8th of 10 in [CLI frameworks and prompts](https://elestia.ai/opensource/cli/index.md).

citty is UnJS's small, zero-dependency, TypeScript-first builder for command-line argument parsing and subcommands. The Nuxt CLI and other UnJS tools use it. It is a sound pick for simple to moderate TypeScript CLIs. It is still pre-1.0 (v0.2.2), has a backlog of open issues and PRs, and lacks shell completions and prompts. Commander remains the safer general default.

**Best for:** TypeScript developers building small to mid-sized ESM CLIs who want typed args and lazy subcommands without dependencies, especially in the UnJS or Nuxt ecosystem.

## Scores

- **Overall: 6.5** (likely 5.5 to 7.5)
  - Claude Opus 5.5 (6.0): It is a clean, typed, dependency-free argument parser and a reasonable choice for UnJS-style TypeScript CLIs. It is still 0.x, misses completions and prompts, and has a growing PR backlog. Commander does the same job more completely with a longer record, and CAC is a similar lightweight peer with more direct use.
  - GPT-6.2 Sol (7.0): Citty is a good choice for a small TypeScript CLI when inferred types, lazy commands, and zero runtime dependencies matter. Commander.js is a stronger general default for complex option rules, and Yargs is a better fit when built-in shell completion matters. The release gap and open dispatch and typing issues leave some uncertainty about how quickly the 0.2 line will improve.
- **Needed by many: 5.1** (likely 4.0 to 6.2)
  - Claude Opus 5.5 (6.0): Many JS/TS developers write a CLI or script at some point, so argument parsing is a common need. citty covers only the argument and subcommand part of the category, not prompts or terminal UI. It is also ESM-only and aimed at Node-style runtimes, which narrows it a little.
  - GPT-6.2 Sol (4.1): Citty fits developers building command-line tools, scaffolding, and internal automation. It works independently of any application framework and covers argument parsing, command dispatch, and help. The State of JavaScript survey gives context on developer tooling but does not measure how many respondents build CLIs.
- **Helps a lot: 6.5** (likely 5.4 to 7.8)
  - Claude Opus 5.5 (6.0): It has typed args inferred from definitions, lazy subcommands, auto-generated usage, and in v0.2.2 aliases, plugins and a default subcommand. Open bugs remain, such as a subcommand also running the main command. Shell completions, variadic args and custom validation are missing. For complex CLIs, Commander, yargs and oclif cover more.
  - GPT-6.2 Sol (7.0): Citty 0.2.2 combines inferred argument types, lazy nested commands, plugins, generated help, and documented error handling. Users report that subcommands can also run their parent handler and that camel-case aliases can get overly broad types. Commander.js provides richer option constraints, and Yargs generates shell completions. The examples give coding agents concrete patterns to follow, though agent accuracy and comparative startup performance remain unmeasured here.
- **Holds up over time: 6.2** (likely 4.8 to 7.6)
  - Claude Opus 5.5 (6.0): Nuxt and UnJS depend on it, which gives it a reason to keep living, and it had 3 releases and 41 commits in the last year. The last release was in April 2026, and 41 open PRs against 103 merged point to slow review that rests on few maintainers. Being pre-1.0, it has already shipped breaking changes and may ship more.
  - GPT-6.2 Sol (6.3): Citty had 41 commits and three releases in the past year, with contributions from several people. The latest release shipped in April, and two reports affecting that version were still open in November. The 0.2 upgrade changed the parser and moved to ESM-only output. The lead maintainer reports full-time open-source support, while funding specifically for Citty and how widely release duties are shared remain unclear.
- **Used widely: 5.0** (likely 3.9 to 6.2)
  - Claude Opus 5.5 (5.5): About 197M downloads in 4 weeks, up 6.2x in a year against a 4.1 median, so it is gaining ground. Much of that volume comes in through nuxi, unbuild and other UnJS tools rather than direct choice. Its 8.1k dependent repos match Clipanion and oclif and are far below CAC (64k) and Commander (1M+).
  - GPT-6.2 Sol (4.5): Four-week downloads rose 6.2× year over year, ahead of the 4.1× catalog baseline. The index found 8,123 dependent repositories and 84 packages, close to Clipanion’s repository count and well below CAC, Commander.js, and yargs. Tools such as older Nuxt CLI and giget releases pull Citty in indirectly, and repeated installs make it hard to tell how much download growth came from new projects choosing it.
- **Vouched for: 5.8** (likely 4.7 to 7.1)
  - Claude Opus 5.5 (5.0): Nuxt's CLI is built on it, which is a strong production backer. Independent write-ups are few and partly auto-generated comparisons, though one 2026 guide recommends it for new TypeScript CLIs. It has no survey presence and no Hacker News stories.
  - GPT-6.2 Sol (6.5): Nuxt CLI uses the 0.2 line, and Google Labs chose Citty for its DESIGN.md CLI on the older 0.1 line. An independent Bun CLI write-up reports that typed subcommands and generated help worked well in practice. These examples show use in shipped tools, while direct survey satisfaction and comparative performance evidence remain thin.
- **Safe: 8.2** (likely 7.1 to 9.2)
  - Claude Opus 5.5 (8.0): It has zero runtime dependencies, an MIT licence and no known advisories, so the attack surface is small. There is no OpenSSF Scorecard data, and publishing rests on a small UnJS team, so the range stays moderate.
  - GPT-6.2 Sol (8.3): Citty 0.2.2 has zero runtime dependencies, a permissive MIT license, and zero recorded OSV advisories. An independent scan found no evidence of tampering or malware in that release. npm lists two collaborators, and the tagged source includes a release script that runs tests before npm publish. The missing OpenSSF Scorecard and unverified npm provenance leave some publishing controls uncertain.

## Good

- It has zero dependencies since v0.2.0, and the install size fell from about 267 kB to about 23 kB.
- Argument types are inferred from defineCommand, so parsed args are typed without extra code.
- Nested and lazy-loaded subcommands, auto-generated usage, and a new plugin system and subcommand aliases are built in.
- The Nuxt CLI (nuxi) and UnJS tooling run it in production at very high install volume.

## Bad

- It is still on 0.x, and v0.2.0 brought breaking changes (ESM-only, a switch to util.parseArgs, stricter types).
- It has no shell completions, no prompts and no variadic arguments, and those requests sit in long-open issues.
- 41 open PRs against 103 merged, plus bugs open since 2024, show limited maintainer bandwidth.
- It has fewer community examples, guides and plugins than Commander or yargs.

## The numbers

- Downloads, 4 weeks: 197M
- In a year: ×6.2
- GitHub stars: 1.4k
- Commits, 12 months: 41
- Last npm release: Apr 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/unjs/citty
- npm: https://www.npmjs.com/package/citty

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
