Parancssor (CLI)

CLI-példák platformonként

Kész parancsok X-, YouTube-, TikTok-, Instagram- és többcsatornás bejegyzésekhez.

Einfache Planung

posty posts:create \
  -c "Sziasztok! Ma új funkciót adtunk ki." \
  -s "2026-12-31T12:00:00Z" \
  -i "<csatorna-azonosito>"

Für einen Entwurf füge -t draft hinzu, für sofortige Veröffentlichung -t now. Ein Datum brauchst du dafür nicht.

X: Thread und Antworteinstellung

posty posts:create \
  -c "1/3 Kezdjük egy rövid szállal." \
  -c "2/3 A második rész." \
  -c "3/3 És a zárás." \
  -d 2 \
  -s "2026-12-31T12:00:00Z" \
  --settings '{"who_can_reply_post":"everyone"}' \
  -i "<x-csatorna-azonosito>"

Bei X ist who_can_reply_post Pflicht. Die möglichen Werte listet die X-Plattformseite auf.

YouTube: Video

VIDEO=$(posty upload ./video.mp4 | jq -r '.path')

posty posts:create \
  -c "A videó leírása." \
  -m "$VIDEO" \
  -s "2026-12-31T12:00:00Z" \
  --settings '{"title":"A videó címe","type":"public"}' \
  -i "<youtube-csatorna-azonosito>"
Titel und Sichtbarkeit sind Pflicht

Bei YouTube lässt sich ein Beitrag ohne title (2 bis 100 Zeichen) und type (public, unlisted oder private) nicht planen. Standardwerte gibt es absichtlich nicht.

TikTok: Video

VIDEO=$(posty upload ./video.mp4 | jq -r '.path')

posty posts:create \
  -c "A videó leírása." \
  -m "$VIDEO" \
  -s "2026-12-31T12:00:00Z" \
  --settings '{
    "content_posting_method": "DIRECT_POST",
    "privacy_level": "PUBLIC_TO_EVERYONE",
    "title": "A videó címe",
    "duet": true,
    "stitch": true,
    "comment": true,
    "autoAddMusic": "no",
    "brand_content_toggle": false,
    "brand_organic_toggle": false
  }' \
  -i "<tiktok-csatorna-azonosito>"

DIRECT_POST veröffentlicht das Video tatsächlich. UPLOAD schickt es nur in den TikTok-Posteingang des Nutzers. Dort muss er es innerhalb von 24 Stunden von Hand fertigstellen. TikTok verwirft alle Einstellungen außer dem Titel. Mehr dazu auf der TikTok-Plattformseite.

Pinterest: Pinnwand

# a táblák azonosítói
posty integrations:trigger <pinterest-csatorna> boards

KEP=$(posty upload ./kep.png | jq -r '.path')

posty posts:create \
  -c "A pin leírása." \
  -m "$KEP" \
  -s "2026-12-31T12:00:00Z" \
  --settings '{"board":"<tabla-azonosito>","title":"A pin címe"}' \
  -i "<pinterest-csatorna>"

board erwartet eine ID, keinen Pinnwandnamen. Dasselbe gilt für das Discord- und Slack-Feld channel.

Mehrere Kanäle, anderer Text

Wenn Text oder Einstellungen je Kanal anders sind, übergib die Anfrage als Datei. Der Dateiinhalt entspricht dem POST /posts Request-Body.

{
  "type": "schedule",
  "date": "2026-12-31T12:00:00Z",
  "shortLink": false,
  "posts": [
    {
      "integration": { "id": "<x-csatorna>" },
      "value": [{ "content": "<p>Rövid változat X-re.</p>", "image": [] }],
      "settings": { "__type": "x", "who_can_reply_post": "everyone" }
    },
    {
      "integration": { "id": "<linkedin-csatorna>" },
      "value": [{ "content": "<p>Hosszabb változat LinkedInre.</p>", "image": [] }],
      "settings": { "__type": "linkedin" }
    }
  ]
}
posty posts:create --json ./bejegyzes.json
Fehlt etwas auf dieser Seite? Schreib eine E-Mail an [email protected] oder nutze auf der Hilfeseite das Formular.