Posts
ap posts create
Create one or more posts — with media, per-platform overrides, per-account targeting, scheduling, threads, or in bulk from a file.
Media & per-platform
Platform-specific options
Per-account targeting
--account <platform>=<handle|id> selects which connected account to post from when a brand has more than one on a platform. Repeat it per platform.
--account x=@handle— match by handle (case-insensitive, leading@optional) or platform user ID.--account linkedin=all(or=*) — fan out to every connected account on that platform. A fan-out over 5 accounts asks for confirmation on an interactive terminal.- On a TTY with 2+ accounts and no
--account, the CLI shows an interactive checkbox picker. - Non-interactive (piped/CI) with 2+ accounts and no
--accounterrors out and lists the accounts — pass--accountto choose. - Save a default per brand+platform with
ap brands set-default-accountto skip the picker.
ap posts list
ap posts get
ap posts update
ap posts publish
Publish a draft post immediately.
ap posts schedule
Schedule a post for a specific time, or unschedule it back to draft with --cancel.
ap posts retry
Retry a failed post on specific or all platforms.
ap posts delete
Requires --force to confirm.
ap posts rewrite
AI-rewrite a post for better engagement.
ap posts score
Get an AI score and feedback for a post.
Config
CLI defaults are stored in~/.config/autoposting/config.json (sibling to credentials, 0600 permissions).
ap config set-context
Set the default brand applied whenever --brand is omitted.
ap config get-context
ap config unset-context
Brand resolution: an explicit
--brand flag wins, then the saved context, then the command errors. Set a context once to drop --brand from every command.Brands
ap brands create
ap brands list
ap brands get
ap brands update
ap brands delete
ap brands auth-status
Check which platforms are connected for a brand.
ap brands set-default-account
Save the default target account(s) for a brand, used when posts create --account is omitted. Local-only (stored in config.json).
ap brands get-default-account
ap brands clear-default-account
Remove all saved default accounts for a brand.
Agents
ap agents create
ap agents list
ap agents get
ap agents update
ap agents run
Trigger an immediate agent run.
ap agents toggle
Enable or disable an agent.
ap agents runs
View run history for an agent.
ap agents delete
Knowledge Base
ap kb create
ap kb list
ap kb get
ap kb search
Search knowledge base content.
ap kb ingest
Ingest a URL into a knowledge base.
ap kb docs
List documents in a knowledge base.
ap kb delete
Ideas
ap ideas generate
AI-generate content ideas from a topic.
ap ideas list
ap ideas enrich
Enrich an idea into platform-ready drafts (async — returns a job ID).
ap ideas delete
Clips
ap clips upload
Upload a local video file as a clip. The brand resolves automatically when your
workspace has a single brand; pass --brand <id> to choose when you have more
than one. Use --name to override the clip title (defaults to the filename).
ap clips import
Import a video from a URL for AI clipping.
ap clips list
ap clips get
ap clips render
Render a clip for publishing.
ap clips delete
Carousels
ap carousels generate
AI-generate a carousel from a topic.
ap carousels create
Create a carousel manually.
ap carousels list
ap carousels get
ap carousels draft
Convert a carousel into a post draft.
ap carousels delete
Webhooks
ap webhooks create
ap webhooks list
ap webhooks get
ap webhooks update
ap webhooks test
Send a test event to a webhook endpoint.
ap webhooks delete
Billing & Usage
ap billing status
Show current plan and subscription details.
ap billing credits
Show AI credit balance.
ap usage summary
Show publishing statistics.
Workspaces
ap workspaces list
ap workspaces switch
Switch to a different workspace (session auth only).
Auth
ap auth login
Log in via browser device-code flow, or store an API key directly.
ap auth logout
Remove the active profile, or all profiles with --all.
ap auth switch
Switch the active profile.
ap auth whoami / ap auth status
Show the current auth method and identity (status is an alias).
Utility
ap doctor
Health check — verifies CLI version, Node.js, authentication, and API connectivity.
ap whoami
Show the current auth source and workspace.
ap open
Open a resource in your browser.
ap update
Check for CLI updates.
ap completion
Generate shell completions.
ap mcp
Start the built-in MCP server for AI agents.
Installation
Install and configure the CLI.
MCP Tools
Same operations as MCP tool calls for AI agents.
API Reference
Underlying REST endpoints.
TypeScript SDK
Programmatic API access in Node.js.

