Parancssor (CLI)

Bejegyzések kezelése a parancssorból

Létrehozás, listázás, állapotváltás, törlés és a szabad időpont keresése, kapcsolónként.

posts:create

You will use this command most often. In its simplest form:

posty posts:create \
  -c "Sziasztok!" \
  -s "2026-12-31T12:00:00Z" \
  -i "<csatorna-azonosito>"
FlagShortWhat it does
--content-cThe post text. Repeat this flag to create a thread, as shown below.
--integrations-iComma-separated channel IDs.
--date-sThe publishing time, in ISO 8601 format with an offset or time zone.
--type-tschedule (the default), draft, or now.
--media-mComma-separated media URLs for the preceding -c flag.
--delay-dDelay between parts, in minutes.
--timezoneIANA time zone name, for example Europe/Budapest.
--settingsPlatform-specific settings as JSON text.
--json-jThe full request from a JSON file.
--shortLinkWhether to shorten links. Enabled by default.
--type now publishes immediately

now does not need a date, and it cannot be undone: the post goes out to your real audience. When testing a script, use draft first.

Threads and media

The first -c is the post. Each subsequent one is a comment below it. The -m flag always applies to the preceding -c flag.

posty posts:create \
  -c "Az első rész" -m "https://uploads.posty.hu/egy.jpg" \
  -c "A második rész" -m "https://uploads.posty.hu/ketto.jpg" \
  -c "A harmadik rész" \
  -d 5 \
  -s "2026-12-31T12:00:00Z" \
  -i "<csatorna-azonosito>"

The media URLs are returned by the posty upload command. Other URLs will not work.

Full request from a file

For a complex post, such as one with multiple channels, different text for each channel, or platform-specific settings, it is easier to work from a file:

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

The file contents match the POST /posts request body. You will find complete examples on the Platform examples page.

posts:list

posty posts:list \
  --startDate "2026-09-01T00:00:00Z" \
  --endDate "2026-09-30T23:59:59Z"

Use the --customer flag to filter by client. The output is JSON, so you can pipe it to other commands.

posts:status

posty posts:status <bejegyzes-azonosito> --status draft
posty posts:status <bejegyzes-azonosito> --status schedule

This moves the post between draft and scheduled states. Changing its status to scheduled requires publishing permission, not draft permission.

posts:delete

posty posts:delete <bejegyzes-azonosito>

This deletes the post from Posty. It does not affect a post already published on the platform.

posts:find-slot

posty posts:find-slot <csatorna-azonosito>

It uses the channel's slot template and scheduled posts to find the next available slot. This is the most useful command for scripts: ask for a slot instead of making up a date.

Using them together

SLOT=$(posty posts:find-slot "<csatorna>" | jq -r '.date')
posty posts:create -c "Sziasztok!" -s "$SLOT" -i "<csatorna>"
Is something missing from this page? Email [email protected] or use the form on the Help page.