When to use
- Start a new use case from scratch
- Create the initial folder structure for an n8n workflow project
- Bootstrap a new automation with correct Codika patterns
Prerequisites
codikaCLI installed- For project creation: authenticated via
codika login(optional — scaffolding works without auth)
Command
Arguments
Options
What it creates
Agent skills
The scaffold includes two agent skills — one for each triggerable workflow. Skills are Claude-compatibleSKILL.md files that describe how to interact with the workflow’s endpoint. No skill is created for text-processor because sub-workflows are not directly triggerable.
Skills are automatically collected and deployed when you run codika deploy use-case.
Template workflows
The scaffold generates three workflows that demonstrate different patterns:main-workflow.json (HTTP trigger)
- Webhook trigger with input validation
- Codika Init (HTTP mode — extracts metadata)
- Calls
text-processorsub-workflow viaSUBWKFLplaceholder - Codika Submit Result / Report Error
scheduled-report.json (Schedule trigger)
- Schedule Trigger (cron) + manual Webhook
- Codika Init (schedule mode — creates execution via API)
- Business logic placeholder
- Codika Submit Result / Report Error
text-processor.json (Sub-workflow)
- Execute Workflow Trigger (receives data from parent)
- No Codika Init node
- Processes data and returns result to parent
Behavior
- Creates the folder structure and generates all template files
- If authenticated and
--no-projectis not set:- Creates a project on the Codika platform via API
- Writes
projectIdandorganizationIdtoproject.json
- If
--project-idis provided:- Uses that ID without making an API call
- Writes to
project.json
- Checks if a parent directory already has
codikain itspackage.json:- If found (e.g., inside a monorepo): reuses the existing workspace, skips dependency setup
- If not found: creates
package.json,tsconfig.json,.gitignore, and runsnpm install
- If
--no-installis set: creates the dependency files but skipsnpm install
Project organization
Single use case (default)
When you scaffold a use case in a standalone directory, the CLI creates a self-contained project with its ownpackage.json and dependencies:
Multiple use cases (shared workspace)
If you plan to manage multiple use cases in a single repository, create a shared workspace with onepackage.json at the root. All use cases share the same dependencies:
package.json and skips creating per-use-case dependency files. Each use case is still independently deployable — codika deploy use-case ./email-automation works regardless of the project structure.
This is the recommended approach when you have multiple use cases, since it avoids duplicating node_modules and keeps everything in one place.
Examples
Next steps after init
--no-project, create a project before deploying: