Skip to content

Configuration

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")
# Defaults
config = CLIConfig()
KeyTypeDefaultEnv VarDescription
colorboolTrueQK_CLI__COLOREnable coloured terminal output
application.yaml
cli:
color: true
Terminal window
export QK_CLI__COLOR=true

Environment variable overrides take precedence over values in application.yaml.

  • Use application.yaml for project-wide defaults checked into version control
  • Use environment variables for CI/CD and per-deployment overrides
  • Set QK_CLI__COLOR=false in CI so logs stay free of terminal escape codes