From f88c11ac0bb639325787bbef7c9de58e2f38119a Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Fri, 7 Aug 2026 14:13:32 -0500 Subject: [PATCH 1/3] docs: point the public install paths at reachable hosts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The README is what crates.io publishes, and it documented two install paths that cannot work from outside the network — the curl one-liner and `cargo install --git` both pointed at the internal Gitea host — while omitting the one path that does work today: `cargo install matcha-cli`. That is very likely most of why matcha has 16 downloads against the core package's 159 a week. - Lead with `cargo install matcha-cli`. Verified working from crates.io. - Curl one-liner now uses the GitHub raw URL, which is reachable (200). - `cargo install --git` points at the GitHub mirror. - install.sh defaults REPO_BASE / API_BASE to GitHub. Both env vars still override, and Gitea's release API is GitHub-compatible for the two calls this script makes, so installing from the internal host still works. Note: the prebuilt-binary path stays broken until releases exist on GitHub. The v26.7.0 tag is mirrored there but release.yml has never fired on GitHub — zero tag-triggered runs. Tracked separately. Co-Authored-By: Claude Opus 5 (1M context) --- README.md | 20 ++++++++++++++------ install.sh | 15 +++++++++------ 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d671fb8..fa39502 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,32 @@ # matcha -The [green-tea](https://git.svc.zoit.services/Green-Tea/core) CLI — scaffold, run, and generate green-tea apps from a single native binary. No JS runtime required to install or operate. +The [green-tea](https://github.com/Expressive-Tea/green-tea) CLI — scaffold, run, and generate green-tea apps from a single native binary. No JS runtime required to install or operate. ## Install ```bash -curl -fsSL https://git.svc.zoit.services/Green-Tea/matcha/raw/branch/main/install.sh | sh +cargo install matcha-cli ``` -Installs a prebuilt binary to `~/.local/bin` — no Rust required. Env vars go on -the `sh` side of the pipe: +Builds from [crates.io](https://crates.io/crates/matcha-cli) and installs the `matcha` +binary. Needs a Rust toolchain; takes a few seconds. + +**Prebuilt binary** (no Rust), from the latest GitHub release: + +```bash +curl -fsSL https://raw.githubusercontent.com/Expressive-Tea/matcha/main/install.sh | sh +``` + +Drops the binary in `~/.local/bin`. Env vars go on the `sh` side of the pipe: ```bash curl -fsSL …/install.sh | MATCHA_VERSION=v26.7.0 MATCHA_INSTALL_DIR=/usr/local/bin sh ``` -**From source** (requires Rust — compiles and installs): +**From git** (compiles the default branch): ```bash -cargo install --git https://git.svc.zoit.services/Green-Tea/matcha +cargo install --git https://github.com/Expressive-Tea/matcha ``` ## Usage diff --git a/install.sh b/install.sh index f719f49..b69bf33 100755 --- a/install.sh +++ b/install.sh @@ -1,14 +1,17 @@ #!/bin/sh -# matcha installer — downloads a prebuilt binary from Gitea Releases. +# matcha installer — downloads a prebuilt binary from GitHub Releases. # curl -fsSL /install.sh | sh # Env: MATCHA_VERSION (tag, default latest), MATCHA_INSTALL_DIR (default ~/.local/bin), -# MATCHA_REPO_BASE (default the Gitea repo URL). +# MATCHA_REPO_BASE / MATCHA_API_BASE (override to install from the internal Gitea, +# whose release API is GitHub-compatible for everything this script touches). set -eu -REPO_BASE="${MATCHA_REPO_BASE:-https://git.svc.zoit.services/Green-Tea/matcha}" -# The API lives at the host root (/api/v1/...), NOT under the repo path. Keep it -# separate from REPO_BASE (which is used for release DOWNLOAD urls under the repo). -API_BASE="${MATCHA_API_BASE:-https://git.svc.zoit.services/api/v1/repos/Green-Tea/matcha}" +# Public by default: the Gitea host is unreachable outside the network, and this script +# is what crates.io and the README point people at. +REPO_BASE="${MATCHA_REPO_BASE:-https://github.com/Expressive-Tea/matcha}" +# The API lives on its own host, NOT under the repo path. Keep it separate from +# REPO_BASE (which is used for release DOWNLOAD urls under the repo). +API_BASE="${MATCHA_API_BASE:-https://api.github.com/repos/Expressive-Tea/matcha}" INSTALL_DIR="${MATCHA_INSTALL_DIR:-$HOME/.local/bin}" err() { echo "matcha-install: $*" >&2; exit 1; } From 3e6fa7797bd01fa9818451f7d82f898499414fed Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Fri, 7 Aug 2026 14:18:44 -0500 Subject: [PATCH 2/3] chore: bump to 26.8.0-beta.0 so the README fix reaches crates.io MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cargo embeds README.md into the published .crate, so crates.io keeps serving whatever was there at publish time. The install-path fix in this branch is invisible to anyone reading crates.io until a new version ships — and that page is the whole point, since it is where the broken curl command is currently advertised. Calendar versioning, same as the core package: this is the first matcha cut in August 2026. Note for tagging: the previous release tagged `v26.7.0` while Cargo.toml said `26.7.0-beta.0`. Tag this one `v26.8.0-beta.0` so the tag and the crate version match. Co-Authored-By: Claude Opus 5 (1M context) --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 985d652..19f951b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -254,7 +254,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "matcha-cli" -version = "26.7.0-beta.0" +version = "26.8.0-beta.0" dependencies = [ "assert_cmd", "clap", diff --git a/Cargo.toml b/Cargo.toml index e5ae634..75aecdf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "matcha-cli" -version = "26.7.0-beta.0" +version = "26.8.0-beta.0" edition = "2021" description = "The CLI for Green Tea — scaffold and manage graph-based apps." license = "MIT" From 95b7b92fdfd0fc47fcb5a196da869f57a310ca19 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Fri, 7 Aug 2026 14:40:54 -0500 Subject: [PATCH 3/3] docs: describe what the CLI actually does differently MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit crates.io shows this line in search results and on the crate page, and "scaffold and manage graph-based apps" describes every scaffolder ever written. The differentiator is that `matcha create` wires what it generates into its `@Module` — a generic generator drops files and leaves the wiring to you. Say that, plus runtime detection and the no-JS-runtime install, since those are the parts a reader cannot get elsewhere. Co-Authored-By: Claude Opus 5 (1M context) --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 75aecdf..6e5bb4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "matcha-cli" version = "26.8.0-beta.0" edition = "2021" -description = "The CLI for Green Tea — scaffold and manage graph-based apps." +description = "The green-tea CLI: scaffold a project, generate controllers, steps and providers already wired into their module, and run with your runtime detected. One native binary, no JS runtime needed to install it." license = "MIT" repository = "https://github.com/Expressive-Tea/matcha"