CLI
render · watch · validate · fmt · generate · transform · import · export · simulate · run · serve · profile · markdown · asciidoc · update · completion · reverse · plugin
Browser UI
`kuml serve` starts a Ktor HTTP server with a CodeMirror 6 editor, 300 ms live SVG preview, theme/layout dropdowns, and SVG/PNG/LaTeX download buttons — no IDE required
LaTeX / TikZ
`kuml render --format latex` — TikZ output via `kuml-io-latex` for paper-quality typesetting; `--latex-standalone` for a self-contained `.tex` file; also available via `kuml serve` download
Live Run (`kuml run`)
`kuml run <script>` drives state machines and activity diagrams interactively: `--adapter stdin` (REPL), `--adapter mcp` (local REST server for programmatic event injection), `--adapter batch` (replay events JSON). `--restore`/`--snapshot-out` for persistent sessions.
Snapshot/Restore
`StateMachineRuntime.snapshotFull()` and `restoreFrom()` persist and resume complete runtime state — vertices, variable scope, event queue, trace. `MigrationPolicy` controls compatibility on model changes: Reject · AcceptIfFingerprintMatches · AcceptIfVerticesPresent.
Update check
`kuml update check` polls GitHub Releases · `kuml update notes` shows release notes for any version
MCP server
kuml-mcp binary — stdio JSON-RPC, 11 tools, MCP 2024-11-05: 6 authoring tools (`kuml.render/validate/list_elements/describe/generate/examples`) + 5 Runtime tools for AI-agent-driven simulation (`kuml.run.start/event/snapshot/patch/stop`). kUML Desktop can additionally host an optional local MCP server (Streamable HTTP on 127.0.0.1, bearer token, off by default) with 7 live tools on the open script (v0.55.0). Since v0.56.0, with a knowledge workspace open, 11 `kuml_desktop_workspace_*` tools read, write, validate, render and export the workspace to PDF.
Markdown
` ```kuml ` blocks → inline SVG, linked SVG or linked PNG
AsciiDoc / Antora
`kuml-asciidoc` preprocessor for `[kuml]` blocks — Antora-pipeline compatible
Pandoc filter
Lua filter for HTML / PDF rendering via Pandoc
All kuml-* artifacts are on Maven Central since 0.2.0
Homebrew
brew install kuml-dev/kuml/kuml — self-contained jlink runtime
choco install kuml — self-contained jlink runtime, no JDK required. Built and pushed automatically on every release tag.
Native installers
Linux DEB/RPM, macOS DMG, Windows MSI via jpackage — no JDK required. Docker: `ghcr.io/kuml-dev/kuml-cli`.
`sdk install kuml` on all 5 platforms (Mac ARM64, Mac x86_64, Linux x86_64, Linux ARM64, Windows x86_64). Not available yet — SDKMAN! vendor onboarding (API keys) still pending; use Homebrew or the native installers in the meantime.
Config DSL
`kuml.config.kts` for theme, render and stereotype defaults — `ServiceLoader` theme plugins
Codegen plugins
`kuml-gen-kotlin` · `kuml-gen-java` (+ JPA) · `kuml-gen-sql` — discoverable via SPI
Simulator
`kuml simulate` — headless interpreter for state machines (STM) and activity diagrams (ACT) with token-flow semantics; deterministic JSON traces
M2M Transform
Five transformers via `kuml transform --transformer <id>`: `uml-to-jpa`, `uml-to-rest` (OpenAPI 3.0), `uml-to-k8s`, `uml-to-docker`, `c4-to-uml`. Plug in custom transformers via ServiceLoader.
Plugin ID `dev.kuml` — `kumlRender`, `kumlGenerate`, `kumlValidate` build tasks with `@CacheableTask` and incremental build support. `kuml { … }` configuration block. Published on the Gradle Plugin Portal since v0.32.0.
Available on the **JetBrains Marketplace** (`dev.kuml.ide`) — install via *Settings → Plugins → Marketplace → search "kUML"*. Full plugin: inline error highlighting (Annotator + `kuml diagnostics`) with quick-fix suggestions, scrollable live SVG split-view (hand-drag panning, Ctrl+wheel zoom, icon toolbar), structure view, code folding for all DSL blocks, **38-item DSL autocomplete** and **rename refactoring** for `.kuml.kts` identifiers. K1 + K2 compatible. New in v0.8.0; Marketplace + scroll pane in v0.19.0.
Language Server (LSP)
`kuml-language-server` — an LSP4J-based, editor-agnostic Language Server: real-time diagnostics (via CLI subprocess, correct document ranges) and full 38-item DSL autocomplete with snippet-style insert text, shared with the JetBrains plugin through a common `kuml-lang-support` module. New in v0.29.0; shipped in the Homebrew formula, GitHub release zip, and Chocolatey package since v0.37.0 (previously buildable from source only).
TextMate grammar extends Kotlin with kUML DSL keywords, DSL snippets (`classOf`, `c4Model`, `association`, …), `kUML: Render to SVG` command, LSP client (diagnostics + completion via `kuml-language-server`), and a live-preview webview with sanitized SVG rendering. Configurable via `kuml.cliPath`, `kuml.theme`, `kuml.format` for rendering, plus `kuml.lspPath`, `kuml.serverUrl`, `kuml.diagnostics.enable`, `kuml.diagnostics.debounceMs` for the LSP client and live preview. LSP client + live preview shipped in `kuml-vscode` v0.2.0 (alongside kUML v0.29.0) — the extension now lives in its own repository (kuml-dev/kuml-vscode) and versions independently of the core kUML toolchain. v0.3.0 added an icon-only preview toolbar, a PNG export command, and live-preview zoom controls; automated Marketplace publishing via CI landed in v0.3.1.
Web Editor
`kuml-web` — browser-based editor with CodeMirror source pane and live SVG preview. Drag-and-drop node placement for class diagrams (pointer-based grid drop, hover/grabbing affordance, snap-preview highlight) persists the new position back into the DSL script. ERM diagrams render end-to-end in all four notations (Martin, Bachman, Chen, IDEF1X). New in v0.29.0.
Desktop App
`kuml-desktop` — Compose Desktop editor with RSyntaxTextArea and 300 ms live SVG preview, file open/save/save-as, recent files, persistent settings (theme, language, window geometry), plugin-manager UI with five tabs, and jpackage native installers (DMG/DEB/RPM/MSI). No JDK required. New in 0.12.0; extended in v0.38.0 with real undo/redo, SVG/PNG export, an unsaved-changes guard on file-tree navigation, and zoom/fit preview controls. v0.55.1 adds a draggable editor/preview divider and mouse pan/zoom in the preview. v0.55.3 shows workspace dialogs as real windows, uses ⌘ for menu shortcuts on macOS and gives the workspace document header Read/Edit tabs. v0.56.0 adds icons in the menu and on dialog buttons, an About dialog, a preview toolbar (actual size, centre, export to SVG and PNG, per-document PDF) and a simulator inspector.
Knowledge Workspaces
`kuml workspace init --mode knowledge|engineering` scaffolds an OKF-marked document workspace (`.kuml-workspace.toml`) with a 29-entry `type:` vocabulary spanning UML, SysML 2, BPMN and Service Blueprint. `kuml workspace validate --strict-vocabulary` catches unrecognised types with did-you-mean suggestions. `kuml workspace convert <src> --to okf|kts` bridges OKF knowledge-workspace notes and bare `.kuml.kts` engineering scripts — a text wrap/unwrap operation, since both formats share identical DSL text. `kuml-desktop`'s File → Open Workspace... adds a three-pane editor and viewer (document tree · Markdown · live SVG preview) behind a mandatory per-path trust dialog before any embedded kuml-block script is evaluated. New in v0.31.0; `workspace convert` and a handbook page on using an Obsidian vault as an OKF workspace added in v0.38.0. v0.56.0 adds PDF export of a whole workspace (handbook, per-document or diagram folio; CLI, Desktop and MCP).
Attribution / Watermark
Every rendered SVG carries an always-on `<!-- Generated by kUML vX.Y — kuml.dev -->` metadata comment. Opt-in visible "Powered by kUML" watermark via the `--watermark` CLI flag, `kuml { watermark.set(true) }` Gradle plugin property, or a `KumlPngRenderer` parameter — grows the canvas so the watermark structurally cannot overlap diagram content. New in v0.38.0.
AI Assistant
Koog-based multi-LLM agent built into `kuml-desktop`: streaming chat (OpenAI, Anthropic, Google, Ollama local), `@Tool`-based DSL edit suite, Custom-Provider SPI (`KumlAiProvider`) and Tool SPI (`KumlAiTool`) for third-party extensions. `kuml ai bench` runs reproducible latency/cost benchmarks. Multi-agent orchestration (Planner → Implementer → Reviewer). Compliance log (`~/.kuml/ai-audit.jsonl`). Master-password vault (AES-256-GCM, Argon2id). Patch-apply workflow: per-element diff preview with sandbox validation. Privacy mode: Ollama-only. Cost telemetry via Langfuse. New in 0.12.0; extended in 0.18.0.
Reverse Engineering
`kuml reverse <source-dir>` — Java sources via JavaParser, Kotlin via Kotlin Compiler PSI. `--lang java|kotlin|auto`, `--transformer <id>` pipes reverse output directly into any M2M transformer in one command. Output is a valid, `kuml fmt`-clean `.kuml.kts` file.
XMI Import/Export
`kuml import --format xmi` and `kuml export --format xmi` via optional `kuml-io-emf` (JVM-only). Full bidirectional UML ↔ EMF 2: Class, Interface, Enumeration, Property, Operation, Association, Generalization, InterfaceRealization, Dependency. Tool-compatibility filters for Enterprise Architect, Papyrus, Visual Paradigm, MagicDraw and Modelio. New in 0.12.0.
AUTOSAR ARXML
`kuml import --format arxml` and `kuml export --format arxml` via `kuml-io-autosar`. Supports AUTOSAR Classic R22-11 and Adaptive R23-03: SoftwareComponent, ComInterface, Port, Runnable, InternalBehavior, BehaviorSpec — XXE-hardened, no AUTOSAR tool licence required. Round-trip tested against ECU supplier archives. New in 0.20.0.
EMF Profile Conversion
`kuml export --format uml2-profile` writes a `.profile.uml` consumable by Papyrus and Eclipse tools; `kuml import --format uml2-profile` reads third-party profiles (MARTE, EAST-ADL, …) into kUML stereotype definitions. Metaclass extensions, stereotype generalizations, and enumeration-typed tagged values preserved in round-trip. New in 0.20.0.
C++ / C# Codegen & Reverse
`kuml-gen-cpp`: C++17 headers + implementations from UML class diagrams (inheritance, associations as smart pointers, enumerations). `kuml-gen-csharp`: C# 12 with `record`, `interface`, nullable refs, XML-doc comments. `kuml-plugin-cpp-reverse` and `kuml-plugin-csharp-reverse` parse source files back to `.kuml.kts` — no libclang dependency. `kuml reverse <dir> --lang cpp|csharp`. New in 0.20.0.
SMIL Animation
`kuml render --format svg-animate --trace <trace.json>` — post-processes SVGs with SMIL `<animate>` elements driven by execution traces. No JavaScript, no external runtime. Active-state highlighting, token flow animations, and edge traversal animations. Supports UML STM, SysML 2 STM/ACT, BPMN processes. New in 0.20.0. **Chrome + Safari fix in 0.20.1** (`xlink:href` + `xmlns:xlink` namespace injection in SmilEmitter).
BPMN⇌UML Activity Bridge
`kuml transform --transformer bpmn-to-uml-activity` and `--transformer uml-activity-to-bpmn` — bidirectional M2M bridge between BPMN 2.0 processes and UML Activity diagrams. Maps tasks↔actions, exclusive gateways↔decision/merge nodes, parallel gateways↔fork/join nodes, sequence flows↔control flows. Enables BPMN XML generation for Camunda/Zeebe from UML-authored models. New in 0.20.0.
`kuml plugin list/install/remove/info/permissions/reload/update` — five signed-SPI categories: Theme, Renderer, Layout, Codegen, Reverse. `kuml plugin init <name> --type <category>` scaffolds a new plugin from the official template. `kuml plugin update --all` batch-updates installed plugins. `kuml-plugin.json` manifest with `kumlVersionRange`, isolated `URLClassLoader` per plugin, EdDSA signature verification, Permission model with Sandbox enforcement. Five reference plugins shipped: PdV theme, PDF renderer (PDFBox), ELK layout bridge, TypeScript codegen, TypeScript reverse. Custom-Provider SPI and Tool SPI for AI integration. Browse and submit at plugins.kuml.dev. New in 0.13.0; extended in 0.18.0.
Blockchain Chain Adapters
`kuml chain connect/verify/events/sign/verify-sig` — anchor `.kuml.kts` models on-chain (Ethereum/L2 via `kuml-runtime-chain-evm`, Sui + Aptos via `kuml-runtime-chain-move`, CosmWasm/Substrate via `kuml-runtime-chain-cosmos`, ink!/SCALE via `kuml-runtime-chain-wasm`). `ModelHasher` for canonical SHA-256. EIP-712 signatures (`*.kuml.kts.sig`). `MultiChainAdapter` with `Flow.merge()` + three `ConflictResolver` strategies. DAP governance constitution showcase. New in 0.15.0; extended in 0.18.0.