Index of every page on this site: llms.txt
All skills
getopenpost avatar

/openpost-cli

@300814b
by OpenPostgetopenpost/openpost952 stars
136
Run it yourself

Operate a running OpenPost instance through the openpost CLI. Use for authentication and profile setup; workspace, account, provider, media, schedule, job, and billing inspection; creating or editing text posts, threads, and format-first publications; scheduling or publishing content; checking lifecycle events; recovering failed destinations; and comment replies or moderation. Prefer this skill when terminal or scripted OpenPost work is requested. It is not needed when an OpenPost MCP connector is already being used.

Use this Skill: https://skilld.dev/gh/getopenpost/openpost/openpost-cli

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesworkflows.md

≈2.3k tokens on demand. Your agent reads this file only when SKILL.md points to it.

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 logout

Manage API tokens without exposing them:

openpost auth token list --json
openpost auth token revoke token-id --json

Manage 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 --json

Inspect the target

openpost instance diagnostics --json
openpost workspace list --json
openpost account list --json
openpost provider readiness --json

instance 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 --json

Manage 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 --json

New 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 --json

Checkout 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 --json

Readiness 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.' \
  --json

Attach 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' \
  --json

Update and verify:

openpost post update post-id --content 'Revised copy.' --json
openpost post view post-id --json

Read 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 --json

List, 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 --json

The 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 \
  --json

Use 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 --json

The file may start with optional front matter containing workspace, accounts, schedule, and random_delay.

Create format-first publications

Profiles:

  • short_text
  • thread
  • link_share
  • image_post
  • carousel
  • story
  • short_video
  • long_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' \
  --json

Short 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 \
  --json

Long 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 \
  --json

List 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 --json

Validate, 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 --json

Read 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 --json

Replace destination-specific renditions with a JSON array:

openpost publication renditions publication-id --file ./renditions.json --json

Run 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 --json

Check 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 --json

Create 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 --json

Create 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 --json

Delete one exact slot:

openpost schedule delete schedule-id --yes --json

Inspect and recover publication activity

openpost publication view publication-id --json
openpost publication events publication-id --json
openpost jobs list --json

Retry one failed and retryable destination:

openpost publication retry publication-id account-id --json

Do 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 --json

Reply 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 --json

Use only actions marked supported in the comment data. Replies and moderation change the provider's remote state.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning3d3 checks · Risk SAFE
  • Gen Agent Trust Hub3d

    This skill enables social media management via the OpenPost CLI, featuring strong instructions for secure credential management and requiring explicit user authorization for state-changing operations.

  • Socket3d

    No alerts

  • Snyk3d

    Risk: MEDIUM · 1 issue

Signed by skilld at 300814b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 hours ago.

Activeupdated 2 months ago

README badge

README badge for getopenpost/openpost/openpost-cli