Configuration Options¶
Complete reference for all depkeeper configuration options. depkeeper supports CLI arguments, environment variables, and configuration files with a clear precedence hierarchy. Configuration file values serve as defaults that CLI arguments override.
Configuration Precedence¶
When the same option is set in multiple places, the highest-priority source wins:
- CLI arguments -- Highest priority
- Environment variables --
DEPKEEPER_* - Configuration files --
depkeeper.tomlorpyproject.toml - Built-in defaults -- Lowest priority
CLI Options¶
Global Options¶
| Option | Type | Default | Description |
|---|---|---|---|
--config, -c | Path | Auto-detect | Configuration file path |
--verbose, -v | Flag | 0 | Verbosity level (repeat for more) |
--color | Boolean | true | Enable colored output |
--no-color | Boolean | false | Disable colored output |
check Command Options¶
| Option | Type | Default | Description |
|---|---|---|---|
--outdated-only | Flag | false | Show only outdated packages |
--format, -f | Choice | table | Output format: table, simple, json |
--strict-version-matching | Flag | false | Only consider exact pins (==) |
--check-conflicts | Flag | true | Enable conflict resolution |
--no-check-conflicts | Flag | false | Disable conflict resolution |
update Command Options¶
| Option | Type | Default | Description |
|---|---|---|---|
--dry-run | Flag | false | Preview without applying |
--yes, -y | Flag | false | Skip confirmation |
--backup | Flag | false | Create backup file |
--packages, -p | String | All | Packages to update (repeatable) |
--strict-version-matching | Flag | false | Only consider exact pins |
--check-conflicts | Flag | true | Enable conflict resolution |
For full details on each command, see CLI Commands.
Environment Variables¶
All environment variables use the DEPKEEPER_ prefix:
| Variable | Type | Default | Description |
|---|---|---|---|
DEPKEEPER_CONFIG | Path | - | Configuration file path |
DEPKEEPER_COLOR | Boolean | true | Enable/disable colors |
Boolean Values¶
Boolean environment variables accept:
- True:
true,1,yes,on - False:
false,0,no,off
Standard Variables¶
depkeeper also respects the NO_COLOR environment variable as defined by the no-color standard. When set, colored output is disabled regardless of DEPKEEPER_COLOR.
Examples¶
Configuration Files¶
File Locations¶
depkeeper searches for configuration in this order:
- Path from
--configorDEPKEEPER_CONFIG depkeeper.tomlin the current directorypyproject.tomlunder[tool.depkeeper]
depkeeper.toml¶
pyproject.toml¶
Configuration File Reference¶
These options can be set in the [depkeeper] table of depkeeper.toml or the [tool.depkeeper] table of pyproject.toml.
| Option | Type | Default | Description |
|---|---|---|---|
check_conflicts | Boolean | true | Enable dependency conflict resolution |
strict_version_matching | Boolean | false | Only use exact version pins (==) |
Precedence Example¶
Given the following configuration:
depkeeper.toml:
Environment:
Command:
Effective configuration:
| Option | Value | Source |
|---|---|---|
check_conflicts | false | CLI wins |
color | false | From environment |
Example Configurations¶
Development Environment¶
Production / Conservative¶
Validation¶
depkeeper validates configuration on startup. Invalid values result in clear error messages:
Use verbose mode to debug configuration loading:
See Also¶
- Configuration Guide -- Practical configuration guide
- CLI Commands -- Command options reference
- CI/CD Integration -- Pipeline configuration