Home / Docs / CLI / bpmnkit CLI

bpmnkit CLI

Interactive TUI for managing Camunda 8 clusters from the terminal.

Core Semver at 1.0: nothing breaks without a major release.

bpmnkit is an interactive terminal UI (TUI) for managing Camunda 8. Navigate with arrow keys, no flags to memorize.

Installation

Since 2.0 bpmnkit is a native binary (one bin, bpmnkit; the old alias casen is gone). Pick one:

npm install -g @bpmnkit/cli                    # native binary via per-platform packages
npx @bpmnkit/cli --help                        # no install
brew install bpmnkit/tap/bpmnkit-cli          # Homebrew
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/bpmnkit/bpmnkit/releases/latest/download/bpmnkit-cli-installer.sh | sh

PowerShell and MSI installers are on the same GitHub release; bpmnkit self update updates installs made with the shell, PowerShell or MSI installers. Commands the binary does not run yet fall back to @bpmnkit/cli-legacy (set BPMNKIT_NO_LEGACY=1 to disable). Scripts that used alias casen must call bpmnkit.

Quick Start

bpmnkit

The main menu appears. Use ↑ ↓ to navigate, Enter to select, Escape to go back.

bpmnkit
├── generate        — generate or modify BPMN files without the TUI (alias: gen)
│   ├── bpmn        — templates, CompactDiagram JSON, or patch existing files
│   └── types       — TypeScript types for job workers, generated from BPMN
├── 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
├── build           — spec → .bpmn + forms → lint → deploy in one call (bpmnkit build <spec>)
├── check           — check .bpmn, .dmn and .form files in one call (bpmnkit check <file...>)
├── 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
├── migrate         — migrate models from other engines to Camunda 8
│   └── c7          — convert Camunda 7 models and report the manual work
├── 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/
│   └── wasm        — build, test and run sandboxed Wasm workers ([reference](/docs/cli/wasm))
├── 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 plugin

Generate BPMN files

bpmnkit 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.

bpmnkit generate bpmn --template approval --process-id leave-request
bpmnkit generate bpmn --input order.bpmn --dump-compact   # inspect as JSON for AI
bpmnkit generate bpmn --input order.bpmn --patch '{"elements":[...],"flows":[...]}'

bpmnkit gen types turns BPMN files into TypeScript types for job workers — job types, their variables, output and headers, message names and error codes — and can check that every job type has a worker:

bpmnkit gen types processes/ --out src/generated/bpmn-types.ts
bpmnkit gen types processes/ --check-workers "src/**/*.ts" --strict

See bpmnkit generate for full documentation.

bpmnkit template writes one of the runnable templates from the gallery into your project. You get the .bpmn, a .bpmn.tests.json file with its scenarios, and any .dmn or .form files the process uses. The skeletons from bpmnkit generate bpmn --template are empty starting shapes. A gallery template is a complete process with its job types, mappings and tests.

bpmnkit template list --category approvals
bpmnkit template use expense-approval processes/   # --force overwrites existing files

See Process Templates for what each template contains and how to run its scenarios.

View BPMN, DMN, and Form files

bpmnkit view opens a local browser-based viewer. Accepts individual files, folders, or a mix.

bpmnkit view bpmn ./processes/     # all .bpmn files in a folder
bpmnkit view dmn routing.dmn       # DMN decision table
bpmnkit view open ./project/       # any mix of .bpmn/.dmn/.form

See bpmnkit view for full documentation.

Connection Profiles

A profile stores the connection details for a Camunda cluster. For Camunda SaaS, import the credentials file Hub offers when you create an API client for a cluster:

bpmnkit profile import my-saas-cluster ./camunda-credentials.sh
bpmnkit profile use my-saas-cluster

Or give every value yourself. The base URL is the cluster’s REST address ending in /v2:

bpmnkit profile create local --base-url http://localhost:8080/v2 --auth-type none
bpmnkit profile create my-saas-cluster \
  --base-url https://bru-2.zeebe.camunda.io/<cluster-id>/v2 \
  --auth-type oauth2 --client-id <id> --client-secret <secret> \
  --token-url https://login.cloud.camunda.io/oauth/token

Profiles are saved to config.json in the OS config directory (~/.config/casen on Linux, ~/Library/Application Support/casen on macOS, %APPDATA%\casen on Windows), readable by your user only.

Common Workflows

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       3

Start a process instance

Navigate to: process → start → Enter

Select process: invoice-approval
Variables (JSON): {"invoiceId": "inv-001", "amount": 5000}

Resolve an incident

Navigate to: incident → list → Enter

Select the incident with Enter, choose “Resolve” from the action menu.

