Expose codepotx runtime operations through the codepotx command without duplicating engine logic.
codepotxOn this page
codepotx-cli
codepotx-cli exposes the codepotx terminal command. It owns argument parsing, project discovery, runtime loading, terminal presentation, and exit codes. The codepotx package owns authoring, template compilation, generation planning, filesystem safety, diagnostics, events, and execution.
The package is under active development with version 0.0.0. It is documented here as the implemented workspace CLI, not as a stable published npm release.
Why the CLI stays thin
This boundary prevents terminal behavior from becoming a second engine. Web, editor, MCP, desktop, test, and embedded clients can call the same runtime operations.
Main commands
Learning path
- Getting started
- Command reference
- Global and command options
- Project-local runtime resolution
- JSON output and automation
- Troubleshooting
Package boundaries
New compiler, authoring, templating, generation, platform, or safety behavior belongs in codepotx. The CLI may translate user input into runtime requests and render runtime responses; it must not duplicate domain logic.
Development
The package is ESM-only and targets Node.js 22.18 or newer.