CLI reference
The themarch binary ships with six commands and a handful of global flags.
Global flags
Section titled “Global flags”| Flag | Purpose |
|---|---|
-v, --version | print the CLI version |
--dry-run | simulate, do not apply |
--verbose | extra logs |
--no-prompt | non-interactive (use defaults / fail if a required input is missing) |
--config <path> | custom config file (currently a no-op stub) |
themarch init <name>
Section titled “themarch init <name>”Scaffold a new project from a template.
themarch init my-app --template saas-b2bthemarch init lib-x --template lib --no-install --no-gitFlags: -t/--template, --features <list>, --install/--no-install, --git/--no-git, --docker/--no-docker.
themarch enhance [path]
Section titled “themarch enhance [path]”Add the themarch workflow to an existing repo without breaking anything.
themarch enhance .themarch enhance . --with cursorrules,claude-md --no-promptThe mapping from inferredStackProfile to file variants is:
| Profile | Cursor rules | CLAUDE.md |
|---|---|---|
saas-b2b | configs/cursorrules/saas-b2b.md | configs/claude-md/saas-b2b.md |
api-only | configs/cursorrules/api-only.md | configs/claude-md/api-only.md |
lib | configs/cursorrules/library.md | configs/claude-md/library.md |
unknown | configs/cursorrules/generic.md | configs/claude-md/generic.md |
themarch add-feature <name>
Section titled “themarch add-feature <name>”Orchestrate skills to scaffold a feature end-to-end.
themarch add-feature items # dry-run previewthemarch add-feature items --apply # actually writethemarch add-feature items --with-table --with-rls --applythemarch add-feature items --apply --continue-on-errorIf the working tree is dirty, the CLI offers to stash. On per-skill failure (without --continue-on-error), partial writes are stashed under themarch:add-feature:rollback:<feature>.
themarch skill list / themarch skill run <name>
Section titled “themarch skill list / themarch skill run <name>”themarch skill listthemarch skill run add-table --input tableName=invoicesthemarch mcp <list|add|remove>
Section titled “themarch mcp <list|add|remove>”themarch mcp listthemarch mcp add postgres-local --target cursorthemarch mcp add skills --target claude-codethemarch mcp remove knowledge --target cursorTargets resolve to OS-aware paths. macOS / Linux / Windows are all supported.
themarch update
Section titled “themarch update”Refreshes the local skills catalog. Currently a stub — the catalog ships with the CLI binary.