matcha
The green-tea CLI — scaffold, run, and generate green-tea apps from a single native binary. No JS runtime required to install or operate.
Install
|
Installs a prebuilt binary to ~/.local/bin — no Rust required. Env vars go on
the sh side of the pipe:
| MATCHA_VERSION=v26.7.0 MATCHA_INSTALL_DIR=/usr/local/bin
From source (requires Rust — compiles and installs):
Usage
The starter
matcha new <name> (no flags) scaffolds a live app: it serves an index.html
with the green-tea logo and streams a rotating zen message over @Sse('/zen').
Open the browser and it's already alive — matcha run boots it.
create / add auto-wiring
create and add edit your TypeScript with tree-sitter: they insert imports
and wire pieces into the right @Module array or controller. Edits are
idempotent and revert themselves if they would break the file's syntax. Pass
--check to create to type-check with your project's runtime afterward.
Runtime detection
matcha run picks the runtime by precedence, first match wins:
matcha.toml—runtime = "node" | "deno" | "bun"deno.json/deno.jsonc→ denobun.lockb/bun.lock→ bunpackage.json→ node
Edge is a deploy target, not a matcha run target.
License
MIT — same as the green-tea framework. Contributions require a DCO sign-off (git commit -s).