Publish a message

Navigate to: message → publish → Enter

Message name: payment-confirmed
Correlation key: ord-456
Variables (JSON): {"method": "card"}

Plugins

bpmnkit’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

# Browse all published bpmnkit plugins
bpmnkit plugin search

# Search by keyword
bpmnkit plugin search deploy
bpmnkit plugin search slack

Results are fetched live from the npm registry. Any package tagged with the casen-plugin keyword appears here.

Install a plugin

# Install from npm
bpmnkit plugin install casen-deploy

# Install a local plugin during development
bpmnkit plugin install ./my-plugin

Plugins are installed into ~/.casen/plugins/ and loaded automatically the next time bpmnkit starts.

Manage installed plugins

# List installed plugins
bpmnkit plugin list

# Show full details for one plugin
bpmnkit plugin info casen-deploy

# Update a single plugin to the latest version
bpmnkit plugin update casen-deploy

# Update all installed plugins
bpmnkit plugin update

# Remove a plugin
bpmnkit plugin remove casen-deploy

Once installed, plugin commands appear in the main TUI and in tab-completion alongside built-in commands.

To build your own plugin, see Plugin Authoring.

BPMN generation pipeline

Every BPMN process is authored as a ProcessPlan JSON file — never hand-written XML — and compiled deterministically:

# Print the ProcessPlan JSON format reference (schema + field notes)
bpmnkit plan schema

# Compile a plan to laid-out, deployable BPMN
bpmnkit synth synth order-process.plan.json --output order-process.bpmn

# Extend an existing process: lift it back to plan form, then merge a delta plan into it
bpmnkit plan extract order-process.bpmn
bpmnkit synth synth delta.plan.json --merge order-process.bpmn --output order-process.bpmn

# Find and inspect a Camunda connector template
bpmnkit connector search slack
bpmnkit connector show io.camunda.connectors.Slack.v1
bpmnkit connector show io.camunda.connectors.HttpJson.v2 --filter timeout --condensed
bpmnkit connector apply order-process.bpmn Call http --values call.json   # --set k=v overrides the file

# Deploy-readiness gate, then deploy
# (a .bpmnlintrc in the diagram's folder or above is honoured; --no-bpmnlintrc ignores it)
bpmnkit lint lint order-process.bpmn --profile deploy
bpmnkit check order-process.bpmn review.form discount.dmn --deploy   # BPMN, DMN and forms together
bpmnkit deploy deploy order-process.bpmn                   # local Reebe
bpmnkit deploy deploy order-process.bpmn --target camunda8 # active Camunda 8 profile
# `bpmnkit deploy` runs the deploy gate before it sends a .bpmn file and exits 1 with its
# lines when Camunda 8 would refuse it; --no-validate sends the file anyway.

bpmnkit synth reports any problems keyed by JSON path in the plan (e.g. steps[2].connector.values.token) — fix the plan, never the XML, and re-run. A model Camunda 8 would refuse on deploy is not written: each reason is a problem keyed element:<id>, worded Not deployable on Camunda <version>: <message> (zeebe/<rule>). --placeholders fills the values the plan leaves out (a job type, a correlation key) with documented placeholders and lists each one to replace. From code, compilePlan and mergePlan take validate (default true), placeholders and camundaVersion; a refused model returns no xml, and the fills are in result.placeholders. If the plan has a tests array, bpmnkit synth also writes a <file>.bpmn.tests.json sidecar, runnable with bpmnkit test test <file>.bpmn.

Run process tests

bpmnkit test test order-process.bpmn
bpmnkit test test order-process.bpmn --scenarios cases.json --case "approves the order"

bpmnkit test test runs a test file on Reebe compiled to WebAssembly. It needs no Java or Docker.

OptionDescription
--scenarios <file>, -sThe test file. Default: <file>.bpmn.tests.json, then <name>.test.json beside the BPMN file
--case <name>Run only this test case. Repeat it to run several

It accepts two file formats. A file whose $schema contains cpt-test-cases is Camunda process test (CPT) JSON. Any other file is the older scenario array that bpmnkit synth writes. Both run on the same engine. The command exits 0 when every case passes. A CPT failure prints instruction <index> (<type>): <message>. See Does it run? Test it with bpmnkit test for the supported instructions and the known gaps.

--check also proves the result runs:

  • It dry-runs each process once, with every connector and job mocked.
  • It lists the secrets the diagram reads, to create in the cluster before deploying.

A run that cannot reach its end fails the command:

$ bpmnkit synth synth order-process.plan.json --check
✓ Wrote order-process.plan.bpmn
✓ Dry run of order-validation-failed reaches "Ops notified" · 1 connector(s) mocked
Secrets to create in the cluster before deploying:
  SLACK_OAUTH_TOKEN — "Slack Outbound Connector"

