CLI command
blogs
List current product blog editorial metadata.
Invocation#
echo-cli blogsInputs and output#
Writes at most 200 posts with surface, slug, status, title, description, reading time, keywords, publication state, revision, and timestamps; article bodies are not selected.
State effect#
The command performs one bounded SELECT from blog_posts. It does not edit, publish, archive, or revalidate a post.
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.