# DCli

> Dart library and tooling for writing CLI apps and scripts

Source: https://talira.ai/catalog/dcli-d27yn7zm
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [libraries / cli frameworks](https://talira.ai/categories/libraries/cli-frameworks), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [S. Brett Sutton](https://talira.ai/orgs/s-brett-sutton.md)

DCli is a Dart API and tool for writing command-line applications and scripts, from a five-line script to a large CLI app, as a replacement for Bash and the like. Scripts can run directly with a shebang, its API covers prompts such as `ask` with validators, and `dcli compile` builds a single self-contained executable that runs on machines without Dart and can install it to the PATH, for the user or the whole system. It runs on Linux, Windows and macOS. OnePub sponsors it.

## Links

- GitHub: https://github.com/onepub-dev/dcli
- Docs: https://dcli.onepub.dev/

## Problems it solves

- replace my Bash scripts with Dart
- write a cross-platform command-line tool in Dart
- compile a Dart script into a single executable I can copy to servers

## Features

- run .dart scripts directly with a shebang
- prompts such as ask() with built-in validators
- dcli compile builds a self-contained executable that doesn't need the Dart VM
- install compiled commands for the user or system-wide
- project templates via dcli create

## Trust

Overall: 0.55 out of 1.
Signals: maintenance 0.98, adoption 0.48, momentum 0.19, community 0.48, backing 0.30, extensibility 0.00.

- last commit 29 days ago
- 57 commits in the last 90 days
- latest release 10.4.0 43 days ago
- 264 GitHub stars
- 15 contributors
- accepts sponsorship (Github)
- backed by S. Brett Sutton

## Alternatives

- [args (Dart)](https://talira.ai/catalog/args-dart-c31bejbd.md): Command-line argument parsing for Dart

## Sources

[^1]: https://github.com/onepub-dev/dcli/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/onepub-dev/dcli/blob/master/LICENSE (checked 28 Nov 2026)
