What is the CLI
Post and schedule from your terminal, local agents, or CI.
The DunSocial CLI lets you post and schedule from a terminal. Install the dunsocial package from npm, then use the dun command on your machine, in a coding agent, or in CI.
What it is
- A small command-line tool that talks to your DunSocial workspace.
- Works on your laptop, with local AI coding agents, and in GitHub Actions or other CI.
- Uses the same workspaces, accounts, and posts you see in the app.
CLI vs MCP
DunSocial has two ways for tools to act for you:
| Topic | CLI | MCP |
|---|---|---|
| Best for | Terminal, local agents, and CI | ChatGPT, Claude in the browser, and Cursor |
| How you use it | Commands like dun posts schedule | Chat with your assistant |
| Auth | Sign in once, or a personal access token | OAuth in your assistant (paste the MCP URL) |
Same workspace either way. Prefer MCP when you are chatting in a remote assistant. Prefer the CLI when you want scripts, CI, or a local terminal.
Why use it
- Schedule or publish a post without opening the dashboard.
- Announce a release from CI when you ship.
- Let a local coding agent draft and schedule for you.
How to get started
For automation, see CI and tokens.