Skip to content
dbpm

dbpm registry-index

Index metadata for an already-published immutable artifact. The registry stores and verifies metadata; it does not receive the ZIP bytes from dbpm.

dbpm registry index [PACKAGE_ROOT] [--package NAME] [--receipt PATH]
[--registry-url URL] [--token-env NAME]
[--publisher NAME] [--description TEXT]
[--artifact-url URL] [--artifact-checksum SHA256]
[--artifact-signature-url URL]
[--publisher-key-fingerprint FINGERPRINT]
[--dry-run]
flowchart LR
command["command"] --> dbpm["dbpm"]
dbpm --> registry["registry"]
registry --> index["index"]
index --> package_root["[ PACKAGE_ROOT ]"]
package_root --> options["{ option }"]
options --> end_node(("end"))
options -. expands to .-> option["option"]
option --> package["--package NAME"]
option --> receipt["--receipt PATH"]
option --> registry_url["--registry-url URL"]
option --> token_env["--token-env NAME"]
option --> publisher["--publisher NAME"]
option --> description["--description TEXT"]
option --> artifact_url["--artifact-url URL"]
option --> artifact_checksum["--artifact-checksum SHA256"]
option --> artifact_signature["--artifact-signature-url URL"]
option --> publisher_key["--publisher-key-fingerprint FINGERPRINT"]
option --> dry_run["--dry-run"]
package -. only when PACKAGE_ROOT is a workspace .-> package_note["selects workspace package"]
publisher -. overrides .-> metadata_note["metadata from receipt, manifest, or env"]
description -. overrides .-> metadata_note
artifact_url -. overrides .-> metadata_note
artifact_checksum -. overrides .-> metadata_note
artifact_signature -. must be supplied together .-> publisher_key
publisher_key -. must be supplied together .-> artifact_signature
dry_run -. changes execution .-> dry_run_note["prints request without sending"]

The command reads package identity, compatibility requirements, and dependencies beyond Core from dbpm.yaml. It auto-discovers dbpm-publish-receipt.json in the selected package root. Explicit flags override receipt and manifest values.

Publisher resolution order is --publisher, DBPM_REGISTRY_PUBLISHER, then package.vendor. Description uses the equivalent description flag, environment variable, and manifest field. The bearer token comes from the environment variable named by --token-env, which defaults to DBPM_REGISTRY_TOKEN.

Every newly indexed version is active. Deprecation and yanking are separate registry lifecycle operations.

Terminal window
dbpm registry index . --dry-run
dbpm registry index .
./scripts/index-package.sh .
dbpm registry index . \
--artifact-url https://repo.example/demo-1.2.3.zip \
--artifact-checksum sha256:... \
--artifact-signature-url https://repo.example/demo-1.2.3.zip.asc \
--publisher-key-fingerprint ABCD1234...

Source: docs/commands/registry-index.md