CLI Reference
This page is the readable entrypoint for the commands most users should learn first. For complete live behavior, run mdkg --help and command-specific help in your installed version.
Core commands
Section titled “Core commands”mdkg init --agentinitializes repo-local project memory for human and agent workflows.mdkg indexrebuilds local search and capability caches.mdkg statusinspects repo, package, graph, selected-goal, cache, and project DB health.mdkg newcreates graph nodes and workflow files.mdkg showinspects a node.mdkg searchfinds graph nodes.mdkg goalmanages long-running objectives and active work routing.mdkg taskstarts, updates, and completes task-like work nodes.mdkg packbuilds deterministic context for a work node.mdkg handoff createcreates copy-ready agent handoffs.mdkg validatevalidates graph integrity and warning categories.mdkg skillmanages repo-local agent skills and mirrors.mdkg fixplans and applies selected repairs, including ID repair.
Advanced alpha commands
Section titled “Advanced alpha commands”The CLI also includes advanced graph, archive, bundle, subgraph, project DB queue, MCP, workflow mirror, and graph movement commands. Treat those surfaces as public alpha and validate them in your repo before depending on them.
Use these docs next:
Maintainers can refresh this reference from the command contract with:
npm run docs:generatenpm run docs:checkFor integration metadata, see dist/command-contract.json in the mdkg repository.