Skip to main content

When to use

  • Deploy a data ingestion workflow (document embedding pipeline)
  • After creating or modifying data ingestion configuration in config.ts
  • The use case has a getDataIngestionConfig() export in config.ts

Prerequisites

  • codika CLI installed and authenticated
  • A use case folder with config.ts exporting getDataIngestionConfig() and a data-ingestion/ folder with exactly one workflow JSON file
  • A project to deploy to (via project.json)

Use case folder structure

Command

Arguments

Options

What happens on deploy

  1. config.ts is loaded — getDataIngestionConfig() is read
  2. The CLI auto-discovers the single .json file in data-ingestion/
  3. Project ID is resolved from --project-id > project.json
  4. Configuration is sent to the platform
  5. On success:
    • version.json is updated with the new dataIngestionVersion
    • Deployment is archived in deployments/{projectId}/data-ingestion/{apiVersion}/
    • project-info.json is updated with the version mapping
    • project.json is updated with dataIngestionDeployments map

Version tracking

Data ingestion has its own version line, separate from use case deployments:

Key differences from use case deployment

Examples

Output

Exit codes