Command-line interface
Command-line interface
Control OpenPost from a shell, script, CI job, or terminal-capable agent.
The openpost CLI controls a running Hosted or self-hosted OpenPost instance. It follows the same workspace permissions and Publication lifecycle as the web app.
Use it when work starts in a terminal. For a long-running JavaScript or TypeScript service, use the SDK. For a visual workflow, use n8n.
Start here
- Install, sign in, and choose a workspace
- Create and publish content
- Run the CLI in scripts and CI
- Inspect results and recover failures
Run openpost help or openpost <group> <command> --help when this guide and an installed version differ. The installed help describes that binary.
The CLI stores creation_source: "cli" on Publications it creates. Publication responses expose that source alongside web, API, SDK, MCP, and automatic posting sources.