---
title: Posts from the command line
description: Channels, drafts, posts and their scheduling, queues, feeds, media and reviews, from a terminal.
sidebar:
  icon: square-pen
---

Every command on this page acts in one workspace, the one `--workspace` or `PEAL_WORKSPACE` names ([Choose the workspace](/developers/cli#workspace)). Each does what your role, or your key's permissions, allow there.

## Channels [#channels]

These commands read and manage the workspace's channels:

```sh
peal channels list
peal channels list --platform youtube --status disabled --search "client a"
peal channels rename <channel-id> "Client A"
peal channels rename <channel-id> --clear
peal channels disable <channel-id>
peal channels enable <channel-id>
peal channels capabilities [<channel-id>] [--json]
peal channels lookup <channel-id> [<lookup>] [--region <country>] [--language <tag>] [--vanity-name <name>] [--limit <n>] [--cursor <cursor>] [--json]
peal channels tiktok <channel-id>
peal channels defaults show <channel-id>
```

You connect a channel in the web app.

### List them [#channels-list]

`peal channels list` lists the workspace's channels with their ids, which drafts and posts take. Each one shows the [name the workspace gave it](/guides/channels#name) before its handle, and whether it posts, is turned off or must be reconnected. A closing line counts them by status.

These flags narrow the list. Every filter you give must hold, and you get a page at a time (`--limit`, then the `--cursor` the page before printed):

| Flag         | Keeps                                                          |
| ------------ | -------------------------------------------------------------- |
| `--platform` | The channels of one platform                                   |
| `--status`   | `active`, `disabled` or `refreshNeeded`                        |
| `--search`   | The channels whose handle or one of whose names holds the text |

The counts still cover every status, whatever `--status` asked for. With one of those flags, `--json` prints the page (`items`, `nextCursor`, `counts`). Without any, it prints the list of channels, as it always did.

### Rename a channel or turn it off [#channels-settings]

These three commands need the right to connect channels:

- `peal channels rename` gives a channel the name your workspace calls it by, 60 characters at most. Peal shows it beside the handle the platform gives the account, and sends it to no platform. Without a name, or with `--clear`, it takes the name off.
- `peal channels disable` [turns a channel off](/guides/channels#turn-off), so nothing goes out on it. The channel keeps its connection, its history and its place in your plan.
- `peal channels enable` turns it back on. It posts again, or says it must be reconnected if its platform stopped accepting Peal's access in the meantime.

A post that reaches its time while its channel is off fails on that channel and goes out on its others. It isn't sent there later.

### See what a channel takes [#channels-capabilities]

`peal channels capabilities` shows [what a channel takes](/developers#capabilities), read from the platform at that moment. You see how its text is counted and limited, the media it takes with each file type's limits, its platform's options (which `peal drafts save --options` sets) and what the account itself restricts. Without a channel, it sums up every platform, one line each.

### Look up account data [#channels-lookup]

`peal channels lookup` asks a channel's platform for the account data its options refer to. It changes nothing:

- Without a lookup, it lists the lookups the channel has.
- With one, it runs it. `peal channels lookup <channel-id> youtubeVideoCategories --region FR` gives the categories a YouTube video can be filed under in France.
- `peal channels lookup <channel-id> pinterestBoards` lists a Pinterest account's boards, and `pinterestBoardSections --board <board-id>` a board's sections.
- A paged lookup ends with the `--cursor` that reads its next page.

With `--json`, both `capabilities` and `lookup` print the server's answer as JSON, for scripts.

### Read a TikTok channel's settings [#channels-tiktok]

`peal channels tiktok` reads a TikTok channel's settings from TikTok, as TikTok asks before every post. You see who it posts as, and the audiences a post can choose (its `privacyLevel`, which has no default). You also see the interactions the account turned off, which stay off, and its longest video, or why it can't post today.

Posting to TikTok means agreeing to its Music Usage Confirmation, and to its Branded Content Policy for branded content.

`peal channels defaults` shows, sets and clears a channel's [default options](#default-options), which a new post takes there when it gives none.

## Drafts [#drafts]

A draft has no time, and nothing checks it against the platforms until you schedule it:

```sh
peal drafts list                  # newest first; --limit and --cursor page through them
peal drafts save --text "Spring catalogue is out" --channel <channel-id> --channel <channel-id>
peal drafts save --post <post-id> --text "Spring catalogue is out today"
peal drafts save --post <post-id> --options '<channel-id>={"platform":"youtube","title":"Spring catalogue","madeForKids":false}'
peal drafts save --post <post-id> --tag "Spring campaign"
peal drafts save --text "Spring catalogue is out" --set Launch --default-signatures
peal drafts discard <post-id>
```

### Save a draft [#drafts-save]

Without `--post`, `peal drafts save` writes a new draft for the channels `--channel` names. None yet is fine. With `--post`, it changes that draft: the text when you give `--text`, and the channels when you give any `--channel`. What you leave out stays as it was, including its media and its [platform options](/guides/posts#options) on the channels it keeps.

It also takes these flags:

- `--then <text>`, repeated, gives the draft the parts that follow it, as `peal post` takes them, with `--then-delay <seconds>` between them. A draft you change keeps its parts without `--then`, and takes the new ones with it.
- `--poll-choice <text>`, repeated, with `--poll-minutes` and `--poll-multiple`, gives the draft a poll, as `peal post` takes them. A draft you change keeps its poll without `--poll-choice`.
- `--options <channel-id>=<json>` sets a channel's platform options, as JSON with its `platform`: for YouTube, `title` and `madeForKids` (both needed to schedule), `privacy`, `tags`, `categoryId`, `notifySubscribers`, `containsSyntheticMedia`, `license`, `embeddable`, `publicStatsViewable`, `defaultLanguage`, `recordingDate` (as `2026-11-27`), `thumbnailMediaId` (a JPEG or PNG of the [library](/guides/media), by its id); for TikTok, `privacyLevel` (needed, one `peal channels tiktok` lists), `disableComment`, `disableDuet`, `disableStitch`, `commercialContent`, `brandOrganic`, `brandContent`, `aiGenerated`, a video's `videoCoverTimestampMs`, a photo post's `photoTitle`, `autoAddMusic` and `photoCoverIndex`; for Pinterest, `boardId` (needed, one `peal channels lookup` lists), `boardSectionId`, `title`, `link`, `coverSecond`, `dominantColor`; for LinkedIn, `visibility` (`public` when left out, `connections` on a profile, or `loggedIn`), `disableReshare`, `mentions` (company pages, each a `name` and a `urn` that `peal channels lookup` finds on a company page channel), `linkUrl` with its `linkTitle` and a `linkDescription`, and a PDF document's `documentTitle`; for Google Business Profile, `postType` (`standard` when left out, `event` or `offer`), `title`, `startsAt` and `endsAt` (needed for an event or an offer, as `2026-11-27T09:00`, on the location's clock), `callToAction` with `callToActionUrl`, and an offer's `couponCode`, `redeemUrl` and `terms`; for Mastodon, `visibility`, `contentWarning`, `sensitive`, `language`, `quotePolicy`; for Bluesky, `languages`, `contentLabel`, `replies` (`everyone`, `nobody`, or `limited` to those of `replyFollowers`, `replyFollowing` and `replyMentioned` that are `true`), `disableQuotes`; for Threads, `replyControl`, `topicTag`, `linkAttachment`; for X, `replySettings`, `communityId`, `shareWithFollowers`, `paidPartnership`, `madeWithAi` (see [the options of Mastodon, Bluesky, Threads and X](/platforms)); for Instagram, `format` (`story`, sent without the text), a reel's `shareToFeed`, `coverMediaId` (a JPEG of the library), `thumbOffsetMs`, `audioName` and `trialReel`, and `collaborators` (usernames, each invited); for Facebook, `format` (`story` or `reel`) and a video's or a reel's `videoTitle` (see [post formats](/guides/posts#formats) and [the options of YouTube, TikTok, Instagram and Facebook](/platforms)); for Discord, `mentions`, `silent`, `suppressEmbeds` and `threadName` (the title a forum channel needs for each post); for Telegram, `silent` and `linkPreview`; for Slack, `unfurlLinks`; for Snapchat, `locale`. Repeat it for several channels. It replaces that channel's options whole.
- `--tag <id-or-name>` files the draft under one of the workspace's [tags](#tags). Repeat it for several. A draft you change keeps its tags without it, and takes the ones you give instead with it.
- `--set <id-or-name>` names one of the workspace's [channel sets](#sets) instead of listing its channels. Repeat it for several. The draft goes to the set's connected channels too, with the options the set keeps for them where `--options` gives none. A channel of the set that's no longer connected is left out, and `peal` says which.
- `--signature <id-or-name>` puts one of the workspace's [signatures](#signatures) under the draft's text, on every channel, and `--default-signatures` puts each channel's default one. The signature then becomes text of the draft, and it's never added under a text that already ends with it.

A new draft takes a channel's [default options](#default-options) on any channel where it gives none. A draft you change keeps what it has.

A draft goes out at no time. Its text, media and options are checked against each platform's rules when you schedule it, with `peal posts schedule` or in the web app.

### Discard a draft [#drafts-discard]

`peal drafts discard` deletes a draft for good. A post that's scheduled or went out isn't a draft, so unschedule or cancel it instead.

## Write and send a post [#post]

`peal post` writes a post and sends it in one command, to the public of the accounts its channels connect:

```sh
peal post "Spring catalogue is out" --channel <channel-id> --at 2026-11-20T10:00 --time-zone Europe/Paris
peal post "Spring catalogue is out" --channels <channel-id>,<channel-id> --now
peal post "Spring catalogue is out" --channel <channel-id> --at 2026-11-20T09:00:00Z \
  --media ./cover.jpg --alt "A paper catalogue open on a wooden table" \
  --idempotency-key spring-catalogue-2026-11-20
peal post "Spring catalogue is out" --channel <channel-id> --at 2026-11-20T10:00 --time-zone Europe/Paris --dry-run
peal post "Spring catalogue is out" --channel <channel-id> --now --wait 30
```

> **What goes out can't be taken back from Peal**
>
> Run the command with `--dry-run` first to check the post without sending it.

It takes these flags:

| Flags                                                                 | What they do                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--at`, `--now`, `--queue <name-or-id>`, `--default-queue`            | When it goes out. `--at` schedules it, `--now` publishes it at once, and `--queue` or `--default-queue` puts it on a [queue's](#queues) next free slot. You must give one of them, because publishing is never the default.                                                                                                                                                                                                                                                                                                |
| `--time-zone` (or `--zone`)                                           | The IANA zone, such as `Europe/Paris`, that a local time in `--at` is read in. `--at` takes an instant with its offset, such as `2026-11-20T09:00:00Z` or `2026-11-20T10:00:00+01:00`, or a local time without one, such as `2026-11-20T10:00`. Without the flag, the zone is `TZ`, then your computer's. A local time the clocks skip or repeat in that zone is refused, so give the instant with its offset.                                                                                                             |
| `--channel` (or `--channels`), `--set <id-or-name>`                   | Where it goes. `--channel` names a channel by its id. Repeat it, or separate ids with commas. `--set` names a [channel set](#sets) and stands for its connected channels. Give at least one channel or one set. A channel of a set that's no longer connected is left out, and `peal` says which after the post. If none is left and you gave no `--channel`, nothing is posted.                                                                                                                                           |
| `--media`, `--alt`                                                    | Each `--media` is a file, uploaded first; an `https://` address, which the server imports; or the id of a media the workspace has, as `peal media list` shows it. They show in the order given, 20 at most. The first `--alt` describes the first `--media`, the second the second.                                                                                                                                                                                                                                        |
| `--then <text>`, `--then-delay <seconds>`                             | A thread. Each `--then` adds a part after the post, in the order given, as text alone. On the platforms with [threads](/guides/posts#threads), it's a reply to the part before it. `--then-delay` makes each part wait that long after the part before it went out, a day (86400) at most. Without it, they follow one another. On Facebook Pages, Instagram, LinkedIn pages and YouTube, the one `--then` is a [first comment](/guides/posts#first-comment) instead. A platform that takes a post alone refuses the post. |
| `--poll-choice <text>`, `--poll-minutes <minutes>`, `--poll-multiple` | A [poll](/guides/posts#polls), with the post's text as its question. Each `--poll-choice` adds a choice, in order, 4 at most. `--poll-minutes` keeps it open that long, a day (1440) unless given, and `--poll-multiple` lets readers pick several. X, Mastodon and Threads take a poll, with no media, and every other platform refuses the post. A time or several picks without a choice is refused before anything is sent.                                                                                            |
| `--options <channel-id>=<json>`                                       | A channel's [platform options](/guides/posts#options), as `peal drafts save` takes them. On a channel where you give none, the post takes the options of a set you name, then the channel's [default options](#default-options).                                                                                                                                                                                                                                                                                           |
| `--signature <id-or-name>`, `--default-signatures`                    | `--signature` puts one of the workspace's [signatures](#signatures) under the text, on every channel. `--default-signatures` puts each channel's default one. A signature is text of the post, so it counts against each platform's limit. It's never added twice.                                                                                                                                                                                                                                                         |
| `--tag <id-or-name>`                                                  | Files the post under one of the workspace's [tags](#tags). Repeat it for several.                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `--shorten-links`, `--no-shorten-links`                               | `--shorten-links` sends the post's links shortened, on a server that has [short links](/guides/posts/published#short-links), and `--no-shorten-links` sends them as written. Without either, the post takes the workspace's default. `peal short-links list` then reads their clicks.                                                                                                                                                                                                                                      |
| `--idempotency-key`                                                   | Makes a run safe to repeat. It takes any text you choose, up to 255 characters, such as a UUID. Within 24 hours, the same key with the same post answers with the post the first run made, and makes no other. With a different post, it's refused. Without it, `peal` sends no key. To repeat a post with media, give `--media` as media ids, because files and addresses are stored again on each run, which makes it a different post.                                                                                  |
| `--allow-duplicate`                                                   | Lets a duplicate through. Apart from keys, a post is refused when its content (the text the channel receives, and the same media in the same order) already goes to one of its channels less than 23 hours from its time, and `peal` names the post that has it. Use this flag when you mean to post the same thing twice ([Duplicate posts](/developers/posting#duplicates)).                                                                                                                                             |
| `--dry-run`                                                           | Checks the post and posts nothing. It tells you what would be refused, and which channels of a set would be left out.                                                                                                                                                                                                                                                                                                                                                                                                      |
| `--wait <seconds>`                                                    | With `--now`, waits until every channel has its result before it answers, 60 at most. If time runs out first, the post keeps publishing, and `peal posts wait` waits for the rest.                                                                                                                                                                                                                                                                                                                                         |

The post is checked against every channel's platform first. If it breaks a rule, nothing is posted, and `peal` lists each violation on its own line, with its channel, platform, option or media, and the limit.

## Posts [#posts]

These commands act on posts that already exist, whatever their state:

```sh
peal posts list
peal posts list --from 2026-11-01T00:00:00Z --to 2026-12-01T00:00:00Z
peal posts list --tag "Spring campaign"
peal posts show <post-id>
peal posts attempts <post-id>
peal posts wait <post-id> --seconds 30
peal posts import posts.csv --dry-run
peal posts import posts.csv --idempotency-key spring-campaign-2026-11
peal posts schedule <post-id> --at 2026-11-20T10:00 --time-zone Europe/Paris
peal posts schedule <post-id> --at 2026-11-20T09:00:00Z --channels <channel-id>,<channel-id>
peal posts publish <post-id>
peal posts reschedule <post-id> --at 2026-11-21T10:00 --time-zone Europe/Paris
peal posts unschedule <post-id>
peal posts cancel <post-id>
peal posts remove-target <post-id> <target-id>
peal posts repost <post-id> <target-id>
peal posts leave-out-rest <post-id> <target-id>
peal posts confirm <post-id> <target-id> published --permalink https://mastodon.example/@studio/1
peal posts confirm <post-id> <target-id> not-published
peal posts unpublish <post-id> --channel <channel-id> --yes
peal posts edit <post-id> --channel <channel-id> --text "Doors open at 7 pm, not 6."
peal posts changes <post-id>
peal posts tag <post-id> --tag "Spring campaign" --tag Evergreen
peal posts duplicate <post-id>
```

> **Some of these commands act in public at once**
>
> `peal posts publish`, `peal posts repost` and `peal posts edit` reach the
> public immediately, and what they send can't be taken back from Peal. `peal
> posts unpublish` deletes a post for everyone, and can't be undone.

### Read posts [#posts-read]

Four commands read posts and change nothing:

- `peal posts list` lists the workspace's posts, whatever their state, a page at a time, with how each one went ([List posts](/developers/posting/list#search)). `--tag` keeps the posts filed under a [tag](#tags).
- `peal posts show` prints the post's status and time, and its tags if it has any. Then comes one line per channel, starting with its target id, with how it went there, and last, the post's options on each channel that has some.
- `peal posts attempts` lists every attempt Peal made at publishing the post, by channel, round and attempt. Each says when it started, how it ended, the code behind a refusal (the platform's or Peal's), and when Peal tried again.
- `peal posts wait` waits until every channel of a post has its result, up to `--seconds` (60 at most), then shows the post as it stands. Waiting changes nothing, so run it again if time ran out first.

On each channel, `peal posts show` says whether the post failed and why, is unconfirmed and why, or was published at its address. It also says when YouTube kept a public or unlisted video private.

### Import posts from a CSV file [#posts-import]

`peal posts import` creates and sends the posts a CSV file lists, one per row ([Import posts from a CSV file](/developers/posting/bulk#import)). It reads these columns:

- `text`, `channels` and `at`, which every row needs. `channels` holds channel ids, or a [channel set](#sets) by its id or by a name without spaces, commas or semicolons.
- `media`, `time_zone`, `allow_duplicate` and `idempotency_key`, which are optional.

Every row is checked first, and nothing is made unless every row is valid. `--dry-run` only checks the file. `--idempotency-key` makes the import safe to run again within 24 hours, so the rows already made aren't made twice.

### Schedule or publish a draft [#posts-schedule]

`peal posts schedule` schedules a draft for `--at`, which it reads as `peal post` does. The post goes to the channels it has, or to those `--channel` names. Its text, media and options must fit each platform's rules, or nothing is scheduled.

`peal posts publish` publishes a draft, or a scheduled post, now, on the channels it has. It reaches the accounts' public, and it can't be taken back from Peal once it's out.

### Move, unschedule or cancel a post [#posts-change]

Until a post goes out, you can still change when and where:

- `peal posts reschedule` moves a scheduled post to another time. Given a draft, it schedules it on the channels it has.
- `peal posts unschedule` takes a scheduled post back to draft, so it goes out at no time until you schedule it again. A post that's already publishing can't be unscheduled.
- `peal posts cancel` cancels a draft or a scheduled post for good, so it goes out on no channel. To change a scheduled post and keep it, unschedule it instead.
- `peal posts remove-target` takes one channel off a post that waits for its time, scheduled or awaiting approval. The post goes out on its other channels and never on this one. `peal posts show` lists the target ids.

If a post is already publishing when you cancel it, it finishes with what its channels did, and the channels not yet sent are cancelled.

`peal posts remove-target` refuses the last channel, so cancel the post instead. Where your posts need an approval, the post waits for a new one.

### Repost or confirm a post [#posts-repost]

When a post failed or Peal couldn't confirm it on a channel, you have three commands:

- `peal posts repost` sends the post again, now, on one channel where it failed or is unconfirmed. If it's unconfirmed, check the platform first, because it may be live already.
- `peal posts leave-out-rest` publishes a post on one channel without the parts that didn't go out after its first: a first comment the platform refused, or the rest of a thread. Its first part is live, and nothing more is sent there.
- `peal posts confirm` records what you found on the platform: `published`, with its address if you have it, or `not-published`, which fails it there so `peal posts repost` can send it again.

[Scheduling](/guides/posts) explains how posts end.

### Unpublish or edit a live post [#posts-live]

`peal posts unpublish` deletes a published post from its platforms, for everyone, with every part of a thread ([Unpublish a post](/guides/posts/published#unpublish)). It can't be undone, so it asks first, unless you pass `--yes`. With `--json` it needs `--yes`.

Without `--channel`, it deletes the post from every channel it can. With `--channel`, it deletes it from one channel, named by its id, its exact handle, or its platform and handle, as in `--channel "bluesky studio.example"`. A handle two of the post's channels share is refused, and `peal` lists them. `--wait <seconds>`, with `--channel`, waits for the deletion to end.

`peal posts edit` replaces the text of a published post on one channel, on Mastodon and Google Business Profile ([Edit a published post](/guides/posts/published#edit-live)). Only the text changes, and the change is public at once. It takes these flags:

- `--channel` names the channel, as `peal posts unpublish` does.
- `--text` is the new text.
- `--part <n>` is the part of a thread, from 0 for the post itself.
- `--wait <seconds>` waits for the edit to end.

`peal posts changes` lists what was asked of the post once it was live, and says how each edit went. `peal posts list --removed` lists the posts removed from a channel.

### Duplicate a post [#posts-duplicate]

`peal posts duplicate` makes a new draft that says what a post says, whatever the post's status ([Duplicate a post](/guides/posts/organise#duplicate)). The draft gets the post's text, its media, its channels with their text and options, and its tags. What the workspace no longer has (a disconnected channel, or deleted media or tags) is left out, and `peal` says so. The draft has no time, and the original post doesn't change.

## Tags [#tags]

Tags are the labels a workspace files its posts under, 100 at most. Nothing of a tag goes out with a post, so the platforms never see them.

```sh
peal tags list
peal tags create "Spring campaign" --colour green
peal tags update "Spring campaign" --name "Spring 2027" --colour teal
peal tags delete "Spring 2027"
peal posts tag <post-id> --tag Evergreen
```

`peal tags create` takes a name of 40 characters at most, which no other tag of the workspace has, whatever its case. Its `--colour` is `gray` unless you say otherwise, or `red`, `orange`, `amber`, `green`, `teal`, `blue`, `purple` or `pink`.

Wherever a command takes a tag, give its id or its name, in any case. `peal tags list` shows both.

The other commands change tags and their posts:

- `peal tags update` changes the name, the colour or both, and keeps what you leave out. Its posts keep the tag.
- `peal tags delete` deletes a tag for good and takes it off every post that had it. The posts stay.
- `peal posts tag` files a post under the tags `--tag` names, 10 at most, instead of those it had. Without `--tag`, it takes them all off. A post takes tags whatever its status, sent or not.

Every member who reads posts reads the tags. Creating, changing and deleting a tag, and tagging a post, need the right to change posts.

## Signatures [#signatures]

A signature is a text a workspace keeps to end its posts with, 2000 characters at most. A workspace keeps up to 50.

```sh
peal signatures list
peal signatures create "Sign-off" --text "The Studio team" --default
peal signatures create "Fediverse" --text "#studio" --platform mastodon
peal signatures update "Sign-off" --text "See you next week"
peal signatures delete "Fediverse"
```

A signature is meant for every channel, for the channels of one platform (`--platform`), or for one channel (`--channel <channel-id>`).

`--default` makes it the default where it's meant for. Posts that ask for the default signatures (`--default-signatures`) take it there: the workspace's goes under the post's text, and a platform's or a channel's own goes under the text that channel has instead. The signature that was the default there stops being one.

Once it's under a post's text, a signature is text of the post. It counts against each platform's limit when the post is scheduled, and it's never added under a text that already ends with it. A post in several parts (`--then`) is signed under its last part.

Wherever a command takes a signature, give its id or its name, in any case. `peal signatures list` shows both.

Changing or deleting a signature leaves the posts that already hold its text as they are:

- `peal signatures update` changes what its flags name (`--name`, `--text`, `--whole-workspace`, `--platform` or `--channel`, `--default` or `--no-default`) and keeps the rest.
- `peal signatures delete` deletes a signature for good.

Every member who reads posts reads the signatures. Creating, changing and deleting one need the right to change posts.

## Channel sets [#sets]

A channel set is a selection of the workspace's channels kept under a name, 50 channels at most. It can also hold the options posts take on some of them (`--options`, as `peal drafts save` takes them). A workspace keeps up to 50 sets.

```sh
peal sets list
peal sets create "Launch" --channel <channel-id> --channel <channel-id>
peal sets create "Videos" --channel <channel-id> --options '<channel-id>={"platform":"youtube","madeForKids":false}'
peal sets update "Launch" --name "Launch day"
peal sets delete "Videos"
peal post "Spring catalogue is out" --set Launch --at 2026-11-20T09:00:00Z
```

`peal post --set` and `peal drafts save --set` name a set instead of listing its channels. Wherever a command takes a set, give its id or its name, in any case. `peal sets list` shows both. A CSV import names a set only by its id, or by a name without spaces, commas or semicolons.

`peal sets list` shows each set's channels, and says which are no longer connected. A post made with the set leaves those out and says so. It's never sent to fewer channels silently.

`peal sets update` changes the name, the channels (those `--channel` names replace the set's) or the options, and keeps what you leave out. It drops the channels that are no longer connected, because a set is saved with connected channels only, so this is also how you take one out. Posts made with the set before keep their channels.

`peal sets delete` deletes a set for good. Its channels, and the posts made with it, stay.

## Queues [#queues]

A [queue](/guides/posts/queues#queues) is a weekly timetable of slots in a time zone, for some channels and at most one channel set (`--set`). A post you add to it takes its next free slot.

```sh
peal queues list
peal queues create "Weekdays" --slot mon@09:30 --slot wed@09:30 --slot fri@17:00 --zone Europe/Paris --channel <channel-id>
peal queues update "Weekdays" --slot tue@12:00 --default
peal queues show "Weekdays"
peal queues preview "Weekdays" --count 5
peal queues reshuffle "Weekdays"
peal queues delete "Weekdays"
peal post "An evergreen tip" --default-queue
peal post "An evergreen tip" --queue Weekdays --channel <channel-id> --dry-run
peal posts queue <post-id> --queue Weekdays
peal posts list --queue Weekdays
```

### Set up a queue [#queues-setup]

`--slot` takes a day (`mon` or `monday`…) and a time of day on a 24-hour clock, such as `mon@09:30`. Repeat it, up to 100 times. `--zone` is the queue's IANA zone, and without it, `TZ` or your computer's. A workspace keeps up to 20 queues, and you name a queue by its id or its name, in any case.

`peal queues update` keeps what you leave out, apart from the channels that are no longer connected. It takes these flags:

- `--slot` replaces the week, and `--clear-slots` empties it.
- `--channel` replaces the channels, and `--clear-channels` takes them all off.
- `--no-set` takes the channel set off.
- `--default` makes it the default queue.

Posts the queue placed keep their times, and `peal queues delete` leaves them scheduled.

`peal queues preview` lists the coming slots, free or taken, and where a post added now would go. Nothing is held.

### Reshuffle a queue [#queues-reshuffle]

`peal queues reshuffle` moves the posts waiting in a queue onto its slots as they are now, in the order of their times, including those moved by hand ([how](/guides/posts/queues#reshuffle)). It says how many moved and how many stayed: "Moved 12 posts of Weekdays onto its slots; 3 already on theirs or not yours to move."

It can stop at a month the plan has no room in, when there's no slot left, or because the queue was saved in the meantime. It then says so, with how many posts it left, and you run it again. With `--json` it prints the API's answer.

### Add a post to a queue [#queues-add]

`peal post --queue <name-or-id>` puts a post on that queue's next free slot (`--queue=<name-or-id>` works too), and `peal post --default-queue` on the default queue's. Each is one of `--at`, `--now`, `--queue` and `--default-queue`. Without `--channel` or `--set`, the post goes to the queue's channels. With `--dry-run`, it prints the slot it would take.

`peal posts queue` puts a draft, or a scheduled post, on a queue's next free slot (`--queue`, or the default). `peal posts list --queue` lists the posts a queue placed.

## Repeating posts [#recycling]

A recycling rule makes a scheduled or published post [repeat](/guides/posts/queues#recycling):

```sh
peal recycling start <post-id> --every 2w --count 6 --variant "Open all summer, as before."
peal recycling list --status active
peal recycling show <rule-id>
peal recycling update <rule-id> --until 2026-12-31 --variant "Another way to say it"
peal recycling pause <rule-id>
peal recycling resume <rule-id>
peal recycling end <rule-id>
peal posts list --recycling <rule-id>
```

`peal recycling start` prints the next three posts and the variant each one says. It takes these flags:

| Flag        | Takes                                                          |
| ----------- | -------------------------------------------------------------- |
| `--every`   | A count and `d`, `w` or `m` (1d to 365d, 1w to 52w, 1m to 12m) |
| `--count`   | The posts in all, this one counted (2 to 100)                  |
| `--until`   | The last day                                                   |
| `--variant` | Repeated, the texts said in turn after the post's, 10 at most  |
| `--queue`   | A queue, by name or id                                         |

A count, a day or more than 10 variants out of range is refused before anything is sent.

`peal recycling update` changes the count (`--no-count` takes it away), the end date (`--no-until`) or the variants (`--variant` replaces them all, `--no-variants` takes them away).

`pause` stops a rule and `resume` restarts it. `resume` also restarts a rule that ended because of the plan's room, a refused text, its channels, its queue's slots, or its post being cancelled or taken back to draft (once it's scheduled again). `resume --variant` gives it other variants, as a refused text asks. `end` stops it for good, and the posts it made stay.

`peal recycling list` prints 50 rules a page (`--limit`, 100 at most), and a `More:` line with the `--cursor` of the next. `peal posts list --recycling` lists the posts a rule made.

## Follow-ups [#follow-ups]

A [follow-up rule](/guides/posts/queues#follow-ups) comments on a post, reposts it or both, once it reaches a number of likes:

```sh
peal follow-ups start --post <post-id> --likes 50 --comment "Thank you all for reading!" --repost
peal follow-ups start --channel <channel-id> --likes 100 --repost
peal follow-ups list --post <post-id>
peal follow-ups platforms
peal follow-ups show <rule-id>
peal follow-ups update <rule-id> --likes 80 --no-repost
peal follow-ups pause <rule-id>
peal follow-ups resume <rule-id>
peal follow-ups approve <rule-id>
peal follow-ups stop <rule-id>
```

`peal follow-ups start` makes a rule on one post (`--post`), or on every post a channel publishes from then on (`--channel`). Give one of them, with `--comment`, `--repost` or both, and `--likes` from 1 to 1,000,000. It refuses a rule that does nothing before it asks the server. Then it prints what each channel can carry, kind by kind, and why not.

`peal follow-ups show` prints the rule's channels and each follow-up. A follow-up is waiting for the likes, sent with its address, failed with the platform's code, unconfirmed, expired or given up, and it says why.

`peal follow-ups approve` needs a member who approves posts, signed in. An API key never approves.

`peal follow-ups platforms` lists the platforms where rules comment and repost on your server, and why not elsewhere.

## Feeds [#feeds]

Peal can follow a [feed](/guides/posts/queues#feeds) and turn its new items into posts:

```sh
peal feeds preview https://blog.example/feed.xml --template "New on the blog: {title}"
peal feeds add https://blog.example/feed.xml --channel <channel-id> --template $'{title}\n\n{link}'
peal feeds add https://blog.example/feed.xml --mode queue --queue Weekdays
peal feeds list
peal feeds show <feed-id>
peal feeds items <feed-id>
peal feeds update <feed-id> --template "{title}: {link}"
peal feeds pause <feed-id>
peal feeds resume <feed-id>
peal feeds remove <feed-id>
```

`peal feeds add` follows a feed. What it holds at that point is never posted. Each item that appears afterwards becomes a draft, or with `--mode queue`, a post on the queue's next free slot, without anyone reading it first. `--queue` names the queue by name or id, and the default queue is used otherwise.

It takes these flags for the posts it makes:

- `--channel` (repeated, or ids separated by commas) and `--set` say where they go.
- `--template` says what they say, with `{title}`, `{link}` and `{summary}`.
- `--picture` attaches each item's picture, imported into the media library.

`peal feeds preview` reads an address and prints its three newest items as the template would write them, and keeps nothing. `peal feeds items` prints what became of a feed's 50 newest items, never what they said.

`peal feeds update` changes the channels, the mode, the queue, the set (`--no-set` takes it away), the template or the address, which it reads at once. `--default-queue` takes the workspace's default queue. A queue, either way, goes with `--mode queue` or with a feed already on a queue.

`pause` stops a feed and `resume` restarts it, reading it at once. `remove` stops following it, and its drafts and posts stay.

## Default options [#default-options]

A channel's default options are what a new post takes on it when it gives no [platform options](/guides/posts#options) there, and no channel set it names gives any. That's a new draft, or a post made in one command. A draft you change keeps what it has.

```sh
peal channels defaults show <channel-id>
peal channels defaults set <channel-id> --options '{"platform":"youtube","madeForKids":false,"privacy":"unlisted"}'
peal channels defaults clear <channel-id>
```

`--options <json>` takes the options of the channel's platform, as JSON with its `platform`, the way `peal drafts save --options` takes them after the channel's id. They replace any the channel had, and they can be unfinished.

Defaults are a starting point, never a way round the rules. A post that takes them is checked when it's scheduled, the same as one that wrote them itself.

`peal channels defaults clear` leaves the channel without default options. Posts already made keep theirs.

## Media [#media]

These commands fill and manage the workspace's media library. Each prints the media's id, and only a media that's `ready` can go in a post.

```sh
peal media upload ./cover.jpg --alt "A paper catalogue open on a wooden table"
peal media import https://files.example/spring/cover.jpg --alt "A paper catalogue open on a wooden table"
peal media generate --prompt "A paper catalogue open on a wooden table, morning light" --aspect landscape
peal media video generate --prompt "The catalogue's pages turning slowly" --aspect portrait --wait
peal media voiceover --text "Welcome to the spring catalogue." --voice nova
peal media transcribe <media-id> --save-description
peal media list                   # newest first; --search, --kind, --limit and --cursor
peal media show <media-id>
peal media describe <media-id> --text "A paper catalogue open on a wooden table"
peal media delete <media-id>
```

`--alt` says what the file shows, for people who can't see it.

### Upload a file [#media-upload]

`peal media upload` sends a file to the workspace's media, and tells its kind by its extension. The file goes straight to the media store, then Peal checks and reads it. It takes these files:

| Kind     | Formats                | At most            |
| -------- | ---------------------- | ------------------ |
| Image    | JPEG, PNG, GIF or WebP | 16 MiB             |
| Video    | MP4 or QuickTime       | 1 GiB              |
| Document | PDF                    | 100 MiB, 300 pages |
| Audio    | MP3, M4A or WAV        | 100 MiB            |

`peal media import` has the server fetch an image, a video or a PDF document from a public `https://` address, without credentials, within 90 seconds ([Images and videos](/guides/media#import)). Upload larger or slower files instead.

### Generate an image [#media-generate]

`peal media generate` makes an image from `--prompt` into the workspace's media ([Generate an image](/guides/media#generate)). The workspace's own [image provider](/guides/workspace#providers) makes it, or else the instance's image model. The prompt is 1 to 1,000 characters, sent as it is to that provider. `--aspect` is `square` (the default), `landscape` or `portrait`.

With the instance's model, it costs 5 of the workspace's daily assistant requests. With the workspace's own provider, it costs none. A workspace without its own provider, on an instance without an image model, is refused.

The image is marked as made by AI. Set the platform's AI label in the post's options, and describe the image with `--alt` when you attach it.

### Generate a video [#media-video]

`peal media video generate` asks the provider the workspace chose for videos for one video from `--prompt` ([Generate a video](/guides/media#generate-video)). Choose that provider first with `peal assistant models set video`. The command takes these flags:

| Flag                   | Values                                        | Default            | What it does                                                         |
| ---------------------- | --------------------------------------------- | ------------------ | -------------------------------------------------------------------- |
| `--prompt <text>`      | 1 to 1,000 characters                         | required           | What the video shows, sent as it is to the provider                  |
| `--aspect`             | `landscape`, `portrait` or `square`           | `landscape`        | The video's shape. Google Gemini doesn't make `square`               |
| `--duration <seconds>` | whole seconds, within what the provider takes | the provider picks | xAI takes 1 to 15 seconds. Google Gemini takes none, so leave it out |
| `--image <media-id>`   | a ready image of the workspace's media        | none               | The video's first frame                                              |
| `--wait`               |                                               | off                | Waits until the video is ready or failed, for up to 30 minutes       |

A video takes minutes. Without `--wait`, the command prints the video's id at once. `peal media video status <id>` says where it stands: queued, being made, ready with its media id, or failed with the reason. `peal media video list` lists the workspace's videos, newest first. With `--wait`, a video that failed ends the command with exit code 1 and the reason.

The workspace's own key pays the provider, and Peal bills nothing for it. A workspace makes one video at a time and asks for 20 a day at most.

### Make a slide video [#media-slideshow]

`peal media slideshow create` asks the workspace's Shotstack account to compose 2 to 10 images of the library into one video ([Make a slide video](/guides/media#make-a-slide-video)). Connect Shotstack first with `peal assistant providers connect shotstack` (add `--sandbox` for its free, watermarked sandbox, with the sandbox key), then choose it with `peal assistant models set composition --provider shotstack`, which takes no `--model`. The command takes these flags:

| Flag                     | Values                                 | Default                       | What it does                                                           |
| ------------------------ | -------------------------------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `--image <media-id>`     | 2 to 10 ready JPEG or PNG images       | required                      | The slides, in the order given                                         |
| `--caption <text>`       | up to 120 characters                   | none                          | The caption of the image in the same position. An empty one is none    |
| `--motion`               | `none`, `zoomIn`, `zoomOut` or `slide` | `none`                        | The motion of the image in the same position. One alone moves them all |
| `--transition`           | `fade` or `none`                       | `fade`                        | How each slide gives way to the next                                   |
| `--voiceover <media-id>` | a ready audio file of the library      | none                          | Plays from the first slide to the last one's end                       |
| `--aspect`               | `portrait`, `landscape` or `square`    | `portrait`                    | The video's shape, at 1080 pixels on its short side                    |
| `--seconds <seconds>`    | 2 to 10, 90 seconds in all             | the voice-over shared, else 4 | How long each slide shows                                              |
| `--wait`                 |                                        | off                           | Waits until the video is ready or failed, for up to 30 minutes         |

Without `--wait`, the command prints the slide video's id at once. `peal media slideshow status <id>` says where it stands, and `peal media slideshow list` lists the workspace's slide videos, newest first. With `--wait`, one that failed ends the command with exit code 1 and the reason. The workspace's Shotstack account pays each render, and Peal bills nothing for it. On Peal Cloud, the workspace's billing account needs a payment method.

`peal media slideshow render <edit-file>` renders a whole Shotstack Edit, the document the web app's editor makes, from a JSON file: its tracks of pictures, videos, sounds and texts, each library file named `peal:media/<media-id>` ([Render an edit through the API](/guides/media#render-an-edit)). It takes `--wait` and `--json` as `create` does, and the same limits and refusals as the API. A file that holds no JSON object, or more than 1 MiB, is refused before anything is sent.

```sh
peal media slideshow render edit.json --wait
```

### Voice-overs and transcripts [#media-audio]

`peal media voiceover --text <text> [--voice <voice>]` has the provider the workspace chose for voice-overs speak the text, 1 to 4,000 characters, into the workspace's media ([Create a voice-over](/guides/media#voiceover)). `--voice` is the provider's name for a voice (OpenAI's `nova`, an ElevenLabs voice's ID); left out, the provider's default speaks, and fal takes none. The audio file is marked as made by AI.

`peal media transcribe <media-id> [--save-description]` has the provider the workspace chose for transcripts write what is said in a ready audio or video file of at most 25 MB, and prints it ([Transcribe a file](/guides/media#transcribe)). `--save-description` makes it the file's description when it fits one.

Choose the providers first with `peal assistant models set speech` and `peal assistant models set transcription`. The workspace's own key pays the provider, and Peal bills nothing for it. A workspace makes 50 voice-overs and 50 transcripts a day at most.

### Find and manage media [#media-manage]

`peal media list` lists the workspace's images, videos and documents, newest first. Each comes with the id posts attach, whether it's ready, its file name and its description. It takes these flags:

- `--search <text>` keeps those whose name or description holds the text, in any case (100 characters at most). `peal media upload` sends the file's name, so the search finds it.
- `--kind image|video|document|audio` keeps those of one kind.
- `--limit` takes 100 at most.

`peal media show` prints one media: its type, its size, when it was stored, whether it's ready to attach, and its description. After an upload or an import, it tells you when a video Peal is still reading becomes `ready`.

`peal media describe` sets a media's description in the library with `--text`, or removes it with `--clear`. Posts that already attached it keep the alt text they have.

`peal media delete` deletes a media for good. It first says which drafts show it and will lose it, then asks. Pass `--yes` to skip the question, which you must do with `--json`. A media a scheduled post shows is refused, and `peal` lists those posts.

## The assistant's providers [#assistant]

A workspace can connect its own AI providers for the assistant, then choose a provider and a model for each use. These commands need `assistant:configure`, which owners, admins and the keys given it hold.

### Providers [#assistant-providers]

These commands keep the workspace's [connected providers](/guides/workspace#providers):

```sh
peal assistant providers list
peal assistant providers connect anthropic < key.txt
peal assistant providers connect openai-compatible --base-url https://ai.example.com/v1 < key.txt
peal assistant providers connect openai --base-url https://proxy.example.com/v1 --keep-key
peal assistant providers test anthropic
peal assistant providers disconnect anthropic
```

The provider is `anthropic`, `openai`, `google`, `mistral`, `xai`, `groq`, `togetherai`, `deepseek`, `openrouter`, `cerebras` or `fireworks`, or `openai-compatible` for any other endpoint that serves `/chat/completions`, `/images/generations` or both. A named provider is reached at its own address, so you need `--base-url` only for a proxy, or with `openai-compatible`.

`connect` never takes the key as an argument, which the shell's history and the list of processes would keep. At a terminal it asks for the key, without showing what you type. Otherwise it reads the key from standard input, to its end, without its last line break. `--keep-key` keeps the key already saved, which the server accepts only while the address stays exactly the same.

`test` sends the provider one short request for text, with `--model` or the model the workspace writes with there, else the first Peal suggests, and says whether it answered with a suggestion the assistant can use. It counts as one of the workspace's own requests that day, and none of Peal's. `disconnect` removes the provider, deletes its key and unsets the uses it served, after asking (pass `--yes` otherwise).

### Models [#assistant-models]

These commands choose the [model for each use](/guides/workspace#models), `text`, `image` or `video`:

```sh
peal assistant models list
peal assistant models set text --provider anthropic --model <your-provider-model>
peal assistant models set image --provider openai --model <your-provider-model>
peal assistant models set video --provider xai --model <your-provider-model>
peal assistant models unset image
```

`set` takes a connected provider that offers the use. `unset` leaves the use to the server's model, if it has one, and keeps the provider connected. `list` prints each use's provider and model, or the server's model, or off.

### Earlier commands [#assistant-earlier]

`peal assistant image-provider` (show, set, clear) and `peal assistant text-provider` (show, set, test, clear) still work, on the same connections: each sets one use and its provider together. They're deprecated, as their endpoints are, and `providers` and `models` replace them.

Of the applications connected over OAuth, the server gives `assistant:configure` to this command line only, which you sign in yourself at your terminal. An MCP client can't set a provider.

## Reviews and approvals [#review]

These commands decide on posts that wait for an [approval](/guides/posts/review), and share them with reviewers:

```sh
peal approvals list
peal approvals approve <post-id> --approval <approval-id> --subject <fingerprint>
peal approvals request-changes <post-id> --approval <approval-id> --subject <fingerprint> --comment "Say Thursday, not Friday."
peal approvals policy
peal approvals policy --set always
peal review show <post-id>
peal review comment <post-id> --text "Looks good." --reply-to <comment-id>
peal review link <post-id> --access comment --hours 48
peal review links <post-id>
peal review revoke <link-id>
```

### Approve or send back a post [#review-approve]

`peal approvals list` prints the posts that wait for an approval, with when each was asked for and who asked. `approve` schedules one. If you approve it after its time, it goes back to draft instead. `request-changes` sends it back to draft with your comment.

Both decide on what you read. For each post that waits, `list` and `peal review show` print the `--approval` and `--subject` a decision takes. A post that changed since then isn't decided on, and `peal` says so, so read it again.

The command line is an application. Under the policy that holds applications' posts, what it schedules waits, and it only approves what a member asked for in the web app.

`peal approvals policy` shows which posts wait. Owners and admins change it with `--set never`, `contributorsAndApplications` or `always`.

### Read and share a post for review [#review-share]

`peal review show` prints the post as each channel will receive it, with its approvals and its comments, thread by thread. What reviewers typed is printed as text, with control characters replaced.

`peal review link` creates a review link and prints its address, once. `--access` is `view` or `comment` (the default), and `--hours` sets how long it works, 14 days unless given.

A link that lets its holders approve is created in the web app only. The command line is an application, and with one it would approve its own posts.

`links` lists a post's links without their addresses, and `revoke` ends one.
