Skip to content
OpenPostDocs
OpenPostDocs

CLI command reference

Every openpost command and flag, generated from the CLI source.

Run openpost <command> --help for the same text in your terminal. For worked examples, see Publish from the terminal, Scripts and CI and Inspect and recover.

Global flags

Every command accepts these flags. Values you leave out come from the active profile or the environment.

FlagDescription
--instance <string>OpenPost instance URL (default: profile or $OPENPOST_INSTANCE)
--jsonEmit machine-readable JSON instead of tables/prose.
--no-colorDisable ANSI colors.
--profile <string>Profile name from config (default: $OPENPOST_PROFILE or 'default')
--quietSuppress non-error output.
--token <string>API token override (default: keyring or $OPENPOST_TOKEN)
--workspace <string>Workspace name or ID (default: profile or $OPENPOST_WORKSPACE)
--yesSkip interactive confirmations.

Commands

CommandWhat it does
openpost accountManage connected social accounts
openpost authAuthenticate with an OpenPost instance
openpost billingManage Hosted service billing
openpost completionGenerate shell completion script
openpost doctorCheck local CLI configuration without contacting an instance
openpost inboxRead and act on comments, incoming mentions and business reviews
openpost instanceManage OpenPost instance profiles
openpost jobsList background jobs
openpost mediaUpload and list media attachments
openpost postCreate, list, view, update, and delete posts
openpost providerInspect provider availability and publishing support
openpost publicationCreate, list, validate, and publish publications
openpost scheduleManage reusable posting schedule slots
openpost threadCreate multi-post threads
openpost versionPrint the openpost CLI version
openpost workspaceManage the active OpenPost workspace

openpost account

Manage connected social accounts.

List, rename, and disconnect social accounts. Account slugs are the preferred selector for --accounts. New accounts are connected in the OpenPost web UI at <instance>/settings?tab=accounts.

openpost account disconnect

Disconnect a social account.

openpost account disconnect <account-id>

openpost account list

List connected social accounts.

List connected social accounts for the active workspace.

Use the SLUG column as the preferred selector for --accounts and account rename.

openpost account list [flags]
FlagDescription
--platform <string>Filter by platform.

openpost account mentions

Find native mention identities for an account.

openpost account mentions <account> [flags]
FlagDescription
--query <string>Account search, or exact LinkedIn company vanity name.

openpost account rename

Rename a social account slug.

Rename a connected account's slug. The selector can be an account id, slug, platform:username value, bare platform when unambiguous, or mastodon host.

openpost account rename <selector> --slug <new-slug> [flags]
FlagDescription
--slug <string>New account slug.

openpost auth

Authenticate with an OpenPost instance.

openpost auth login

Log in to an OpenPost instance.

openpost auth login <instance> [flags]
FlagDescription
--devicePrint the device code and poll without opening a browser.
--insecure-storageStore the token in credentials.json instead of the OS keyring.
--no-browserSkip automatically opening the browser.
--with-tokenRead a raw API token from stdin.

openpost auth logout

Delete the stored token for the active profile.

openpost auth logout

openpost auth status

Show authentication status for the active profile.

openpost auth status

openpost auth token list

List API tokens.

openpost auth token list

openpost auth token revoke

Revoke an API token.

openpost auth token revoke <id>

openpost billing

Manage Hosted service billing.

Inspect billing status and create hosted checkout or customer portal URLs for the active workspace.

openpost billing checkout

Create an OpenPost checkout URL for the active workspace.

Create an OpenPost checkout URL that opens Paddle's embedded payment form. Plan IDs are founder (Solo), team, or agency.

openpost billing checkout <plan> [flags]
FlagDefaultDescription
--billing-period <string>monthlyBilling period: monthly or annual.

openpost billing portal

Open Paddle billing management for the active workspace.

openpost billing portal

openpost billing status

Show billing plan and usage for the active workspace.

openpost billing status

openpost completion

