CLI command
market
List platform trends and evidence-backed competitor observations.
Invocation#
echo-cli marketInputs and output#
Writes trends and competition arrays. Competition rows are selected from the five documented competitor event names and exclude user and anonymous identifiers.
State effect#
The command performs bounded SELECTs from platform_trends and the web and mobile analytics event tables. It does not scrape a source or record an observation.
Refusals#
- Without NEXT_PUBLIC_SUPABASE_URL it prints exactly "NEXT_PUBLIC_SUPABASE_URL is not configured" to stderr and exits 1.
- After the URL is present, without SUPABASE_SERVICE_ROLE_KEY it prints exactly "SUPABASE_SERVICE_ROLE_KEY is not configured" to stderr and exits 1.
- If Supabase refuses a SELECT, the CLI prints the returned database error message to stderr and exits 1.