Overview
Section titled “Overview”CLIConfig extends BaseConfig from quadkit.config with a config_section = "cli". It reads from the [cli] section of application.yaml or environment variables prefixed with QK_CLI__.
from quadkit.cli import CLIConfig
# From YAML (reads [cli] section)config = CLIConfig.from_yaml("application.yaml")
# Defaultsconfig = CLIConfig()Options
Section titled “Options”| Key | Type | Default | Env Var | Description |
|---|---|---|---|---|
color | bool | True | QK_CLI__COLOR | Enable coloured terminal output |
YAML Example
Section titled “YAML Example”cli: color: trueEnvironment Variables
Section titled “Environment Variables”export QK_CLI__COLOR=trueEnvironment variable overrides take precedence over values in application.yaml.
Best Practices
Section titled “Best Practices”- Use
application.yamlfor project-wide defaults checked into version control - Use environment variables for CI/CD and per-deployment overrides
- Set
QK_CLI__COLOR=falsein CI so logs stay free of terminal escape codes