CLI
Schedule posts, manage inbox, broadcasts, sequences, and automations across 14 platforms from the terminal. Built for developers and AI agents.
Schedule posts, manage inbox, broadcasts, sequences, and automations across 14 platforms from the terminal. Built for developers and AI agents. Outputs JSON by default.
Setup
Install the CLI
npm install -g @zernio/cliAuthenticate
zernio auth:loginThis opens your browser where you can authorize the CLI. An API key is created automatically and saved to ~/.zernio/config.json.
You can optionally set a custom device name:
zernio auth:login --device-name "my-server"Running auth:login again from the same device replaces the existing key (no duplicates).
zernio auth:set --key "sk_your-api-key"Get your API key from zernio.com/dashboard/api-keys.
Verify Setup
zernio auth:checkThis should confirm your API key is valid and display your account info.
Quick Example
# Schedule a post for tomorrow at 9am
zernio posts:create \
--text "Hello from the Zernio CLI!" \
--accounts <accountId1>,<accountId2> \
--scheduledAt "2025-06-01T09:00:00Z"
# List your DM conversations
zernio inbox:conversations --platform instagram --pretty
# Create a broadcast and send it
zernio broadcasts:create --profileId <id> --accountId <id> --platform instagram --name "Summer Sale" --message "Check out our deals!"
zernio broadcasts:add-recipients <broadcastId> --useSegment
zernio broadcasts:send <broadcastId>Commands
All commands output JSON by default (built for piping and AI agents); add --pretty for indented output. 371 commands across 47 groups, split by area:
Posting commands
Profiles, accounts, connect, posts, media, queue, validation
Inbox commands
Conversations, comments, reviews, contacts, broadcasts, sequences, automations, workflows
Analytics commands
Post and inbox analytics, usage stats, activity logs
Ads commands
Ads, campaigns, audiences, lead forms, conversions, tracking tags
Platform commands
WhatsApp, Google Business, Discord, Instagram, Reddit, Twitter
Management commands
Auth, API keys, users, invites, account groups, settings, webhooks
ads:create-ctwa).Configuration
The CLI stores settings in ~/.zernio/config.json. You can also use environment variables:
| Variable | Description | Required |
|---|---|---|
ZERNIO_API_KEY | Your API key | Yes |
ZERNIO_API_URL | Custom API endpoint | No |
Environment variables override the config file.
Supported Platforms
Instagram, TikTok, X (Twitter), LinkedIn, Facebook, Threads, YouTube, Bluesky, Pinterest, Reddit, Snapchat, Telegram, and Google Business Profile.