dart-build-cli-app

Originally fromdart-lang/skills
Installation
SKILL.md

Building Dart CLI Applications

Contents

Project Setup & Architecture

Initialize new CLI projects using the official Dart template to ensure standard directory structures.

  • Run dart create -t cli <project_name> to scaffold a console application with basic argument parsing.
  • Place executable entry points (files containing main()) exclusively in the bin/ directory.
  • Place internal implementation logic in lib/src/ and expose public APIs via lib/<project_name>.dart.
  • Enforce formatting in CI environments by running dart format . --set-exit-if-changed. This returns exit code 1 if formatting violations exist.
Installs
15
GitHub Stars
20
First Seen
May 10, 2026
dart-build-cli-app — dhruvanbhalara/skills