OpenPost CLI workflows
Use live --help output if a flag in this reference differs from the installed CLI.
Authenticate and select the target
openpost auth login https://app.openpo.st
openpost auth login https://app.openpo.st --device
printf '%s\n' "$OPENPOST_TOKEN" | openpost auth login https://app.openpo.st --with-token
openpost auth status --json
openpost auth logoutManage API tokens without exposing them:
openpost auth token list --json
openpost auth token revoke token-id --jsonManage instance profiles and workspaces:
openpost instance add personal https://app.openpo.st --json
openpost instance list --json
openpost instance use personal --json
openpost instance health --json
openpost workspace create personal --json
openpost workspace list --json
openpost workspace use personal --jsonInspect the target
openpost instance diagnostics --json
openpost workspace list --json
openpost account list --json
openpost provider readiness --jsoninstance diagnostics also accepts --deployment, --provider, and --logs-file for support snapshots.
Select a different target without changing the saved profile:
openpost --instance https://app.example.com --workspace workspace-id account list --jsonManage connected accounts
openpost account list --json
openpost account list --platform x --json
openpost account rename main-x --slug company-x --json
openpost account disconnect account-id --yes --jsonNew accounts are connected in the web UI at <instance>/settings?tab=accounts; the CLI has no provider credential flow. Disconnect asks for confirmation unless --yes is already authorized.
Manage billing (Hosted)
openpost billing status --json
openpost billing checkout founder --billing-period annual --json
openpost billing portal --jsonCheckout plans are founder, team, or agency with --billing-period monthly (default) or annual.
Manage provider context
openpost provider list --json
openpost provider readiness --workspace workspace-id --json
openpost provider capabilities --provider youtube --json
openpost provider capabilities --provider tiktok --content-profile short_video --jsonReadiness reports setup and account blockers. Capabilities report supported profiles, media shapes, text limits, and provider settings.
Create and edit text posts
Create a draft:
openpost post create \
--accounts main-x,company-linkedin \
--content 'Release notes are ready.' \
--jsonAttach an existing media ID or upload a local file in the same command:
openpost post create \
--accounts main-x \
--content 'The new queue is live.' \
--media media-id \
--json
openpost post create \
--accounts main-x \
--content 'The new queue is live.' \
--media ./queue.png \
--media-alt 'OpenPost queue screen' \
--jsonUpdate and verify:
openpost post update post-id --content 'Revised copy.' --json
openpost post view post-id --jsonRead content from a file, add a random delay, or attach an encoded thread draft:
openpost post create --accounts main-x --file ./draft.txt --json
openpost post create --accounts main-x --content 'Staggered rollout.' --random-delay 30 --jsonList, schedule, and delete existing posts (post delete asks for confirmation unless --yes is already authorized):
openpost post list --status scheduled --json
openpost post schedule post-id --at '2026-08-03T09:00:00+01:00' --json
openpost post delete post-id --yes --jsonThe CLI loads the current draft revision before an update. If the server reports a revision conflict, reload and reconcile instead of forcing a stale write.
Schedule at an exact instant or the next configured slot:
openpost post create \
--accounts main-x \
--content 'Scheduled update.' \
--schedule '2026-08-03T09:00:00+01:00' \
--json
openpost post create \
--accounts main-x \
--content 'Use the next free slot.' \
--schedule next-slot \
--jsonUse post update <id> --schedule draft to clear a queued schedule.
Create a Markdown thread
The file needs at least two non-empty posts separated by a line containing only ---:
First post.
---
Second post.Create a draft or schedule it:
openpost thread create ./thread.md --accounts main-x --json
openpost thread create ./thread.md --accounts main-x --schedule next-slot --jsonThe file may start with optional front matter containing workspace, accounts, schedule, and random_delay.
Create format-first publications
Profiles:
short_textthreadlink_shareimage_postcarouselstoryshort_videolong_video
Inspect capabilities for every target provider before filling provider-specific fields.
Link share:
openpost publication create \
--content-profile link_share \
--accounts company-linkedin \
--url https://example.com/release \
--content 'Release notes' \
--jsonShort video for mixed providers:
openpost publication create \
--content-profile short_video \
--accounts youtube-shorts,tiktok-main \
--video-title 'Launch demo' \
--video-description 'A short product walkthrough.' \
--caption 'A short product walkthrough.' \
--media ./launch.mp4 \
--jsonLong YouTube video:
openpost publication create \
--content-profile long_video \
--accounts youtube-main \
--video-title 'Full walkthrough' \
--video-description 'Complete product walkthrough.' \
--privacy private \
--media ./walkthrough.mp4 \
--jsonList and update editable publications (--force on update only after reviewing a revision conflict):
openpost publication list --status draft --json
openpost publication update publication-id --content 'Revised copy.' --json
openpost publication update publication-id --schedule draft --jsonValidate, then schedule, publish, or cancel:
openpost publication validate publication-id --json
openpost publication schedule publication-id --at '2026-08-03T09:00:00+01:00' --json
openpost publication publish-now publication-id --json
openpost publication cancel publication-id --jsonRead shared text from a file or stdin, and set video provider fields at create time:
openpost publication create --content-profile short_text --accounts main-x --file ./draft.txt --json
openpost publication create \
--content-profile short_video \
--accounts tiktok-main \
--tiktok-method DIRECT_POST \
--tiktok-privacy SELF_ONLY \
--media ./launch.mp4 --jsonReplace destination-specific renditions with a JSON array:
openpost publication renditions publication-id --file ./renditions.json --jsonRun openpost publication renditions --help and inspect provider capabilities before constructing provider settings.
Manage media
openpost media upload ./image.png --alt 'Descriptive alt text' --json
openpost media list --limit 100 --json
openpost media update media-id --alt 'Revised alt text' --json
openpost media usage media-id --json
openpost media storage --json
openpost media delete media-id --yes --jsonCheck usage before deletion. OpenPost rejects deletion while media is used by an editable draft, design, template, or brand kit.
Manage reusable schedule slots
List slots and find the next free time:
openpost schedule list --json
openpost schedule next --jsonCreate or edit a workspace-local weekly slot. Days use 0=Sunday through 6=Saturday:
openpost schedule create --day 1 --hour 9 --minute 30 --label Morning --json
openpost schedule update schedule-id --hour 10 --minute 0 --json
openpost schedule update schedule-id --inactive --jsonCreate a suggested seven-day schedule only when the user asked for it. This adds 7 × posts-per-day slots:
openpost schedule suggest --posts-per-day 2 --yes --jsonDelete one exact slot:
openpost schedule delete schedule-id --yes --jsonInspect and recover publication activity
openpost publication view publication-id --json
openpost publication events publication-id --json
openpost jobs list --jsonRetry one failed and retryable destination:
openpost publication retry publication-id account-id --jsonDo not retry a failure that requires account reconnection or a content change.
Delete one saved rendition or an editable publication only after explicit authorization:
openpost publication delete-rendition publication-id account-id --confirm --json
openpost publication delete publication-id --confirm --jsonReply to a published rendition
openpost publication reply rendition-id --body 'Follow-up with the numbers.' --json
openpost publication reply rendition-id --file ./reply.txt --at '2026-08-03T09:00:00+01:00' --json--parent-id targets an external provider post or comment. Replies change the provider's remote state.
Read and moderate comments
openpost publication comments rendition-id --json
openpost publication reply-comment comment-id --body 'Thanks for the feedback.' --json
openpost publication hide-comment comment-id --json
openpost publication delete-comment comment-id --jsonUse only actions marked supported in the comment data. Replies and moderation change the provider's remote state.