Command reference
Camel Kit has two command surfaces: the CLI, run in a terminal, and the skills, invoked inside the coding agent. The CLI is camel-kit when installed standalone and camel kit when installed as a Camel JBang plugin; both provide the same commands. camel-kit --version prints the version. The skill invocation form depends on the agent: /camel-start in Claude Code, Bob IDE, Antigravity, Qwen Code and OpenCode, $camel-start in Bob Shell and Codex CLI, "Use the /camel-start skill" in GitHub Copilot CLI, /skill:camel-start in Pi (see Supported AI agents).
CLI commands
Development builds use Aesh for one-shot execution. Use -h/--help on the root, init, doctor, target, hook or ship, and the help subcommand for doc, graph and plan. Use -V/--version at the CLI root for the Kit version. See development host compatibility. init -p one=1 two=2 accepts several property values; Ship’s -p consumes one value per occurrence. Commas in property values are preserved.
Argument files are supported by standalone commands except direct camel-kit ship invocations, where @ values are literal. The Camel plugin host expands argument files before loading Kit: use @@literal to pass @literal, or an attached value such as --text=@literal. Shell quoting alone does not disable argument-file expansion. This is a plugin syntax change in the development version; see Ship literal context.
init
Creates a project, or adds Camel Kit to the current directory with --here. See Create a project for what is generated.
camel-kit init <project-name> [options] camel-kit init --here [options]
| Option | Default | Description |
|---|---|---|
|
| Coding agent to configure: |
|
| Initialize in the current directory |
|
| Reinitialize a project that already has |
| none | Accept a shared file, a selected catalog file, or all selected files under a catalog directory. The option is repeatable. An ineligible path is rejected before generation |
|
| List changed paths, previous proposal moves and the count of unchanged catalog files. Runs the same validation as |
|
| Replace the complete Maven wrapper; use |
|
| Run the existing project’s build and tests once to record baseline results; never runs during |
|
| Source platform of a migration: |
| the configured | Citrus version for the test schemas and the generated test dependencies |
|
| (development snapshot only) Include the Citrus MCP server in agent configuration. When omitted, no Citrus server is generated; use this flag if your project needs Citrus test integration. Released versions (0.4.1 and earlier) include Citrus by default. |
|
| Skip the external catalog fetch |
| Override a configuration property, repeatable: | |
|
| Configuration properties file |
|
| No banner, TUI, progress or summary, for scripted use |
If a symbolic link lies on the path from the workspace to the skills directory, init and init --dry-run report the link and exit with code 1. If init reports Cannot inspect, restore read and search access on the directory named in the message.
When a distribution drops a skill, guide or command stub, init --force removes a copy matching its ledger record or a known pre-ledger release for that assistant. Local edits stay in place. Compare the .proposed copy under .camel-kit/conflicts/catalog/ or accept the generated version with --force --replace <path>. For example, --replace .claude/skills accepts the selected Claude skills and guides. Git line-ending conversion is recognized for text resources. A retired entry point can remain discoverable until you move or remove it manually. See reinitializing existing projects.
Configuration is read in three layers, the later overriding the earlier: the built-in distribution.properties, the user file given with -c or at its default path, and the -p flags. Any distribution property can be overridden; the common ones are camel.main.version, camel.springboot.version, springboot.bom.version, camel.quarkus.version, quarkus.platform.version, maven.dependency.plugin.version, camel.mcp.version, knowledge.mcp.group-id, knowledge.mcp.version, citrus.version and citrus.mcp.version. The selected runtime and versions are persisted in .camel-kit/config.properties.
The default Knowledge runner is the published 0.0.2 artifact under io.github.luigidemasi. To use a migrated source build, override both knowledge.mcp.group-id=org.apache.camel and knowledge.mcp.version=0.0.3-SNAPSHOT. Changing the group alone would request an artifact that was never published.
init checks Java, JBang, Camel JBang and the Camel test plugin and reports missing tools as warnings; it never fails on them. On terminals with a native image protocol it shows a split-screen progress view, falling back to coloured text elsewhere.
target
Print the active runtime profile as JSON. Add --migration for the destination saved by the migration workflow. Incomplete selections or evidence return exit code 1. Incompatible options return usage error 2.
camel-kit target [--project-dir <path>] [--migration] [--pom-template] camel-kit target [--project-dir <path>] [--migration] [--check-effective-pom <xml> [--dependency-tree <json>]] [--check-catalog <json>]
--pom-template prints a runtime-specific Maven template ready for the four project identity fields. --check-effective-pom reads a leaf module’s help:effective-pom XML and checks the managed core, framework, starter or extension versions and the build plugin. For an existing application, add a JSON --dependency-tree from the same module to check its resolved transitive Camel core. See recovering a BOM-only project’s versions. The two checks can run together. Evidence files must be inside the workspace. --check-catalog reads a JSON evidence file. It contains the captured profile under profile and the two MCP calls under list and maven. Each call contains its tool name, actual arguments and original result. A successful check prints the profile. Stale or mismatched evidence exits 1 with an incomplete catalog diagnostic.
doctor
Validates a generated workspace and prints PASS, WARN and FAIL findings with remediation text. Missing external prerequisites are warnings; broken generated files are failures and return exit code 1.
camel-kit doctor [--project-dir <path>] [--json]
It checks .camel-kit/config.properties, the command stubs where the target uses them, the skill directories and manifests, the supporting files selected by the catalog, the registered workspace templates, the exposure of user-invocable commands, the MCP filtering and permission fields the runtime supports, graph availability, the command prefix, the prerequisites and common stale references in generated files. Target specifics: for Codex it parses .codex/config.toml, the exact MCP allowlists, the prompt approval modes and the required fields of every custom-agent file; for Bob 2 it fails each public skill hidden by user-invocable: false; for Claude Code it accepts the legacy agent.folder=.claude/commands of a workspace that has not been regenerated yet; for Qwen it checks includeTools and trust; for OpenCode it evaluates all configuration layers as one and names the file that defines each rule. Configurations that predate the current filter and permission fields produce upgrade warnings; malformed current ones fail. Internal skills must exist as skills but must not be exposed as command stubs. A missing catalog-selected file produces a FAIL finding that names its path and an exit code of 1. Doctor also fails if a symbolic link lies on the path from the workspace to the selected assistant’s skills directory. It reports the recovery directory of an interrupted catalog update and identifies retained, recorded skill entry points and legacy command stubs. See recovery instructions.
In the development snapshot, Citrus MCP configuration is optional. When the project has not opted in, doctor accepts a missing citrus entry; when opted in, a missing entry is a failure. Any existing Citrus entry is validated, including the tool filtering and permission fields supported by the target. An invalid entry produces a FAIL finding and exit code 1 even when the project has not opted in. These checks inspect configuration without starting the Citrus server or testing its availability. For compatibility, projects with citrus.mcp.version but no citrus.mcp.enabled are treated as opted in.
nextId
Creates the next numbered pipeline directory under docs/camel-kit/ and prints its ID. The slug is lowercase letters, digits and single hyphens.
$ camel-kit nextId order-processing 001-order-processing $ camel-kit nextId inventory-sync 002-inventory-sync
Exit code 1 means an invalid slug or a directory that could not be created.
doc
Manages the provenance and staleness of pipeline artifacts through YAML front matter.
camel-kit doc init --by <skill> [--from <source>] <file> camel-kit doc check <file> [--project <root>] camel-kit doc publish-validation --project <root> --input <draft> [--pipeline <id>] camel-kit doc snapshot --project <root> --source <path> [--source <path> ...] camel-kit doc record <file> --project <root> --snapshot <json> --evidence <report> --result <complete|partial|failed> camel-kit doc stale --reason "..." [--cascade] <file> camel-kit doc unstale <file>
doc publish-validation moves a nonempty docs/validation-report-draft-<name>.md to the report path it prints. A project report gets a numeric suffix when the minute’s filename is taken. Only --pipeline selects an existing pipeline directory. See camel-validate.
With --project, doc check also checks the source-bound review receipt and reports unchanged, stale or unverified, with reconciliation.changedPaths identifying changed inputs. Without it, the legacy behavior below is preserved. snapshot captures review inputs; record binds a review result to unchanged sources, document and evidence without editing the document. They do not perform semantic review. See the lifecycle and worked example for scope, limits and status semantics.
Each pipeline artifact carries two blocks: generated (when, by which skill, from which upstream artifact; written once by doc init, which is idempotent) and staleness (written by doc stale and doc unstale). doc check prints the state as JSON and exits 0 whether or not the file is stale; a file without front matter reports stale: false. Every subcommand exits 1 on a missing file, an I/O failure or invalid arguments such as a blank --reason. doc stale always marks its target; with --cascade it also walks the sibling files whose generated.from names the target and marks them stale, recursively. After amending a design, mark each direct child separately (the implementation plan, and the migration runbook for migration pipelines) rather than the fresh design itself.
camel-kit doc init --by camel-plan --from design-spec.md \
docs/camel-kit/001-order-processing/implementation-plan.md
camel-kit doc init --by camel-brainstorm \
docs/camel-kit/001-order-processing/design-spec.md
camel-kit doc check docs/camel-kit/001-order-processing/implementation-plan.md
camel-kit doc stale --reason "design spec was amended" --cascade \
docs/camel-kit/001-order-processing/implementation-plan.md
camel-kit doc unstale docs/camel-kit/001-order-processing/implementation-plan.md hook
Run a required assistant workflow contribution from the project root.
camel-kit hook --id <step-contribution> --input <caller.json> [--resume <pending.json>] [--result <skill-result.json>]
The CLI prints a JSON request for an installed skill or invokes the bundled Java provider. Only a verified passed result exits zero. See responding to a question or failed check.
graph
Builds and queries the project’s property graph, persisted at .camel-kit/project-graph.json.
camel-kit graph analyze mule # summarize the graph with the Mule adapter camel-kit graph generate # build or rebuild the graph camel-kit graph generate --require-parser mule-xml # require the bundled Mule parser camel-kit graph stats # availability, node and edge counts camel-kit graph find --type CAMEL_ROUTE # nodes by type, name or ID camel-kit graph neighbors <node-id> # connected nodes camel-kit graph path <from> <to> # shortest path camel-kit graph subgraph <node-id> # the subgraph around a node camel-kit graph route-flow <route-id> # ordered steps of a route camel-kit graph impact <node-id> # bounded transitive reachability camel-kit graph route-topology # route-to-route connections camel-kit graph dead-code # structural retirement candidates camel-kit graph project-norms # naming, error-handling and step norms camel-kit graph project-context # context for implementation camel-kit graph route-context <route-id> # context for testing camel-kit graph migration-context <route-id> [--depth N] camel-kit graph visualize # interactive HTML page
See Graph intelligence for what each command returns.
plan analyze
Reads the yaml plan-metadata block of an implementation plan (falling back to the Markdown tasks for older plans) and prints the dependency waves and the task dependencies as JSON. /camel-execute runs it before dispatching tasks; see Waves.
camel-kit plan analyze docs/camel-kit/001-order-processing/implementation-plan.md
ship
Starts, inspects, resumes or aborts a Ship run (Technology Preview). The full option table, the oversight policies, the state and recovery rules and the examples are on the Ship page.
camel-kit ship [--text TEXT]... [--document PATH]... [--ask always|smart|never]
[--start-from STAGE]
camel-kit ship --resume RUN_ID | --status RUN_ID | --abort RUN_ID
camel-kit ship --submit RUN_ID --result PATH [--json] Skills
| Command | Purpose | Page |
|---|---|---|
| Routes the request to the right stage or utility | |
| Design interview and design specification; | |
| Migration discovery, analysis, design and runbook; | |
| Implementation plan from the approved design; | |
| Wave-based implementation with adversarial, spec and quality reviews and one runtime verification pass; | |
| Check the selected project, or the pipeline explicitly named by you or Execute | |
| Forwards its options once to | |
| Apache Camel documentation questions through the Knowledge MCP server | |
| Author or run Citrus tests for selected routes | |
| Create a runnable sample or take a saved sample into design | |
| Diagnosis and repair of a broken route outside a pipeline |
In a chained run started with /camel-start, or with /camel-brainstorm or /camel-migrate without a pipeline ID, the stages hand off to each other after the single design approval. A stage invoked with a pipeline ID reads its input from disk, writes its artifact and stops. The internal skills (camel-design, camel-implement, camel-test, camel-verify) have no command; see Internal skills.
Cheat sheet
# CLI camel-kit init my-project --ai claude # create a project camel-kit init --here --ai claude --source-platform mulesoft camel-kit doctor # validate the workspace camel-kit nextId order-processing # next pipeline ID camel-kit doc check docs/camel-kit/001-order-processing/design-spec.md camel-kit graph stats # is the graph available? camel-kit plan analyze docs/camel-kit/001-order-processing/implementation-plan.md camel-kit ship --document requirements.md # Technology Preview # In the agent /camel-start # route the request /camel-brainstorm /camel-migrate # design stage /camel-plan /camel-execute /camel-validate <PIPELINE_ID> /camel-knowledge /camel-debug /camel-ship /camel-citrus /camel-prototype