casen CLI
casen is an interactive terminal UI (TUI) for managing Camunda 8. Navigate with arrow keys,
no flags to memorize.
Installation
Section titled “Installation”pnpm add -g @bpmnkit/cliQuick Start
Section titled “Quick Start”casenThe main menu appears. Use ↑ ↓ to navigate, Enter to select, Escape to go back.
Navigation Structure
Section titled “Navigation Structure”casen├── generate — generate or modify BPMN files without the TUI│ └── bpmn — templates, CompactDiagram JSON, or patch existing files├── view — view BPMN, DMN, and form files in the browser│ ├── open — any mix of .bpmn/.dmn/.form files or folders (auto-detect)│ ├── bpmn — BPMN diagrams rendered as SVG│ ├── dmn — DMN decision tables│ └── form — Camunda form layouts├── lint — static analysis and auto-fix for BPMN files│ ├── lint — run all checks, report findings│ └── improve — AI-assisted improvement suggestions├── story — render a BPMN process as a narrative HTML page├── ask — ask an AI assistant about your process or cluster├── connector — generate element templates from OpenAPI specs│ ├── generate — generate templates from a spec file or catalog entry│ └── catalog — list built-in catalog entries├── profile — manage connection profiles│ ├── list — show all profiles│ ├── add — create a new profile│ └── switch — set the active profile├── process│ ├── list — list deployed process definitions│ ├── start — start a new instance│ ├── instances — list running instances│ └── cancel — cancel an instance├── job│ ├── list — list active jobs│ ├── complete — complete a job│ └── fail — fail a job with a message├── incident│ ├── list — list open incidents│ └── resolve — resolve an incident├── decision│ ├── list — list deployed DMN decision tables│ └── evaluate — evaluate a decision with test inputs├── variable│ ├── list — list variables for an instance│ └── update — set a variable value├── message│ └── publish — publish a message for correlation├── worker — run job workers│ ├── <job-type> — auto-complete worker for a job type│ └── start — start scaffolded workers from ./workers/├── proxy — start the local AI bridge server└── plugin — manage CLI plugins ├── search — discover plugins on npm ├── install — install a plugin from npm or a local path ├── list — list installed plugins ├── update — update one or all plugins ├── remove — uninstall a plugin └── info — show details for an installed pluginGenerate BPMN files
Section titled “Generate BPMN files”casen generate bpmn creates BPMN files from the command line — no interactive menu required.
Choose a built-in template, supply a full CompactDiagram JSON definition, or patch an existing file.
casen generate bpmn --template approval --process-id leave-requestcasen generate bpmn --input order.bpmn --dump-compact # inspect as JSON for AIcasen generate bpmn --input order.bpmn --patch '{"elements":[...],"flows":[...]}'See casen generate for full documentation.
View BPMN, DMN, and Form files
Section titled “View BPMN, DMN, and Form files”casen view opens a local browser-based viewer. Accepts individual files, folders, or a mix.
casen view bpmn ./processes/ # all .bpmn files in a foldercasen view dmn routing.dmn # DMN decision tablecasen view open ./project/ # any mix of .bpmn/.dmn/.formSee casen view for full documentation.
Connection Profiles
Section titled “Connection Profiles”A profile stores the connection details for a Camunda cluster:
# Add a new profilecasen profile add
# You'll be prompted for:# Name: my-saas-cluster# Base URL: https://api.cloud.camunda.io# Auth type: oauth2 | bearer | none# Client ID, Client Secret, Audience, Token URL (for oauth2)Profiles are saved to ~/.casen/profiles.json.
Common Workflows
Section titled “Common Workflows”List process definitions
Section titled “List process definitions”Navigate to: process → list → Enter
Result: bpmnProcessId name ver ──────────────────────────────────────────────────────────▶ invoice-approval Invoice Approval 2 order-fulfillment Order Fulfillment 1 customer-onboarding Customer Onboarding 3Start a process instance
Section titled “Start a process instance”Navigate to: process → start → Enter
Select process: invoice-approvalVariables (JSON): {"invoiceId": "inv-001", "amount": 5000}Resolve an incident
Section titled “Resolve an incident”Navigate to: incident → list → EnterSelect the incident with Enter, choose “Resolve” from the action menu.
Publish a message
Section titled “Publish a message”Navigate to: message → publish → Enter
Message name: payment-confirmedCorrelation key: ord-456Variables (JSON): {"method": "card"}Plugins
Section titled “Plugins”casen’s plugin system lets you extend the CLI with new command groups — your own organisation’s workflows, third-party integrations, or community-built tools.
Discover plugins
Section titled “Discover plugins”# Browse all published casen pluginscasen plugin search
# Search by keywordcasen plugin search deploycasen plugin search slackResults are fetched live from the npm registry. Any package tagged with the casen-plugin keyword
appears here.
Install a plugin
Section titled “Install a plugin”# Install from npmcasen plugin install casen-deploy
# Install a local plugin during developmentcasen plugin install ./my-pluginPlugins are installed into ~/.casen/plugins/ and loaded automatically the next time casen starts.
Manage installed plugins
Section titled “Manage installed plugins”# List installed pluginscasen plugin list
# Show full details for one plugincasen plugin info casen-deploy
# Update a single plugin to the latest versioncasen plugin update casen-deploy
# Update all installed pluginscasen plugin update
# Remove a plugincasen plugin remove casen-deployOnce installed, plugin commands appear in the main TUI and in tab-completion alongside built-in commands.
To build your own plugin, see Plugin Authoring.
AIKit Skills
Section titled “AIKit Skills”casen ships four Claude Code slash commands for AI-driven process development.
Install them into the current project:
casen skills install| Command | Description |
|---|---|
/implement <description> | Generate BPMN + scaffold workers + validate + deploy |
/review <path> | Validate a BPMN file and get structured findings |
/test <path> | Analyse structure, worker coverage, and suggest scenarios |
/deploy <path> | Deploy a BPMN to local reebe or Camunda 8 |
See AIKit Skills for full documentation.
Worker commands
Section titled “Worker commands”# Run a simple auto-complete worker (for testing)casen worker payment-service
# Start scaffolded workers from ./workers/casen worker start
# Start a specific scaffolded workercasen worker start send-invoiceMCP Server Mode
Section titled “MCP Server Mode”casen can act as an MCP (Model Context Protocol) server, exposing all cluster operations
as tools to Claude Desktop, Cursor, or any MCP client:
casen mcpConfigure in Claude Desktop (claude_desktop_config.json):
{ "mcpServers": { "camunda": { "command": "casen", "args": ["mcp"], "env": { "CAMUNDA_CLIENT_ID": "...", "CAMUNDA_CLIENT_SECRET": "..." } } }}Now you can ask Claude: “Show me the open incidents on the invoice-approval process” or “Resolve all incidents on process instance 2251799813685249”.