With --json, the findings are in the output’s check field.

See Building Processes with AI and AI Agents for full walkthroughs.

bpmnkit lint lint --profile sketch skips every Camunda 8 deployability rule, for a process that does not target an engine yet. A user task without a form is reported only under --profile deploy or with --user-task-forms require. To check DMN and form files too, use bpmnkit check.

bpmnkit lint reads a .bpmnlintrc if your project has one. See bpmnlint Compatibility for how the rules map and how to run your own bpmnlint-plugin-* rules.

AIKit Skills

bpmnkit ships six lightweight, CLI-only Claude Code slash commands (no MCP server, no proxy):

bpmnkit skills install
CommandDescription
/implement <description>Write a plan, compile it, test it, scaffold workers, deploy
/review <path>Run the full lint report and report a deploy-ready verdict
/test <path>Run scenario tests and report path/branch coverage
/deploy <path>Deploy-readiness gate, then deploy to local Reebe or Camunda 8
/dmn <description>Write a DMN decision table from bpmnkit agent-card dmn
/form <description>Write a Camunda form from bpmnkit agent-card form

bpmnkit agent-card bpmn|dmn|form prints the agent card for a file type: a ~1–1.5k-token cheat sheet with a runnable create/export/edit/validate script, the top options and the traps. --text on bpmn adds the line-format guide parseProcessText reads.

For the richer skill set (/bpmnkit:implement, :extend, :agent, :connect, plus generated reference docs), install the Claude Code plugin instead: /plugin marketplace add bpmnkit/bpmnkit then /plugin install bpmnkit@bpmnkit (Claude Code plugin). See AIKit Skills for full documentation.

Worker commands

# Run a simple auto-complete worker (for testing)
bpmnkit worker payment-service

# Start scaffolded workers from ./workers/
bpmnkit worker start

# Start a specific scaffolded worker
bpmnkit worker start send-invoice

Agent workforce

Hire coding-agent CLIs as durable job workers. They serve the .agent() steps of @bpmnkit/flow flows — any service task with job type agent:<role> or agent:<rank>:<role> and a prompt task header. See Durable Agent Flows.

# Hire: everything after -- is the command; the prompt goes on stdin unless an argument has {prompt}
bpmnkit agent hire claude --roles plan,pr-review --rank senior -- claude -p
bpmnkit agent hire copilot --roles feature --instances 3 -- copilot -p "{prompt}"

bpmnkit agent list            # hired agents and the job types they serve
bpmnkit agent fire copilot    # remove one
bpmnkit agent work            # run the workforce against the active profile until Ctrl+C

Local engine (Reebe)

Reebe is a dev/test workflow engine (~50 MB) that serves the Zeebe API locally, so you can deploy and run processes on your machine or in CI without a Camunda 8 cluster. It is Experimental and single-node: do not run it in production. Reebe is a clean-room implementation written from Camunda’s public documentation, and is not affiliated with or endorsed by Camunda. “Zeebe” and “Camunda” are trademarks of Camunda Services GmbH.

# Embedded SQLite, no external database
bpmnkit reebe start

# REST on 26500, where ZEEBE_ADDRESS points by default. The gRPC gateway uses 26500
# unless told otherwise, so move it out of the way.
bpmnkit reebe start --port 26500 --grpc-port 26501

# PostgreSQL instead of the embedded database
bpmnkit reebe start --database-url postgres://user:pass@localhost/reebe
FlagDefaultDescription
--port8080HTTP (REST) port to listen on
--grpc-port26500Zeebe gRPC gateway port; must differ from --port
--database-urlembedded SQLitePostgreSQL connection URL
--configconfig.tomlPath to the engine config file

bpmnkit reebe on its own is shorthand for bpmnkit reebe start. The command runs the reebe-server binary. If it is not on your PATH, build the embedded (SQLite) server with cargo install --path apps/reebe/crates/reebe-server --no-default-features --features embedded, or the PostgreSQL one — which needs --database-url — without the two feature flags.

Local proxy

bpmnkit proxy start (or bpmnkit proxy) starts the local proxy on port 3033. Studio, the bpmnkit.com editor and Operate page, and the desktop app use it for AI, deploys, Camunda API calls with your stored profiles, and Studio’s project folders.

