Skip to main content

When to use

  • Deploy n8n workflows + config to the Codika platform
  • After creating or modifying workflow files
  • After a successful verify use-case check

Prerequisites

  • codika CLI installed and authenticated
  • Use case folder with config.ts and workflows/ directory
  • Platform project (via project.json or PROJECT_ID in config.ts)

Command

Arguments

Options

Version strategy

What happens on deploy

  1. Read version.json for current version
  2. Validate the use case (same as verify use-case)
  3. Bump version based on flags
  4. Resolve project ID: --project-id > --project-file > project.json > config.ts
  5. Resolve API key: --api-key > env > org-matching profile > active profile
  6. Package all workflow files
  7. Send to the Codika platform API
  8. Collect agent skills from skills/*/SKILL.md (if any exist)
  9. On success:
    • Update version.json with new local version
    • Save devProcessInstanceId to project.json
    • Save deployment to deployments map in project.json (version → templateId + timestamp)
    • Archive deployment in deployments/{projectId}/process/{apiVersion}/
    • Update project-info.json with version mapping
Agent skills are automatically included. If your use case has a skills/ folder with SKILL.md files, they are collected and sent with the deployment. Agents can then download them via codika get skills. No config.ts changes needed.
The deployments map in project.json tracks all deployments by version — use it with codika publish to promote a deployment to production.
For parameter-only changes, use codika rerun deployment instead. It updates deployment parameters on an existing instance without creating a new template version — no version bump, no new deployment archive.

API key resolution (org-aware)

If project.json contains organizationId, the CLI automatically selects the profile matching that org:
  1. --api-key flag (always wins)
  2. CODIKA_API_KEY environment variable
  3. Profile matching organizationId from project.json
  4. Active profile

Dry-run mode

Preview the deployment without calling the API:
This validates the configuration, displays the deployment plan (versions, workflows, project ID, integrations), and exits with the validation status.

Additional files

Attach extra files to the deployment (e.g., documentation, data files):
Format: absolutePath:relativePath — the relative path determines where the file is stored in the deployment archive.

Post-deploy files

After a successful deployment, the folder contains:
Data ingestion workflows live in a separate data-ingestion/ folder and are deployed independently via codika deploy process-data-ingestion. They have their own version line and do not trigger “update available” notifications.

Examples

Output

Exit codes