Validate a setup before it fails
Use doctor to confirm Node, package freshness, API origin safety, auth presence, and live /whoami access before a script schedules anything.
npx -y @posterly/cli@latest doctor --prettyUse the posterly CLI to authenticate, validate your setup, inspect accounts and platform schemas, schedule posts, manage webhooks, and run Google Business workflows from scripts or your own terminal.
npx -y @posterly/cli@latest auth:login
npx -y @posterly/cli@latest doctor --pretty
npx -y @posterly/cli@latest accounts:list --prettyPublished on npm
Run with npx or install globally when you want a permanent posterly command.
JSON by default
Pipe output to jq, CI logs, support scripts, or your own automation without parsing dashboard pages.
Same API key
The same API add-on unlocks REST API, MCP, and CLI access through the public /api/v1 surface.
CLI workflows
The CLI should not compete with the dashboard. It should make repeatable, inspectable API work feel fast and safe.
Use doctor to confirm Node, package freshness, API origin safety, auth presence, and live /whoami access before a script schedules anything.
npx -y @posterly/cli@latest doctor --prettyList connected accounts, inspect platform settings, and pull composer-grade platform schemas before building an automation.
posterly accounts:list --pretty
posterly platforms:schema --platform instagram --prettyCreate posts, update status, inspect missing content, repair release IDs, and delete draft or scheduled groups with explicit confirmation.
posterly posts:create --account-id 123 --caption "Launching soon"
posterly posts:status 123 --status paused --confirm --prettyManage Google Business reviews, review links, profile audits, public replies, and standing profile gallery media from the same terminal flow.
posterly gbp:media --account-id 123 --pretty
posterly gbp:add-media --account-id 123 --source-url https://example.com/front.jpg --category COVER --confirmSource of truth
posterly keeps /api/v1 as the contract. MCP gives AI agents a tool interface over it. The CLI gives people and scripts a terminal interface over the same public routes.
CLI
Best for humans, scripts, CI jobs, local debugging, agency operations, and support playbooks.
REST API
Best for product integrations, server-side workflows, custom dashboards, and direct HTTP clients.
MCP
Best for Claude, ChatGPT, Cursor, Windsurf, Hermes, OpenClaw, Poke, and other AI-agent clients.
Command reference
Full request and response details live in the API docs. This page keeps the terminal workflow easy to scan.
| Task | Command |
|---|---|
| Authenticate | posterly auth:login |
| Health check | posterly doctor --pretty |
| Identity | posterly whoami --pretty |
| Accounts | posterly accounts:list --pretty |
| Platform schema | posterly platforms:schema --platform instagram --pretty |
| Create post | posterly posts:create --account-id 123 --caption "Launching soon" |
| Google Business media | posterly gbp:media --account-id 123 --pretty |
| Webhooks | posterly webhooks:list --pretty |
Safe automation
The CLI is designed for repeatable operational work: clear JSON, explicit confirmation on destructive commands, local config hardening, and URL checks before API keys are sent.
If you can run doctor and whoami, your terminal has the same authenticated foundation as REST API and MCP clients.
npx -y @posterly/cli@latest doctor --pretty
npx -y @posterly/cli@latest whoami --prettyThe posterly CLI is a terminal interface for the posterly API. It lets developers, agencies, support teams, and CI jobs authenticate, validate setup, inspect accounts, schedule posts, upload media, manage webhooks, and run Google Business workflows without opening the dashboard.
No. You can run it with npx using npx @posterly/cli@latest. A global install is optional if you want a permanent posterly command on your machine.
Yes. The CLI calls the public posterly API under /api/v1. MCP is the AI-agent interface over the same API, while the CLI is the human and script interface.
Run posterly doctor --pretty. It checks Node, the API origin, whether an API key is configured, whether the key works against /api/v1/whoami, and whether a newer CLI package is published.
Yes. Set POSTERLY_API_KEY in the environment and use JSON output by default. Use --pretty for local reading and keep live keys out of shell history.