When to use
- Deploy n8n workflows + config to the Codika platform
- After creating or modifying workflow files
- After a successful
verify use-casecheck
Prerequisites
codikaCLI installed and authenticated- Use case folder with
config.tsandworkflows/directory - Platform project (via
project.jsonorPROJECT_IDin config.ts)
Recommended flow
Command
Arguments
Options
Version strategy
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-file>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
- Collect agent skills from
skills/*/SKILL.md(if any exist) - On success:
- Update
version.jsonwith new local version - Save
devProcessInstanceIdtoproject.json - Save deployment to
deploymentsmap inproject.json(version → templateId + timestamp) - Archive deployment in
deployments/{projectId}/process/{apiVersion}/ - Update
project-info.jsonwith version mapping
- Update
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.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)
Ifproject.json contains organizationId, the CLI automatically selects the profile matching that org:
--api-keyflag (always wins)CODIKA_API_KEYenvironment variable- Profile matching
organizationIdfromproject.json - Active profile
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.
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.