Echo/Docs

CLI command

social-accounts

List the non-sensitive metadata projection for Echo social accounts.

Invocation#

Shell
echo-cli social-accounts

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 containing at most 200 accounts, newest created_at first. Each object contains exactly id, platform, username, status, and created_at; credentials and other sensitive columns are not selected.

State effect#

The command performs one bounded SELECT from social_accounts. It does not connect, disconnect, authenticate, post through, create, update, or delete an account.

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.