Generate shell completion script.

Output a shell completion script for the given shell.

To load completions:

Bash:
  $ source <(openpost completion bash)

  # To load completions for each session, execute once:
  # Linux:
  $ openpost completion bash > /etc/bash_completion.d/openpost
  # macOS:
  $ openpost completion bash > $(brew --prefix)/etc/bash_completion.d/openpost

Zsh:
  # If shell completion is not already enabled in your environment,
  # you will need to enable it. You can execute the following once:
  $ echo "autoload -U compinit; compinit" >> ~/.zshrc

  # To load completions for each session, execute once:
  $ openpost completion zsh > "${fpath[1]}/_openpost"

  # You will need to start a new shell for this setup to take effect.

Fish:
  $ openpost completion fish | source

  # To load completions for each session, execute once:
  $ openpost completion fish > ~/.config/fish/completions/openpost.fish

PowerShell:
  PS> openpost completion powershell | Out-String | Invoke-Expression

  # To load completions for every new session, run:
  PS> openpost completion powershell > openpost.ps1
  # and source this file from your PowerShell profile.
openpost completion <bash|zsh|fish|powershell>

openpost doctor

Check local CLI configuration without contacting an instance.

openpost doctor

openpost inbox

Read and act on comments, incoming mentions and business reviews.

openpost inbox act

Queue a supported reply or moderation action.

Queue an action supported by the item's can_* capabilities. For a Google review, reply replaces the owner reply and delete_reply removes only that reply. Reviews cannot be deleted. Inspect the returned job and the item's moderation state before replacing a review reply again. Reuse --operation-id only for the same intent.

openpost inbox act <item-id> [flags]
FlagDefaultDescription
--action <string>replyReply, delete_reply, hide, delete, like or unlike.
--message <string>Reply text; Google owner replies allow 4096 UTF-8 bytes.
--operation-id <string>Stable ID for this exact intent, required for safe retries.

openpost inbox get

Read an Inbox item, native context and review reply receipt.

openpost inbox get <item-id>

openpost inbox list

Read stored Inbox items and feed health, without provider calls.

openpost inbox list [flags]
FlagDefaultDescription
--account-id <string>Connected account ID.
--archivedRead archived items instead of active items.
--cursor <string>Next_cursor from the previous response.
--kind <string>Comment, mention or review; omit for all.
--limit <int>50Page size, from 1 to 100.
--platform <string>Filter by provider.
--publication-id <string>Filter by an OpenPost post, excluding unrelated native activity.
--unreadOnly unread items.

openpost inbox mark-read

Mark every matching unread item read across all pages.

openpost inbox mark-read [flags]
FlagDescription
--account-id <string>Connected account ID.
--archivedRead archived items instead of active items.
--kind <string>Comment, mention or review; omit for all.
--platform <string>Filter by provider.
--publication-id <string>Filter by an OpenPost post, excluding unrelated native activity.

openpost inbox refresh

Queue durable collection for enabled accounts.

openpost inbox refresh

openpost inbox state

Update shared Workspace read and archive state.

openpost inbox state <item-id>... [flags]
FlagDescription
--archivedArchive, or --archived=false to reopen.
--readMark read, or --read=false to mark unread.

openpost instance

Manage OpenPost instance profiles.

openpost instance add

Add or update an instance profile.

openpost instance add <name> <url>

openpost instance diagnostics

Collect a safe support snapshot for an OpenPost instance.

openpost instance diagnostics [flags]
FlagDescription
--deployment <string>Deployment method being checked (docker, binary, nixos, cloud, other)
--logs-file <string>Local OpenPost log file to include as a redacted last-100-line tail.
--provider <string>Social provider being tested, such as x, mastodon, youtube, or tiktok.

openpost instance health

Check the active instance liveness and readiness.

openpost instance health

openpost instance list

List configured instances.

openpost instance list

openpost instance remove

Remove an instance profile.

