Parancssor (CLI)

CLI-példák platformonként

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

Simple scheduling

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

Add the -t draft flag for a draft, or -t now to publish immediately. You don't need a date to publish immediately.

X: thread and reply settings

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

X requires who_can_reply_post. The allowed values are listed on the X platform page.

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>"
Title and visibility are required

On YouTube, a post cannot be scheduled without title (2 to 100 characters) and type (public, unlisted or private). Neither has a default value, by design.

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 actually publishes the video. UPLOAD only sends it to the user's TikTok inbox, where they must finish it manually within 24 hours. TikTok discards every setting except the title. See the TikTok platform page for details.

Pinterest: board

# 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 expects an ID, not a board name. The same is true for the Discord and Slack channel field.

Multiple channels with different text

If the text or settings differ by channel, provide the request in a file. The file contents match the 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
Is something missing from this page? Email [email protected] or use the form on the Help page.