CLI
@anakonn/ankk is a Bun-based CLI tool powered by the ANKK Public API.
Requirements
Section titled “Requirements”- Bun 1.3 or higher
- A Public API key scoped to your brand
Installation
Section titled “Installation”Run without installing:
bunx @anakonn/ankk --json healthGlobal installation:
bun install -g @anakonn/ankkankk --json healthInitial Setup
Section titled “Initial Setup”Global configuration:
ankk config setup --scope globalProject-local configuration:
ankk config setup --scope projectConfiguration resolution order:
- CLI options such as
--api-keyand--config ANKK_API_KEYenvironment variable- Project-level
.ankk/config.json - Global
~/.ankk/config.json
Defaults to https://api.ankk.app if not configured. ankk config show displays current settings without exposing the full API key.
Available Commands
Section titled “Available Commands”| Command | Purpose |
|---|---|
health | Check API health |
upgrade | Upgrade global installation |
openapi | View or fetch OpenAPI schema |
brand | Manage brand details scoped to the API key |
connections | Inspect SNS connections |
contents | List, query, publish, and cancel scheduled content |
comments | Fetch, post, refresh, and moderate comments |
reply-jobs | Create and monitor reply jobs |
analytics | Fetch analytics and metric summaries |
webhooks | Manage Webhook subscriptions |
config | Manage CLI configuration |
To view available options for any command, run ankk <command> --help.
Publishing Content
Section titled “Publishing Content”payload.json:
{ "connection_id": "<connection_id>", "idempotency_key": "cli-publish-001", "text": "Published via CLI."}ankk contents publish --file payload.jsonankk contents publish --file payload.json --scheduled-for 2026-08-10T09:00:00ZUse --json in scripts and AI clients:
ankk --json connections listankk --json contents get <content_id>