openpost instance remove <name>

openpost instance use

Set the active instance profile.

openpost instance use <name>

openpost jobs

List background jobs.

openpost jobs list

List background jobs.

openpost jobs list [flags]
FlagDefaultDescription
--limit <int>0Maximum number of jobs to return.
--offset <int>0Number of jobs to skip.
--status <string>Filter by status: pending, failed, completed.

openpost media

Upload and list media attachments.

openpost media delete

Delete an unused media attachment.

openpost media delete <media-id>

openpost media list

List media attachments.

openpost media list [flags]
FlagDefaultDescription
--limit <int>0Maximum number of media items to return.

openpost media prepare-image

Fit a separate image copy for one destination.

openpost media prepare-image <media-id> [flags]
FlagDescription
--account <string>Connected account ID or slug.
--alt <string>Alt text for the fitted copy; pass an empty value to clear.
--output-profile <string>Explicit destination format from capabilities.
--settings-file <string>Destination settings JSON file, or - for stdin.

openpost media storage

Show media storage usage.

openpost media storage

openpost media update

Update media alt text.

openpost media update <media-id> [flags]
FlagDescription
--alt <string>Alt text; pass an empty value to clear it.

openpost media upload

Upload a media file.

openpost media upload <file> [flags]
FlagDescription
--alt <string>Alt text for the uploaded media.

openpost media usage

List content that uses a media attachment.

openpost media usage <media-id>

openpost post

Create, list, view, update, and delete posts.

Create, list, view, update, and delete posts. The post command is the friendly name for Publication workflows; every command creates, reads, and mutates Publications and Renditions through the canonical API.

openpost post create

Create a draft or scheduled post.

openpost post create [flags]
FlagDefaultDescription
--accounts <string>Comma-separated account selectors.
--content <string>Post content.
--file <string>Read post content from a file.
--media <stringArray>Media id or local file path; repeatable.
--media-alt <stringArray>Alt text for the matching uploaded --media.
--random-delay <int>0Random delay in minutes.
--schedule <string>Natural-language, RFC3339, next-slot, now, or draft.
--segments-file <string>Ordered segment JSON with settings.mentions and UTF-8 byte ranges; use - for stdin.
--thread-draft <string>Encoded thread draft to attach.

openpost post delete

Delete a draft or scheduled post.

openpost post delete <post-id>

openpost post list

List posts.

openpost post list [flags]
FlagDefaultDescription
--limit <int>0Maximum number of posts to return.
--offset <int>0Number of posts to skip.
--status <string>Filter by status: draft, scheduled, published, failed.

openpost post schedule

Schedule an existing publication.

openpost post schedule <publication-id> [flags]
FlagDescription
--at <string>Schedule time, natural language, or next-slot.

openpost post update

Update a draft or scheduled post.

openpost post update <post-id> [flags]
FlagDefaultDescription
--accounts <string>Comma-separated account selectors.
--content <string>Post content.
--media <stringArray>Replacement media id or local file path; repeatable; pass an empty value to clear.
--media-alt <stringArray>Alt text for the matching uploaded --media.
--random-delay <int>0Random delay in minutes.
--schedule <string>Natural-language, RFC3339, next-slot, now, or draft; empty string unschedules.
--segments-file <string>Ordered segment JSON with settings.mentions and UTF-8 byte ranges; use - for stdin.

openpost post view

View a post.

openpost post view <post-id>

openpost provider

Inspect provider availability and publishing support.

openpost provider capabilities

List provider publishing capabilities.

openpost provider capabilities [flags]
FlagDescription
--content-profile <string>Filter by input or output content profile.
--provider <string>Filter by provider key.

openpost provider list

List social providers available on the instance.

openpost provider list

openpost provider readiness

Inspect provider setup and blocking issues.

openpost provider readiness

openpost publication

Create, list, validate, and publish publications.

openpost publication cancel

Cancel a scheduled publication.

