Social Media CLI

Social media CLI for JSON-first publishing, agents, CI, and cron

A JSON-first social media CLI for agents, CI, and cron. Publish from a shell script without writing a client first.

bundlesocial-cli is a scriptable command-line interface over the bundle.social API. Each command prints one JSON value to stdout and status text to stderr, and the package ships with a SKILL.md for agent-skill runtimes.

Last updated: July 2026

One API keyNo per-account fees15 platformsAPI key authScheduled publishingOfficial APIsDirect engineer support

Quick start
$ npx bundlesocial-cli posts:create \    -c "We just shipped dark mode 🌙" \    -i x -i bluesky -i mastodon{  "id": "post_3sf9k2",  "status": "SCHEDULED",  "socialAccountTypes": ["TWITTER", "BLUESKY", "MASTODON"],  "data": {    "TWITTER":  { "text": "We just shipped dark mode 🌙" },    "BLUESKY":  { "text": "We just shipped dark mode 🌙" },    "MASTODON": { "text": "We just shipped dark mode 🌙" }  }}# JSON goes to stdout and status text to stderr, so an agent can parse the output.# Ships with a SKILL.md for agent-skill runtimes:# $ npx skills add bundleglobal/bundlesocial-cli
customers
17,242+
connected accounts
1.09m+
uptime
99.881%
Trustpilot
4.8 / 5

Glueing curl + jq to every social platform

  • Shell scripts that call native platform APIs end up reimplementing OAuth refresh, multipart uploads and per-platform payload shapes.
  • Each platform returns errors in its own shape, so an agent that shells out has to learn a dialect per integration.
  • Cron jobs and CI runners need output they can parse, and many CLIs mix status text into stdout.

What bundle.social handles

  • JSON goes to stdout and status text to stderr, so agents and CI jobs can pipe the output straight into a parser.
  • One CLI for 15 platforms. posts:create, posts:list, integrations:list, analytics:post and analytics:account work the same way for every platform.
  • Ships with a SKILL.md that describes the commands to an agent. Install it with npx skills add bundleglobal/bundlesocial-cli.

A CLI built for agents, CI, and cron

Output is JSON by default. On an error the CLI exits with code 1 and prints the error as JSON with a code and a message. A person can run the same commands to ship a one-off post.

How it works

  1. 01

    Install with npx

    Run npx bundlesocial-cli --help, or npm install -g bundlesocial-cli for the bundle-social command. You can also pin a version in package.json or a CI image.
  2. 02

    Authenticate with an API key

    Set BUNDLESOCIAL_API_KEY or pass --api-key. The key belongs to your organization, so the agent never runs a per-platform OAuth flow. bundle-social doctor checks the setup.
  3. 03

    Run commands or wire into CI

    posts:create, posts:schedule and analytics:post take flags and print JSON. Drop them into GitHub Actions, cron, or an agent's shell-out path.

Social Media CLI: details and edge cases

Social media CLI for scripts that need real publishing primitives

Agents, CI jobs, release scripts, and cron workflows need a social media CLI with deterministic commands, JSON output, clear exit codes, and errors they can parse without scraping text written for people. They also need the same account and post model your backend uses, otherwise every script becomes a separate integration surface.

bundlesocial-cli is built around that automation path. It lets a shell-out agent create posts, upload media, list accounts, fetch analytics, and schedule content without learning the native API dialect for every platform. The command line becomes a thin operational surface over the same bundle.social API, which means teams can automate publishing without turning bash scripts into long-lived social platform connectors.

Why JSON-first output matters for agents and CI

Agent runtimes and CI runners work best when one command produces one structured response that can be piped into jq, stored in a job log, passed to another tool, or summarized by an LLM. Keeping JSON on stdout and status text on stderr makes that predictable.

Publishing continues after the command returns. A post can move from SCHEDULED to PROCESSING and end as POSTED or ERROR, with RETRYING in between. The CLI returns the post ID and status, so the rest of your system can check the outcome later with posts:get.

One CLI over account connection, uploads, scheduling, and analytics

Direct native API scripting can work for one narrow platform, but it becomes painful when the workflow includes media uploads, multiple account types, scheduled content, platform validation, analytics lookups, and customer workspaces. Every platform adds a new credential model, payload shape, media rule, and failure format.

The bundle.social CLI keeps those workflows connected. A script can upload a file, receive an upload ID, create a post for X and LinkedIn, schedule it for later, then fetch analytics after publishing. Human operators can run the same commands during debugging, while agents and CI use them in automated jobs.

CLI surface designed for automation

Every command prints JSON and supports --help.

posts:create / posts:schedule

One invocation creates a post for several platforms. Use -i x -i bluesky -i mastodon to fan out, --platform-settings for per-platform options, --draft to save without publishing, and --date on posts:schedule.

media:upload

Upload a local file or URL and get the upload object back. Reference its ID from posts:create. Files over about 90 MB go through media:upload-large.

integrations:list / teams:list

List connected accounts with their IDs, platform types and channels, and the teams in your organization, so an agent knows where it can post before it tries.

analytics:post / analytics:account

Pull post and account analytics as JSON, with --raw for the unprocessed payload. Pipe it into jq, a dashboard, or an LLM as context.

Supported content

  • posts:create
  • posts:schedule
  • media:upload
  • integrations:list
  • analytics:post
  • analytics:account

Developer-first infrastructure

Visible post status

Track scheduled, processing, posted, retrying, and error states per post.

Verbose errors

When native APIs fail, we return human-readable error messages and actionable recovery steps.

Flat pricing

No per-post counting. Predictable pricing for teams managing many users, workspaces, and connected accounts.

Same-day support

Direct access to the engineers building the API. We respond to technical issues the same day, sometimes the same hour.

Honest limitations

  • Node 20+ required. (Use npx if you don't want a global install.)
  • Output is JSON by default. Add --pretty when a person wants a table instead.
  • Same per-platform rules apply (TikTok privacy enum, YouTube category, X media constraints), and the CLI returns validation errors as JSON.

Technical guides & documentation

“bundle.social does what much more expensive social media APIs do, and they do it better and easier with a lot less headache and a lot lower price.”
Kathleen · US · Trustpilot
4.8 / 5on Trustpilot

FAQ

Questions developers ask before building

Is this a wrapper over the SDK?

Yes. The CLI uses the bundlesocial TypeScript SDK underneath. Anything you can do from the CLI you can do from the SDK and the REST API directly.

How does the SKILL.md work?

bundlesocial-cli ships with a SKILL.md that describes its commands to an agent. Run npx skills add bundleglobal/bundlesocial-cli to install it as a skill in runtimes that support agent skills, such as OpenClaw.

Does it work in CI?

Yes. Output is JSON by default, errors exit with code 1, and the only setup is BUNDLESOCIAL_API_KEY stored as a secret.

How is this different from the MCP server?

Use the CLI when an agent shells out (Claude Code subprocess, OpenCode, CI runners, cron). Use the MCP server when the client speaks the Model Context Protocol (Claude Desktop, Cursor). Same auth, same posts, different transport.

Keep comparing your options

Start building on the social media API

One API key. No per-account fees. 15 platforms.