Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecli_config

Library to read config from CLI args, env vars, and JSON/YAML files

pub.devRemove
config

Typed CLI argument and config file parser with env support

pub.devRemove
ScoresHealth5084 (best)
Maintenance4794 (best)
Quality96100 (best)
Popularity65 (best)53
Community8080
Compatibility8585
UsageDownloads (30 days)11M (best)204k
Likes10 (best)8
Pub points150 / 160160 / 160 (best)
GitHub stars123 (best)13
MaintenanceLatest release0.2.0, 3 years ago0.10.0, 6 days ago (best)
Major versions in 12 months00
Contributors100+ (best)9
Publishertools.dart.devserverpod.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies2 (best)7
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Simple API with clear precedence rules
  • Supports hierarchical keys and list merging
  • Provides both async and sync loading
  • Typed option definitions with automatic parsing and constraints
  • Support for environment variables and YAML/JSON config files
  • Collects all validation errors upfront for better UX
  • Drop‑in replacement for ArgParser with minimal code changes
Weaknesses
  • No code generation or type safety for config models
  • Limited to CLI, env, and file sources only
  • No built‑in validation or schema support
  • Requires Dart SDK 3.9+ (breaking change in 0.10.0)
  • addCommand() not supported, needs BetterCommandRunner from cli_tools
  • No code generation support
Warnings
  • Quiet but busy
None
cli_config vs config: which Flutter package should you use? | pubscout