OverviewProductsPlatformsAPI ReferenceResources

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

Install

You need Node.js installed.

Terminal
npm install -g @zernio/cli
Installing the Zernio CLI

Log in

Terminal
zernio auth:login

Your browser opens so you can approve the CLI. The key is saved on your computer, in ~/.zernio/config.json.

Logging in: the terminal waits until you approve in the browser

Find your accounts

Terminal
zernio accounts:list --pretty

Copy the _id of the account you want to post from. With many accounts, add --profileId to see one profile's, and pipe the output to jq to keep just the fields you need:

Terminal
zernio accounts:list --profileId <profileId> | jq '.accounts[] | {_id, platform, username}'
Listing one profile's accounts

Schedule a post

Terminal
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. YouTube posts also need --title.

Saving a YouTube draft from the terminal

Everyday commands

CommandWhat it does
zernio accounts:listLists your connected accounts
zernio accounts:healthShows accounts that need reconnecting
zernio posts:createPublishes, 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 instagramShows 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 jq or hand to an agent.
  • Errors say what to do. An unknown account id tells you to run zernio accounts:list.
  • Logged out? A 401 means the saved key is gone or revoked. Run zernio auth:login again.

Writing scripts or automating at scale? The developer CLI docs cover every command group.

Was this page helpful?

On this page