🔑 API Access RequiredYou will need your DataHub GMS server URL to use this command. A DataHub personal access token is required for DataHub Cloud / auth-enabled instances, and can be omitted for a local instance with metadata service auth disabled.
Push DataHub Artifacts
Push Bolt dbt™ artifacts (manifest + catalog) and business glossary files to DataHub. The command pushes every dbt™ project in the run that has bothtarget/manifest.json and target/catalog.json, and skips one without a catalog.
On dbt™ v2,
dbt docs generate no longer writes catalog.json. Add --write-catalog to a dbt™ command earlier in the schedule, for example dbt build --write-catalog. See Prepare for dbt™ v2.CLI Command
paradime run datahub-artifacts-push
Options
| Flag | Type | Description |
|---|---|---|
--datahub-server | Required, TEXT | The DataHub GMS server URL (e.g. https://<instance>.acryl.io/gms). Can be set via DATAHUB_GMS_URL environment variable. |
--datahub-token | Optional, TEXT | The DataHub personal access token used to authenticate to GMS. Required for DataHub Cloud / auth-enabled instances; omit for a local instance with metadata service auth disabled. Can be set via DATAHUB_GMS_TOKEN environment variable. |
--target-platform | Required, TEXT | The data warehouse platform the dbt models run on (e.g. snowflake, bigquery, redshift). Can be set via DATAHUB_TARGET_PLATFORM environment variable. |
--domain | Optional, TEXT | Optional DataHub domain URN to associate the pushed assets with (e.g. urn:li:domain:sales). Can be set via DATAHUB_DOMAIN environment variable. |
--write-semantics | Optional, [PATCH|OVERRIDE] | How synced tags/terms/owners interact with existing DataHub metadata. PATCH (default) merges with what’s already there: metadata added outside dbt is preserved, but associations removed from dbt yml linger in DataHub. OVERRIDE makes the dbt yml the source of truth: removals propagate, and tags/terms added to the dbt entities via the DataHub UI are replaced on every sync. Default: PATCH. Can be set via DATAHUB_WRITE_SEMANTICS environment variable. |
--remove-stale | Optional, BOOLEAN | When true, enables DataHub stateful ingestion: models/sources deleted or renamed in the dbt project are soft-deleted in DataHub on the next push (they otherwise linger forever). Requires a DataHub server that supports ingestion checkpoints. Default: False. Can be set via DATAHUB_REMOVE_STALE environment variable. |
--glossary-path | Optional, TEXT | Optional comma-separated globs (relative to the resources directory) locating business glossary YAML files to ingest (e.g. metadata/glossary_terms/**/*.yaml). Defaults to any file matching datahub_glossary*.yml or .yaml. Can be set via DATAHUB_GLOSSARY_PATH environment variable. |
--glossary-auto-id | Optional, BOOLEAN | How glossary term/node URNs are minted, and it must match whatever created the terms already in your DataHub. False (default) uses readable path ids (urn:li:glossaryTerm:My-Node.My-Term); true uses DataHub’s deterministic guid of the same path. The wrong setting silently creates a duplicate glossary under the other scheme instead of updating the existing terms. Default: False. Can be set via DATAHUB_GLOSSARY_AUTO_ID environment variable. |
--paradime-resources-directory | Optional, TEXT | The directory where the paradime resources are stored. Can be set via PARADIME_RESOURCES_DIRECTORY environment variable. |
--json | Optional, Flag | Output results as JSON. Default: False. |
--help | Optional, Flag | Show the help message and exit. |
Recommended SetupFor security and convenience, set your DataHub configuration as environment variables:
DATAHUB_GMS_URL="https://your-instance.acryl.io/gms"
DATAHUB_GMS_TOKEN="your_personal_access_token"
DATAHUB_TARGET_PLATFORM="snowflake"
Usage Example
# Push dbt™ artifacts to DataHub (using environment variables)
paradime run datahub-artifacts-push
# Or with explicit flags
paradime run datahub-artifacts-push \
--datahub-server "https://your-instance.acryl.io/gms" \
--datahub-token "your_personal_access_token" \
--target-platform "snowflake"
# Make the dbt™ YAML the source of truth, soft-delete removed models,
# and ingest glossary files from a custom folder
paradime run datahub-artifacts-push \
--write-semantics OVERRIDE \
--remove-stale true \
--glossary-path "metadata/glossary_terms/**/*.yaml"
Environment Variable Reference
| Environment Variable | Description |
|---|---|
DATAHUB_GMS_URL | The DataHub GMS server URL |
DATAHUB_GMS_TOKEN | The DataHub personal access token used to authenticate to GMS |
DATAHUB_TARGET_PLATFORM | The data warehouse platform the dbt models run on |
DATAHUB_DOMAIN | Optional DataHub domain URN to associate the pushed assets with |
DATAHUB_WRITE_SEMANTICS | PATCH (default) or OVERRIDE |
DATAHUB_REMOVE_STALE | Soft-delete models and sources removed from the dbt™ project |
DATAHUB_GLOSSARY_PATH | Comma-separated globs locating business glossary YAML files |
DATAHUB_GLOSSARY_AUTO_ID | Mint glossary URNs from DataHub’s guid instead of readable path ids |
PARADIME_RESOURCES_DIRECTORY | The directory where the paradime resources are stored |