Using the CLI to register your AI model versions in Collibra

Use the Collibra CLI to register AI model versions directly from your terminal.

AI framework and library detection
The CLI scans your local Python projects, including all subdirectories, to identify AI models. It automatically detects common AI frameworks (for example TensorFlow, PyTorch, and scikit-learn) and libraries (for example pandas and numpy).
Automated manifest management
A collibra.yaml manifest file is automatically created the first time you successfully complete the registration process. It is updated during each subsequent registration to ensure your local project remains synchronized with Collibra. The manifest serves as a persistent record of which AI models have been registered, storing metadata such as AI use case IDs and base model associations, to prevent redundant registrations in future scans.
On-demand help
The CLI has a --help flag to retrieve built-in reference documentation. Run ./collibra --help to view a list of all available commands and flags.
Streamlined registration flow
You initiate the entire governance workflow with a single command. This process scans your source code for AI model patterns and loads existing YAML manifest files to filter out any models that have already been registered or rejected. The CLI then guides you through the model version registration process, where you can also register new AI Use Cases and Base Models or link your versions to existing assets.

Requirements and permissions

Register an AI model version to your Collibra environment

  1. Open your terminal or command prompt.
  2. The Collibra CLI operates relative to your current working directory. Therefore, run the following command to navigate to the root of your Python project: cd /path/to/your/ml-project
  3. Run the command: collibra ai-gov register
    The CLI guides you through registering AI model versions and linking them to a new or existing (in Collibra) AI base model and AI use case.

Let's go through the registration process

In addition to registering your AI model versions in Collibra, the process enables you to register an AI use case and an AI base model, or link to an existing AI base model. Let's go through the typical process.

Step 1: Detecting AI model versions

When you run the command: collibra ai-gov register, the CLI scans the current or specified directory and all subdirectories for AI frameworks and libraries, and loads the collibra.yaml manifest file if one exists. A manifest file is automatically created the first time you successfully complete the registration process. It is updated during each subsequent registration.

Step 2: Fetching an AI use case

Step 3: Fetching an AI base model

Step 4: Fetching an AI model version

Select one or more AI Model Version assets to link to your selected AI Base Model asset.

A final review screen shows the proposed registration.

If you want to edit the names and descriptions of the new assets before finalizing the registration, arrow down and press Enter on the asset you want to edit.

Step 5: Finalize

When you enter y to confirm the registration, the CLI imports the assets to Collibra.

If this was a first-time registration, the CLI generates a new collibra.yaml manifest file. If it's not a first-time registration, the CLI updates the existing manifest file.

A successful registration summary is shown.