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 inconfig.ts
Prerequisites
codikaCLI installed and authenticated- A use case folder with
config.tsexportinggetDataIngestionConfig()and adata-ingestion/folder with exactly one workflow JSON file - A project to deploy to (via
project.json)
Use case folder structure
Command
Arguments
| Argument | Description |
|---|---|
<path> | Path to use case folder (config.ts must export getDataIngestionConfig(), and data-ingestion/ folder must contain exactly one workflow JSON file) |
Options
| Option | Description | Default |
|---|---|---|
--api-url <url> | Override API URL | — |
--api-key <key> | Codika API key | CODIKA_API_KEY env or profile |
--project-id <id> | Override project ID | project.json |
--project-file <path> | Path to custom project file (e.g., project-client-a.json) | project.json |
--patch | Patch version bump (default) | — |
--minor | Minor version bump | — |
--major | Major version bump | — |
--target-version <version> | Deploy to explicit API version (e.g., 3.0) | — |
--profile <name> | Use a specific profile instead of the active one | — |
--json | JSON output | — |
What happens on deploy
config.tsis loaded —getDataIngestionConfig()is read- The CLI auto-discovers the single
.jsonfile indata-ingestion/ - Project ID is resolved from
--project-id>project.json - Configuration is sent to the platform
- On success:
version.jsonis updated with the newdataIngestionVersion- Deployment is archived in
deployments/{projectId}/data-ingestion/{apiVersion}/ project-info.jsonis updated with the version mappingproject.jsonis updated withdataIngestionDeploymentsmap
Version tracking
Data ingestion has its own version line, separate from use case deployments:Key differences from use case deployment
| Aspect | Use Case Deploy | Data Ingestion Deploy |
|---|---|---|
| Command | deploy use-case | deploy process-data-ingestion |
| Scope | Per-user instance (dev/prod) | Per-process (shared by all users) |
| Versioning | Semantic (X.Y.Z) + API (X.Y) | Simple (X.Y) + local (X.Y.Z) |
| Notifications | Triggers “update available” | Does NOT trigger notifications |
| Version flags | --patch, --minor, --major, --target-version | --patch, --minor, --major, --target-version |
Examples
Output
Exit codes
| Code | Meaning |
|---|---|
0 | Deployment successful |
1 | API error or validation failure |