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
dotenv

Load environment variables at runtime from a .env file.

pub.devRemove
ScoresHealth5050
Maintenance47 (best)1
Quality96 (best)89
Popularity6580 (best)
Community80 (best)69
Compatibility8585
UsageDownloads (30 days)11M (best)160k
Likes10154 (best)
Pub points150 / 160 (best)135 / 160
GitHub stars123 (best)116
MaintenanceLatest release0.2.0, 3 years ago (best)4.2.0, 3 years ago
Major versions in 12 months00
Contributors100+ (best)6
Publishertools.dart.devpracticalflutter.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies22
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Simple API with clear precedence rules
  • Supports hierarchical keys and list merging
  • Provides both async and sync loading
  • Easy to configure with support for multiple file paths and variable substitution.
  • Includes a command-line interface helper to initialize and test .env files.
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
  • Does not expose the underlying map directly since version 4.0.0, requiring forwarding methods.
  • Does not inject variables at compile time.
Warnings
  • Quiet but busy
None
cli_config vs dotenv: which Flutter package should you use? | pubscout