Dokumentation

Mit KI übersetzt — wir entschuldigen uns für etwaige Fehler. Helfen Sie uns, diese Übersetzung zu verbessern.

Configuration#

BDP stores configuration at the user level (~/.config/bdp/config.toml) and reads environment variables for overrides.

View Current Configuration#

bash
bdp config show

Get / Set Values#

bash
# Get a single value
bdp config get server_url
# Set a value
bdp config set server_url https://bdp.dev
bdp config set cache_dir /data/shared/bdp-cache

Configuration Keys#

| Key | Default | Description | |---|---|---| | server_url | https://bdp.dev | Registry server to resolve sources against | | cache_dir | ~/.cache/bdp | Local cache directory for downloaded files | | log_level | warn | Log verbosity (error, warn, info, debug, trace) |

Environment Variable Overrides#

All configuration keys can be overridden with environment variables. Prefix the key with BDP_ and use uppercase:

| Environment Variable | Overrides | |---|---| | BDP_SERVER_URL | server_url | | BDP_CACHE_DIR | cache_dir | | RUST_LOG | Log level (standard Rust tracing filter) |

Environment variables take precedence over the config file.

Project-Level Configuration#

Per-project settings live in bdp.yml in your project root:

toml
[project]
name = "my-analysis"
version = "1.0.0"
[settings]
# Override server for this project only
server_url = "https://internal.example.com/bdp"

Self-Hosted Registry#

To use a self-hosted BDP registry:

bash
bdp config set server_url https://your-registry.example.com

Or set BDP_SERVER_URL in your environment / CI configuration.