Skip to main content

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

Metadata

Release files for colibri-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colibri-cli 0.1.0
File Size Uploaded
colibri_cli-0.1.0.tar.gz 147.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for colibri-cli 0.1.0
File Interpreter ABI Platform
colibri_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 153.6 kB

Release files / colibri_cli-0.1.0.tar.gz

Download URL colibri_cli-0.1.0.tar.gz
Size 147.5 kB
Tags Source
SHA-256 checksum
How to use checksums
943fc9fc1d3cf7451efe1b4cb6541c4a35458c7fe00f0bfda658c8fc4323ad2c
BLAKE2b-256 checksum
How to use checksums
dcd70484ae581d299267af5b7eabde20cc2d1b9356cbe4f129d71e73e66c8f6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / colibri_cli-0.1.0-py3-none-any.whl

Download URL colibri_cli-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cdf1f4d7c77c20052a62b57a8433dec866f74ff9c49e155d84bb2261709750c
BLAKE2b-256 checksum
How to use checksums
0c150a61e760af9bf7693ec6c9c022e6b50628781d7dd785dffdaaf6473f6434
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page