Analitika a parancssorból
Csatorna- és bejegyzésstatisztika lekérése, és mi hiányzik még egy bejegyzésből.
analytics:platform
A channel's statistics for the last N days.
posty analytics:platform <csatorna-azonosito> -d 30analytics:post
A published post's platform numbers.
posty analytics:post <bejegyzes-azonosito>Platforms don't calculate in real time. A post's numbers start to make sense hours after publishing, and they can still change for days. If the post has no platform ID recorded, there will be no statistics either. The Analytics page covers this.
posts:missing
Tells you what is still missing from a post before it can be published: a required platform setting, media, a title. Worth running before you schedule.
posty posts:missing <bejegyzes-azonosito>Weekly report
Every command writes JSON to stdout, so the report is a few lines:
for id in $(posty integrations:list | jq -r '.[].id'); do
echo "== $id"
posty analytics:platform "$id" -d 7
done > heti-riport.json 2>> hiba.logErrors go to stderr, so you can still process the report file even if a channel is disconnected. The CLI intro covers the output contract. The -d flag is the number of days on both analytics commands.