Configure shared defaults
Use a YAML profile when several commands should share the same concrete edition, cache, and database.
Create a profile
Section titled “Create a profile”dicom_kb: edition: 2025e artifact_dir: /data/dicom-standard-kb database_url: sqlite:////data/dicom-standard-kb/db/2025e.sqlite max_text_excerpt_chars: 800 require_citations: trueThe top-level key must be dicom_kb. Unknown keys are rejected. The 2025e value is a concrete historical example; replace it with the edition recorded by your build.
An absolute Unix SQLite path uses four slashes after the scheme:
sqlite:////data/dicom-standard-kb/db/2025e.sqliteOnly local sqlite:/// URLs are accepted by the current profile model.
Pass the profile before the subcommand
Section titled “Pass the profile before the subcommand”uv run dicom-kb --config ./dicom-kb.yaml lookup tag ModalityThe --config option belongs to the root command. Do not place it after
lookup tag.
Override one value
Section titled “Override one value”CLI values take precedence:
uv run dicom-kb --config ./dicom-kb.yaml lookup tag Modality \ --edition 2025eThe complete precedence order is:
CLI optionenvironment variableYAML profilebuilt-in defaultUse environment variables
Section titled “Use environment variables”export DICOM_KB_EDITION=2025eexport DICOM_KB_CACHE_DIR=/data/dicom-standard-kbexport DICOM_KB_DATABASE_URL=sqlite:////data/dicom-standard-kb/db/2025e.sqliteexport DICOM_KB_MAX_TEXT_EXCERPT_CHARS=800Then run a command without repeating those options:
uv run dicom-kb lookup tag ModalityUnderstand policy-oriented profile fields
Section titled “Understand policy-oriented profile fields”The schema also accepts policy fields such as:
dicom_kb: allow_text_retrieval: true require_edition_pin: true allow_network_fetch: false use_synthetic_fixtures_only: false require_dicom_download_for_integration: true publish_generated_db: falseIn the documented source state, current CLI command paths do not use these fields as enforcement switches. Treat them as validated profile metadata unless the selected release documents additional enforcement.
require_citations is special: the profile rejects false, so a profile
cannot disable citation requirements.
See Configuration reference for every field, environment variable, validation rule, and current runtime effect.