deploy use-case
Deploy a use case folder to the Codika platform.Arguments
| Argument | Description |
|---|---|
<path> | Path to use case folder (must contain config.ts and workflows/) |
Options
| Option | Description | Default |
|---|---|---|
--api-url <url> | Codika API URL | CODIKA_API_URL env or profile |
--api-key <key> | Codika API key | CODIKA_API_KEY env or profile |
--project-id <id> | Override project ID | project.json or config.ts |
--patch | Patch version bump | Default |
--minor | Minor version bump | — |
--major | Major version bump | — |
--version <X.Y> | Explicit API version | — |
--additional-file <abs:rel> | Add extra file (repeatable) | — |
--json | JSON output | — |
--dry-run | Preview without calling API | — |
Version strategy
| Flag | Local version change | API version strategy |
|---|---|---|
--patch (default) | 1.0.0 → 1.0.1 | minor_bump |
--minor | 1.0.1 → 1.1.0 | minor_bump |
--major | 1.1.0 → 2.0.0 | major_bump |
--version 3.0 | Unchanged | explicit (version 3.0) |
What happens on deploy
- Read
version.jsonfor current version - Validate the use case (same as
verify use-case) - Bump version based on flags
- Resolve project ID:
--project-id>project.json>config.ts - Resolve API key:
--api-key> env > org-matching profile > active profile - Package all workflow files
- Send to the Codika platform API
- On success:
- Update
version.jsonwith new local version - Save
devProcessInstanceIdtoproject.json - Archive deployment in
deployments/{projectId}/process/{apiVersion}/ - Update
project-info.jsonwith version mapping
- Update
Dry-run mode
Preview the deployment without calling the API:Additional files
Attach extra files to the deployment (e.g., documentation, data files):absolutePath:relativePath — the relative path determines where the file is stored in the deployment archive.
Examples
Output
deploy process-data-ingestion
Deploy a data ingestion configuration for RAG (document embedding) workflows.Arguments
| Argument | Description |
|---|---|
<path> | Path to use case folder (config.ts must export getDataIngestionConfig()) |
Options
| Option | Description | Default |
|---|---|---|
--api-url <url> | Data Ingestion API URL | CODIKA_DATA_INGESTION_API_URL env |
--api-key <key> | Codika API key | CODIKA_API_KEY env or profile |
--project-id <id> | Override project ID | project.json |
--version-strategy <strategy> | major_bump, minor_bump, or explicit | minor_bump |
--explicit-version <version> | Required if strategy is explicit | — |
--json | JSON output | — |
Output
Exit codes
| Code | Meaning |
|---|---|
0 | Deployment successful |
1 | API error or validation failure |