---
title: "CLI-példák platformonként | Posty dokumentáció"
description: "Kész parancsok X-, YouTube-, TikTok-, Instagram- és többcsatornás bejegyzésekhez."
canonical: https://posty.hu/de/dokumentation/cli/beispiele
source: https://posty.hu/de/dokumentation/cli/beispiele.md
---

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>"
```

Kód másolása

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>"
```

Kód másolása

Bei X ist `who_can_reply_post` Pflicht. Die möglichen Werte listet die [X-Plattformseite](https://posty.hu/de/dokumentation/plattformen/x) 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>"
```

Kód másolása

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>"
```

Kód másolása

`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](https://posty.hu/de/dokumentation/plattformen/tiktok).

## 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>"
```

Kód másolása

`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](https://posty.hu/de/dokumentation/api/endpunkte/bejegyzes-letrehozas) 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" }
    }
  ]
}
```

Kód másolása

```
posty posts:create --json ./bejegyzes.json
```

Kód másolása

Dokumentationsseiten

Fehlt etwas auf dieser Seite? Schreib eine E-Mail an [norbert@posty.hu](mailto:norbert@posty.hu) oder nutze auf der [Hilfeseite](https://posty.hu/de/hilfe) das Formular.
