Prerequisites
- Node.js 22 or higher
- npm
- A Codika API key (obtain from the Codika dashboard under Organization Settings > API Keys)
Step 1: Install the CLI
Step 2: Authenticate
~/.config/codika/config.json.
For non-interactive environments:
Step 3: Scaffold a use case
Step 4: Validate
--fix to auto-fix what it can:
Step 5: Deploy
- Reads
version.json(1.0.0) - Bumps to 1.0.1 (patch by default)
- Packages all workflow files and collects agent skills from
skills/ - Sends to the Codika platform API
- On success: updates
version.json, archives deployment locally, savesdevProcessInstanceIdtoproject.json
Step 6: Trigger a workflow
--poll flag waits for execution to complete (default timeout: 120 seconds) and prints the result.
Step 7: Check execution details
If you need to debug:--deep flag fetches sub-workflow executions recursively. The --slim flag strips noise for readability.
Optional: Publish to production
Once you’re happy with your dev deployment, publish it to production:templateId is stored in project.json under the deployments map after each deploy. Check it with:
Optional: Download skills for agents
Your use case already includes agent skills (created duringinit). After deploying, agents can download them:
What’s next
Core concepts
Learn how use cases, processes, and workflows relate.
Build your own
Step-by-step guide to building a custom use case from scratch.
CLI Reference
Complete reference for all CLI commands and options.
Validation rules
Understand all validation rules enforced by the CLI.
Builder System
Let AI agents build use cases from your business requirements.