Zernio CLI
Install the Zernio CLI, log in with your browser and schedule a post from the terminal. The everyday commands for posts, DMs and analytics.
The Zernio CLI posts, reads DMs and pulls analytics from your terminal.
It also gives coding agents like Claude Code and Codex a simple tool to call.
Get started
Log in
zernio auth:loginYour browser opens so you can approve the CLI. The key is saved on your computer, in ~/.zernio/config.json.
Schedule a post
zernio posts:create \
--text "Hello from the terminal." \
--accounts 66b2e19d8c3f5a7e9d0b1c2d \
--scheduledAt "2027-01-01T12:00:00" \
--timezone "America/New_York"Leave out --scheduledAt to publish now, or add --draft to save a draft. List several ids in --accounts to post to several accounts at once.
Everyday commands
| Command | What it does |
|---|---|
zernio accounts:list | Lists your connected accounts |
zernio accounts:health | Shows accounts that need reconnecting |
zernio posts:create | Publishes, schedules or drafts a post |
zernio posts:get <id> | Shows one post and its status |
zernio inbox:conversations --accountId <id> | Lists DM conversations |
zernio inbox:messages <conversationId> | Reads a conversation |
zernio analytics:posts --platform instagram | Shows how your posts performed |
Add --pretty to any command for readable output. zernio --help lists everything else.
Good to know
- Output is JSON. That makes it easy to pipe into
jqor hand to an agent. - Errors say what to do. An unknown account id tells you to run
zernio accounts:list. - Logged out? A
401means the saved key is gone or revoked. Runzernio auth:loginagain.
Writing scripts or automating at scale? The developer CLI docs cover every command group.
Connect with MCP
Add the hosted Zernio MCP server to Claude, ChatGPT, Claude Code, Cursor, Codex, VS Code or any MCP client, sign in with your Zernio account and make your first request.
Things to ask
Requests that work well once Zernio is connected to your AI assistant, for posting, scheduling, replying to DMs and comments, analytics and ads.