Skip to main content

CLI for uploading dbt artifacts to Colibri Pro

Project description

Colibri CLI

Upload dbt artifacts to Colibri Cloud for automatic lineage analysis.

Overview

This CLI is designed to integrate your CI/CD pipeline with Colibri Cloud, syncing your dbt manifest.json and catalog.json files. The CLI automatically includes git commit information when available, making it easy to track which code version generated each upload.

Installation

pip install colibri-cli

Configuration

Set the following environment variables in your CI/CD environment:

COLIBRI_API_URL=https://api.colibri-data.com
COLIBRI_API_KEY=your-api-key-here
COLIBRI_PROJECT_ID=your-project-id

Usage

Upload Artifacts

After running your dbt project, upload the artifacts:

# Upload from default ./target directory
colibri-pro upload

# Upload from custom directory
colibri-pro upload --target-dir path/to/target

## CI/CD Integration

### GitHub Actions

```yaml
name: Upload dbt Lineage

on:
  push:
    branches: [main]
  workflow_dispatch:

jobs:
  upload-lineage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0  # Fetch full history for git info

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: |
          pip install dbt-core dbt-duckdb  # or your adapter
          pip install colibri-cli

      - name: Run dbt
        run: |
          dbt deps
          dbt build
          dbt docs generate
        env:
          DBT_PROFILES_DIR: .

      - name: Upload to Colibri Pro
        run: colibri-pro upload
        env:
          COLIBRI_API_URL: ${{ secrets.COLIBRI_API_URL }}
          COLIBRI_API_KEY: ${{ secrets.COLIBRI_API_KEY }}
          COLIBRI_PROJECT_ID: ${{ secrets.COLIBRI_PROJECT_ID }}

GitLab CI

upload-lineage:
  stage: deploy
  image: python:3.11
  script:
    - pip install dbt-core dbt-duckdb colibri-cli
    - dbt deps && dbt build && dbt docs generate
    - colibri-pro upload
  variables:
    COLIBRI_API_URL: $COLIBRI_API_URL
    COLIBRI_API_KEY: $COLIBRI_API_KEY
    COLIBRI_PROJECT_ID: $COLIBRI_PROJECT_ID
  only:
    - main

Metadata Included

The CLI automatically includes:

  • git_commit - Current git commit hash (if available)
  • git_branch - Current git branch (if available)
  • colibri_cli_version - CLI version used for upload
  • uploaded_at - ISO 8601 timestamp of uploads

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colibri_cli-0.1.0.tar.gz (147.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colibri_cli-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file colibri_cli-0.1.0.tar.gz.

File metadata

  • Download URL: colibri_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 147.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for colibri_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 943fc9fc1d3cf7451efe1b4cb6541c4a35458c7fe00f0bfda658c8fc4323ad2c
MD5 99cebe3ada841a15ad8a7d9db2b5e2e5
BLAKE2b-256 dcd70484ae581d299267af5b7eabde20cc2d1b9356cbe4f129d71e73e66c8f6d

See more details on using hashes here.

File details

Details for the file colibri_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: colibri_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for colibri_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cdf1f4d7c77c20052a62b57a8433dec866f74ff9c49e155d84bb2261709750c
MD5 67dde87cbbbe8b1ac1c66052cf190b46
BLAKE2b-256 0c150a61e760af9bf7693ec6c9c022e6b50628781d7dd785dffdaaf6473f6434

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page