openpost publication cancel <publication-id>

openpost publication comments

List comments for a published rendition.

openpost publication comments <rendition-id>

openpost publication create

Create a format-first publication.

openpost publication create [flags]
FlagDefaultDescription
--accounts <string>Comma-separated account IDs/slugs/platforms.
--caption <string>Caption for image, carousel, story, or social video outputs.
--content <string>Post text or fallback source text.
--content-profile <string>short_textContent profile: short_text, thread, link_share, image_post, carousel, story, short_video, long_video.
--description <string>Description field for link/video outputs.
--file <string>Read post/source text from file or '-' for stdin.
--media <stringArray>Media ID or local file path to attach; repeatable.
--media-alt <stringArray>Alt text for uploaded media.
--privacy <string>YouTube privacy status: private, unlisted, or public.
--schedule <string>Schedule time.
--segments-file <string>Ordered segment JSON with settings.mentions and UTF-8 byte ranges; use - for stdin.
--tiktok-method <string>DIRECT_POSTTikTok content posting method.
--tiktok-privacy <string>SELF_ONLYTikTok privacy level.
--title <string>Publication title.
--url <string>Source URL for link shares.
--video-description <string>YouTube video description.
--video-title <string>YouTube video title.

openpost publication delete

Permanently delete an editable publication.

openpost publication delete <publication-id> [flags]
FlagDescription
--confirmConfirm permanent publication deletion.

openpost publication delete-comment

Delete a provider comment.

openpost publication delete-comment <comment-id> [flags]
FlagDescription
--confirmConfirm permanent provider deletion.

openpost publication delete-rendition

Permanently delete one saved publication destination.

openpost publication delete-rendition <publication-id> <account-id> [flags]
FlagDescription
--confirmConfirm permanent destination deletion.

openpost publication events

List publication lifecycle events.

openpost publication events <publication-id> [flags]
FlagDefaultDescription
--limit <int>0Maximum number of events to return.

openpost publication hide-comment

Hide a provider comment.

openpost publication hide-comment <comment-id>

openpost publication list

List publications.

openpost publication list [flags]
FlagDefaultDescription
--content-profile <string>Filter by content profile.
--limit <int>0Maximum number of publications to return.
--offset <int>0Number of publications to skip.
--status <string>Filter by status.

openpost publication publish-now

Queue a publication for immediate publishing.

openpost publication publish-now <publication-id>

openpost publication renditions

Replace destination-specific renditions from JSON.

openpost publication renditions <publication-id> [flags]
FlagDescription
--file <string>JSON array of renditions, or '-' for stdin.

openpost publication reply

Queue an explicit reply to a published rendition.

openpost publication reply <rendition-id> [flags]
FlagDescription
--at <string>Optional reply schedule time.
--body <string>Reply text.
--file <string>Read reply text from file or '-' for stdin.
--parent-id <string>External provider post or comment ID.

openpost publication reply-comment

Reply to a provider comment.

openpost publication reply-comment <comment-id> [flags]
FlagDescription
--body <string>Reply text.
--file <string>Read reply text from file or '-' for stdin.

openpost publication retry

Retry one failed publication destination.

openpost publication retry <publication-id> <account-id>

openpost publication schedule

Schedule an existing publication.

openpost publication schedule <publication-id> [flags]
FlagDescription
--at <string>Schedule time, natural language, or next-slot.

openpost publication update

Update an editable publication.

openpost publication update <publication-id> [flags]
FlagDescription
--content <string>Shared post or caption text.
--content-profile <string>Content profile.
--file <string>Read shared text from file or '-' for stdin.
--forceOverwrite after reviewing a revision conflict.
--schedule <string>New schedule time; use draft to clear.
--segments-file <string>Ordered segment JSON with settings.mentions and UTF-8 byte ranges; use - for stdin.
--title <string>Publication title.
--url <string>Source URL; pass an empty value to clear.

openpost publication validate

