Echo/Docs

CLI command

products

List the newest Echo content products using the CLI's bounded safe projection.

Invocation#

Shell
echo-cli products

Inputs and output#

This command takes no required input and defines no options. Extra positional arguments are ignored by the current dispatcher.

It writes an indented JSON array to stdout. The array contains at most 200 products, newest created_at first. Each object contains exactly id, name, description, niche, target_platforms, and created_at.

State effect#

The command performs one bounded SELECT from products. It does not create, update, or delete a product and does not trigger content generation.

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 the SELECT, the CLI prints the returned database error message to stderr and exits 1.