dry-cli
dry-cli: A focused Ruby toolkit for structured commands, options, subcommands, and completion. Ranked #49 of 60 in Command-Line Interface Frameworks by our editors (4.3/10); pricing: Free plan; best for lightweight command-registry based CLIs.
At a glance
- Editor score4.3 / 10
- PricingFree plan
- Best forLightweight command-registry based CLIs
- Free planYes
- Paid fromFree
- Shell completionYes
- Facts checked17 Nov 2026
Where it wins
- Registry-based command objects organize hierarchical CLI designs.
- Handles positional, named, boolean, array, aliased, and constrained values.
- Generates help and completion with variadic forwarding and lifecycle callbacks.
Where it doesn't
- Ruby-focused, so non-Ruby projects need another framework.
- Support is centered on documentation and community channels.
- Documented completion guidance targets Bash and Zsh.
Our verdict on dry-cli
dry-cli is an open-source Ruby framework for developing command-line interface applications. It models each command as an object and registers those objects in a command registry, giving Ruby developers a structured way to define command trees. The framework supports required, optional, and array positional arguments; named options with booleans, arrays, defaults, aliases, and allowed values; nested subcommands; and command or option help output. It fits solo developers through enterprise teams that want a focused Ruby command layer rather than a general application platform.
The pricing model is straightforward: dry-cli is distributed as an open-source Ruby gem under the MIT license, with a free plan. The published feature set centers on command-definition depth instead of paid-tier separation. Variadic argument forwarding lets a parent command pass trailing arguments to a subcommand, while callbacks cover the command execution lifecycle. Those capabilities suit tools with multi-level commands, aliases, constrained option values, or shared execution hooks. A completion-generation example is provided for Bash and Zsh, helping teams connect the command model to common shell workflows.
Integration breadth is narrower than the command model itself. The project is maintained in the dry-rb GitHub organization by the Hanakai team, and support channels are documentation and community. Its documented ecosystem focus is Ruby, so teams building CLIs in another language should choose a framework native to that language. Likewise, projects needing integrations beyond command parsing, or completion coverage outside the demonstrated Bash and Zsh examples, may need additional tooling. Choose dry-cli when a lightweight registry and typed command structure matter most; look elsewhere when a broader platform ecosystem is the primary requirement.
Your product? Our editors can test dry-cli in depth and publish a review, labelled as paid · from $149/mo →
dry-cli pricing
dry-cli fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Shell completion | Yes |
| Nested subcommands | Yes |
| Code generation | Not verified |
| Config file support | Not verified |
| Environment variables | Not verified |
| Typed API | Yes |
| Support | Docs, Community |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 17 Nov 2026 |
Alternatives to dry-cli
- ClapA free Rust crate with typed parsing, nested commands, validation, and completions.9.4
- ClickA free, open-source toolkit for typed, nested Python command-line applications.9.3
- TyperFree, open-source typed CLI framework with nesting, completions, and configuration support.9.2
See all dry-cli alternatives →
Used dry-cli? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used dry-cli for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
dry-cli is listed in our Command-Line Interface Frameworks directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/dry-cli/"><img src="https://www.itechguides.com/best/badge/dry-cli.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update