Validate a publication.

openpost publication validate <publication-id>

openpost publication view

View a publication.

openpost publication view <publication-id>

openpost schedule

Manage reusable posting schedule slots.

Manage the workspace-local weekly slots used by next-slot scheduling.

openpost schedule create

Create a weekly posting schedule slot.

openpost schedule create [flags]
FlagDefaultDescription
--day <int>0Workspace-local day of week (0=Sunday, 6=Saturday)
--hour <int>0Workspace-local hour (0-23)
--label <string>Display label.
--minute <int>0Workspace-local minute (0-59)

openpost schedule delete

Delete a posting schedule slot.

openpost schedule delete <schedule-id>

openpost schedule list

List posting schedule slots.

openpost schedule list

openpost schedule next

Find the next available posting slot.

openpost schedule next

openpost schedule suggest

Create a suggested seven-day posting schedule.

Create active workspace-local schedule slots for every day of the week.

openpost schedule suggest [flags]
FlagDefaultDescription
--posts-per-day <int>3Number of slots to create per day (1-10)

openpost schedule update

Update a posting schedule slot.

openpost schedule update <schedule-id> [flags]
FlagDefaultDescription
--activeEnable the slot.
--day <int>0Workspace-local day of week (0=Sunday, 6=Saturday)
--hour <int>0Workspace-local hour (0-23)
--inactiveDisable the slot.
--label <string>Display label; pass an empty value to clear it.
--minute <int>0Workspace-local minute (0-59)

openpost thread

Create multi-post threads.

openpost thread create

Create a thread from a markdown file.

openpost thread create <file> [flags]
FlagDefaultDescription
--accounts <string>Comma-separated account selectors.
--random-delay <int>0Random delay in minutes.
--schedule <string>Natural-language, RFC3339, next-slot, now, or draft.

openpost version

Print the openpost CLI version.

openpost version

openpost workspace

Manage the active OpenPost workspace.

openpost workspace create

Create a workspace.

openpost workspace create <name>

openpost workspace list

List workspaces.

openpost workspace list

openpost workspace use

Set the active workspace for the current profile.

openpost workspace use <name-or-id>

On this page

Global flagsCommandsopenpost accountopenpost account disconnectopenpost account listopenpost account mentionsopenpost account renameopenpost authopenpost auth loginopenpost auth logoutopenpost auth statusopenpost auth token listopenpost auth token revokeopenpost billingopenpost billing checkoutopenpost billing portalopenpost billing statusopenpost completionopenpost doctoropenpost inboxopenpost inbox actopenpost inbox getopenpost inbox listopenpost inbox mark-readopenpost inbox refreshopenpost inbox stateopenpost instanceopenpost instance addopenpost instance diagnosticsopenpost instance healthopenpost instance listopenpost instance removeopenpost instance useopenpost jobsopenpost jobs listopenpost mediaopenpost media deleteopenpost media listopenpost media prepare-imageopenpost media storageopenpost media updateopenpost media uploadopenpost media usageopenpost postopenpost post createopenpost post deleteopenpost post listopenpost post scheduleopenpost post updateopenpost post viewopenpost provideropenpost provider capabilitiesopenpost provider listopenpost provider readinessopenpost publicationopenpost publication cancelopenpost publication commentsopenpost publication createopenpost publication deleteopenpost publication delete-commentopenpost publication delete-renditionopenpost publication eventsopenpost publication hide-commentopenpost publication listopenpost publication publish-nowopenpost publication renditionsopenpost publication replyopenpost publication reply-commentopenpost publication retryopenpost publication scheduleopenpost publication updateopenpost publication validateopenpost publication viewopenpost scheduleopenpost schedule createopenpost schedule deleteopenpost schedule listopenpost schedule nextopenpost schedule suggestopenpost schedule updateopenpost threadopenpost thread createopenpost versionopenpost workspaceopenpost workspace createopenpost workspace listopenpost workspace use