talira

Dart library and tooling for writing CLI apps and scripts

open sourceMITfree

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.

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

Alternatives

The same job

These do what DCli does.

  1. args (Dart) Command-line argument parsing for Dart

Compare DCli with the top 3