bpmnkit proxy start
FlagDefaultDescription
--port <n>3033Port to listen on.
--host <addr>loopbackInterface to listen on. By default the proxy listens on 127.0.0.1 and ::1 only. Any other value exposes it to the network and prints a warning.
--allow-origin <list>—Extra browser origins that may call the proxy, comma-separated.
--allow-host <list>—Extra Host names the proxy answers to, comma-separated. You need this with --host 0.0.0.0.
--root <list>—Folders the file routes may always use, separated like PATH (: on macOS and Linux, ; on Windows).

The same settings are read from BPMNKIT_PROXY_HOST, BPMNKIT_PROXY_ALLOWED_ORIGINS, BPMNKIT_PROXY_ALLOWED_HOSTS and BPMNKIT_PROXY_ROOTS, for example when you run the bpmn-ai-server binary directly. Flags add to the lists from the environment.

Who can use the proxy

The proxy acts with your Camunda credentials and reads and writes files. Any web page open in your browser can send requests to localhost, so the proxy checks every request:

  • Origin. A browser request must come from https://bpmnkit.com, https://bpmnkit-studio.pages.dev, the desktop app (tauri://localhost, http(s)://tauri.localhost), any localhost, 127.0.0.1 or [::1] origin on any port, or an origin you allow with --allow-origin. Other origins get 403 and no CORS headers. Cross-site browser requests without an Origin header, such as an image tag, are also refused. Programs that send no Origin (the CLI, the MCP server, curl) are served.
  • Host. A request must name the proxy as localhost, 127.0.0.1 or [::1], or as a host you allow with --allow-host. This stops DNS-rebinding pages.
  • Files. The /fs/* routes and /element-templates work only inside workspace roots: folders you pass with --root, and project folders Studio opens. The proxy does not open the filesystem root, your home directory, a folder that contains your home directory, or a hidden folder such as ~/.ssh unless you pass it with --root. Inside a root, only .bpmn, .dmn, .form and .md files (and their .bpmnkit metadata) can be read, written, moved or deleted. Paths with .., and symlinks that lead out of the root, are refused.
  • AI CLIs. The AI routes (/chat, /improve, /operate/chat, /operate/incident-assist, /operate/ai-search), the io.bpmnkit:llm:1 worker and bpmnkit ask start claude, copilot or gemini with permission checks on and no built-in tools: the model cannot run commands, read or write files, or open URLs. Each run starts in an empty temporary folder and loads none of your own MCP servers, settings, plugins or extensions. A /chat run that edits a diagram gets only the proxy’s diagram tools (get_diagram, compose_diagram, add_elements, remove_elements, update_element, set_condition, add_http_call, find_connectors, add_connector, replace_diagram); they change the diagram in the MCP server’s memory, and compose_diagram runs the model’s code in an isolated V8 isolate. The connector tools also read the bundled connector catalog and API index, and nothing else. Chat text, diagrams, incident details and variable values reach the model fenced as untrusted data.
CLIFlags the proxy passes
claude-p --system-prompt … --tools "" --strict-mcp-config --setting-sources "" --permission-mode dontAsk --disable-slash-commands --no-session-persistence, plus --mcp-config <run config> --allowedTools mcp__bpmn__… for diagram edits. The conversation goes on stdin.
copilot-p … --deny-tool=shell --deny-tool=write --deny-tool=url --disable-builtin-mcps --no-custom-instructions --no-ask-user --disallow-temp-dir, plus --additional-mcp-config @<run config> --allow-tool=bpmn(<tool>) per diagram tool.
gemini--prompt … --approval-mode default --admin-policy <deny-all> --policy <deny-all> --extensions none --skip-trust, where the policy denies every tool and trust covers only the empty run folder.

To use the proxy from your own web app, allow its origin:

bpmnkit proxy start --allow-origin https://modeler.example.com

To reach the proxy from another machine, which gives that network your credentials and files, listen on all interfaces and name the host clients use:

bpmnkit proxy start --host 0.0.0.0 --allow-host devbox.lan

MCP Server Mode

bpmnkit proxy mcp starts BPMN Kit’s MCP (Model Context Protocol) server on stdio, so Claude Code, Claude Desktop, Cursor or any MCP client can create, validate, simulate and deploy processes, and call any Camunda 8 REST operation through camunda_search and camunda_execute:

bpmnkit proxy mcp

Configure it in Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "bpmnkit": {
      "command": "bpmnkit",
      "args": ["proxy", "mcp"]
    }
  }
}

The server uses the active bpmnkit profile for cluster calls; set one with bpmnkit profile first, or pass ZEEBE_ADDRESS, ZEEBE_CLIENT_ID and ZEEBE_CLIENT_SECRET in env. The full tool list is in the AI guide.

Now you can ask Claude: “Show me the open incidents on the invoice-approval process” or “Resolve all incidents on process instance 2251799813685249”.