Repository navigation
feat(installer): report CLI and no-start installs - #13844
Merged
Merged
Conversation
The CLI installer already called the growth API, but three gates dropped nearly every CLI run before the request left: localhost and loopback domains returned early, tracking sat inside the containers-started branch so --no-start never reported, and headless runs had no way to set a hostname. The installations table on data.appwrite.io confirms the effect: every stored row carries a unique real email from the web form, and the CLI's placeholder account never appears. Move the opt-out decision and payload into a readonly Installer\Report so every entry point builds the same shape, report the domain as-is and let dashboards filter loopback hosts, fire tracking after --no-start too with started=false, send null name and email when no account was collected instead of a fake one, and add source (web, cli, cli-headless), channel and topology so the split is measurable. A --domain flag on install and upgrade lets headless installs set a real hostname without editing .env afterwards.
… new fields Cloud stores the request User-Agent on every installation row already, so the entry point, channel, topology and whether containers were started travel there rather than as new columns in the platform database.
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Contributor
|
The headless domain flag accepted any text, including a URL, although the value is used as a bare hostname downstream. It now uses the same validator as the web installer. A loopback host is a local or test instance, so its report keeps the machine facts but drops the admin account.
Member
Author
|
@greptile review |
HarshMN2345
approved these changes
Sep 23, 2026
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The CLI installer sends the same anonymous usage report as the web installer, but three gates dropped most CLI runs: loopback domains returned early, reporting sat inside the containers-started branch so
--no-startnever reported, and headless runs had no way to set a hostname. The remaining CLI runs sent a placeholder email, so they could not be told apart.What
Appwrite\Installer\Reportreadonly value object owns the opt-out rule (DO_NOT_TRACK, non-production, local checkout) and the payload, so the web installer, interactive CLI and headless CLI build the same shape.--no-startstill reports.[email protected].Appwrite-Installer/2.0.0 (cli-headless; stable; combined; not-started).--domainoninstallandupgradesets_APP_DOMAINand_APP_DOMAIN_TARGETfor headless installs.Rollout
Merge after appwrite-labs/cloud#6030 and appwrite-labs/growth#251.
Verification
PHPStan clean on the host. Headless
install --interactive=N --no-start=true --domain=smoke.example.comverified in the container writes both domain keys and exits 0.