FLUTTER ECOSYSTEM

cli_config

A library to take config values from configuration files, CLI arguments, and environment variables.

Latest version
0.2.0
30-day downloads
8.7M
Likes
10
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Dart library designed to simplify configuration management by sourcing values from configuration files, command-line arguments, and environment variables. It enables developers to build flexible CLI tools that adapt to different environments without hardcoding settings. The package supports multiple platforms including Android, iOS, macOS, Windows, and Linux, making it ideal for cross-platform command-line applications. By prioritizing configuration sources in a defined order, it ensures predictable behavior and easy overrides during development, testing, and deployment.

Use cases
  • Building CLI tools with dynamic configuration
  • Managing environment-specific settings
  • Automating deployment workflows
  • Testing applications with custom configurations
  • Integrating with CI/CD pipelines
Key features
  • Supports config files, CLI args, and env vars
  • Prioritized configuration resolution
  • Cross-platform compatibility
  • Simple API for loading configs
  • Built-in type conversion
  • Extensible configuration schema
Suitable for
  • Developers creating CLI applications
  • Teams managing multi-environment deployments
  • Tools requiring flexible configuration
  • Dart projects with environment-aware logic
  • CI/CD script authors
Considerations
  • Requires explicit configuration file format
  • May need validation for complex schemas
  • Environment variable naming must be consistent
  • CLI argument parsing requires careful design
  • Not intended for runtime UI configuration
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add cli_config

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects