<!-- Generated from the canonical OpenPost public page. Do not edit this build artifact. -->

Title: Command-line interface
Description: Control OpenPost from a shell, script, CI job, or terminal-capable agent.
Canonical: https://docs.openpo.st/automate/cli
Source: [https://docs.openpo.st/automate/cli](https://docs.openpo.st/automate/cli)

# Command-line interface

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](https://docs.openpo.st/automate/sdk). For a visual workflow, use [n8n](https://docs.openpo.st/automate/n8n).

## Start here

1. [Install, sign in, and choose a workspace](https://docs.openpo.st/automate/cli/setup)
2. [Create and publish content](https://docs.openpo.st/automate/cli/publishing)
3. [Run the CLI in scripts and CI](https://docs.openpo.st/automate/cli/scripts-and-ci)
4. [Inspect results and recover failures](https://docs.openpo.st/automate/cli/inspect-and-recover)

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.
