Skip to content
Peal
Esc
↑↓navigate↵open⌘Jpreview
On this page

The workspace from the command line

Analytics, the inbox, members, webhooks, connect links, billing, usage, the activity log and ads, from a terminal.

Like the commands for posts, every command on this page acts in the workspace --workspace or PEAL_WORKSPACE names (Choose the workspace), with what your role there allows.

Analytics

These commands read the figures Peal gathers from the platforms:

peal analytics summary                                     # the last 30 days, today included
peal analytics summary --from 2026-10-01 --to 2026-10-31 --time-zone Europe/Paris
peal analytics post <post-id>
peal analytics dashboard --days 7                          # against the 7 days before
peal analytics channel <channel-id> --days 30
peal analytics best-times --channel <channel-id> --days 90
peal analytics export posts --output posts.csv --from 2026-10-01 --to 2026-10-31
peal analytics export accounts --format json --output accounts.ndjson
Command What it does
peal analytics summary Adds up the counts of the posts published over a range of days: in all, by channel, and the posts people did the most with.
peal analytics post Prints a post’s latest counts on each channel it went out on.
peal analytics dashboard Shows a range beside the same number of days before it: each total with what changed, followers with what they gained, each channel, and the top posts.
peal analytics channel Prints one channel day by day: followers, following, views, reach, and the interactions its posts gained.
peal analytics best-times Says when one channel’s posts did best, by weekday and hour in --time-zone, over --days 30, 90 (the default) or 180. You get the best hours, and how many posts each weighed hour holds. It’s the channel’s past, never a prediction, and it ranks nothing under 20 posts (When posts did best).
peal analytics export posts or accounts Saves the figures to the file --output names, as CSV or, with --format json, one JSON object per line. It never replaces a file.

Days run in --time-zone, an IANA zone such as Europe/Paris. Without it, they run in TZ, then in your computer’s zone.

dashboard and channel take --days 7, 30 or 90 (30 unless you say otherwise), or --from and --to.

A dash stands for a count the platform doesn’t give. See Analytics.

Inbox

These commands read and answer the comments in the workspace’s inbox:

peal inbox threads --unanswered
peal inbox thread <thread-id>
peal inbox abilities <channel-id>
peal inbox reply <comment-id> --text "Until Sunday."
peal inbox answered <comment-id>
peal inbox confirm <reply-id> --sent
peal inbox withdraw <reply-id>
peal inbox moderate <comment-id> --action hide

Each subcommand takes --json, which prints the API’s answer. Comments were written by people outside the workspace, so the command line prints them as text, and a comment’s text in the JSON is someone else’s words, to treat as data.

Read comments

Every member can read the inbox:

  • threads lists the threads that have comments, those waiting for an answer first. --channel and --post narrow the list, and --limit and --cursor page it.
  • thread prints a thread’s comments, the replies sent from Peal, and what its channel can do.
  • abilities says what any channel can do, before it has a thread.

Answer a comment

reply answers a comment in public, as the channel’s account. It needs a sign-in that can publish, and a role that answers comments (owner, admin or editor). The server sends the reply, and thread shows how it ended.

With --idempotency-key <key>, running the command again within 24 hours with the same comment and text answers with the reply the first run made, and writes no other.

The other commands act on a comment or a reply:

  • answered marks a comment as needing no answer, and --undo takes that back.
  • withdraw deletes a sent reply from its platform.
  • moderate takes hide, unhide, like, unlike or delete, where the platform lets the account do it.

Comment rules

peal inbox rules start --channel <id> --keyword price --keyword prix --reply "…" makes a comment rule. Use --post instead for one post’s comments.

list, show, update, pause, resume and stop keep the rule. On update, --keyword replaces every keyword, and --reply the reply.

Give --private-reply "…" on start or update, and the rule also sends each comment’s author a private message after its public reply, on Instagram and Facebook Pages. --no-private-reply on update takes it off.

show prints what each channel can carry and the comments the rule matched, by id, never their text.

platforms lists the platforms where rules answer on your server, and those where they also send the private message.

These commands read and set the workspace’s short links:

peal short-links status
peal short-links set-default on
peal short-links list --post <post-id>
peal short-links show <link-id> --from 2026-11-01 --to 2026-11-30

peal short-links status says whether the server has short links, and whether the workspace’s new posts ask for them by default. Owners and admins change that default with peal short-links set-default on or off. peal post and peal drafts save follow it unless --shorten-links or --no-shorten-links says otherwise for the post.

peal short-links list lists the workspace’s links, newest first, with their clicks over UTC days. That’s the last 30 days unless --from and --to say otherwise, 92 at most. --post or --channel keeps the links of one post or channel, and you get a page at a time (--limit, --cursor).

peal short-links show prints one link’s clicks day by day. With --json, both print the API’s answer as it came.

Counts are approximate, because automated readers are left out and nothing about visitors is kept (Clicks on short links).

Members and invitations

Every member sees the members. Owners and admins also see the pending invitations, expired ones included, and send and revoke them.

peal members list
peal invitations list
peal invitations send [email protected] --role editor
peal invitations revoke <invitation-id>

peal invitations send emails the address a link that works for 7 days, with the role --role gives (viewer unless you say otherwise). Only owners can invite owners. A pending invitation to the same address is replaced, and its link stops working. On an instance that bills, the plan must have room for one more member, pending invitations included.

peal invitations revoke stops an invitation’s link at once.

You change a member’s role, or remove someone, in the workspace’s Settings.

Webhooks

Owners and admins read and manage the workspace’s webhook endpoints:

peal webhooks list
peal webhooks create --url https://hooks.example.com/peal --events post.published,post.failed --channel <channel-id>
peal webhooks update <endpoint-id> --events all --disable
peal webhooks update <endpoint-id> --clear-channels
peal webhooks update <endpoint-id> --header "Authorization: Bearer $GATEWAY_TOKEN"
peal webhooks update <endpoint-id> --clear-headers
peal webhooks rotate-secret <endpoint-id>
peal webhooks test <endpoint-id> --event post.finished
peal webhooks deliveries <endpoint-id>
peal webhooks deliveries --status failed --since 2026-11-10T00:00:00Z
peal webhooks redeliver --endpoint <endpoint-id> <delivery-id>
peal webhooks redeliver --failed --endpoint <endpoint-id>
peal webhooks redeliver <delivery-id> <delivery-id>
peal webhooks delete <endpoint-id>

peal webhooks show <endpoint-id> prints one endpoint.

Create or change an endpoint

--events takes event types separated by commas, or all. create also takes --description and --disabled. update sends only what you give it, with --enable or --disable to turn the endpoint on or off.

These flags narrow what an endpoint hears. update replaces a list it’s given:

  • --channel (repeated, or ids separated by commas) narrows it to those channels, and --clear-channels makes it hear every channel again.
  • --workspace-id, with --partner on create, narrows a partner endpoint to those workspaces, and --clear-workspaces clears that list.

Add your own headers

--header "Name: value", repeated up to 5 times, adds a header of your own to every delivery. --clear-headers on update removes them, and update replaces every header with the ones it’s given.

Values are never printed or answered again, and show lists only the headers’ names. They go only to the host they were given for. To move an endpoint with headers to a --url on another host, give every --header again with its value, or pass --clear-headers.

Your shell keeps what you type in its history, so give a value from a variable, as in the example above.

Test and redeliver

test sends a webhook.test event, or with --event, a sample of that type, marked sample: true.

deliveries shows how each delivery ended, newest first. Give an endpoint for its deliveries, or none for every endpoint’s. It filters with --status, --event, --since and --until (instants with their offset).

redeliver sends deliveries again, in one of three ways:

  • One, with --endpoint and its id. It counts as a single send.
  • Several, by id.
  • --failed --endpoint <endpoint-id> sends an endpoint’s failed ones, oldest first, 100 a call. Only with --failed can you add --since, --until and --event.

It prints what it skipped and why, and how many are left, so run it again for those. When it sends nothing again, it ends as a refusal (nothing_redelivered, exit code 1). An endpoint’s id given as a delivery is skipped, and peal says so.

Its arguments are delivery ids. An older command line took the endpoint first (redeliver <endpoint-id> <delivery-id>), and you now name the endpoint with --endpoint instead.

A connect link is a hosted page where whoever owns an account on a platform connects it to the workspace, without a Peal account. Members who can connect channels make them:

peal links create --platform linkedin
peal links create --platform mastodon --hours 24 --locale fr
peal links create --platform instagram --channel <channel-id>
peal links list
peal links show <link-id>
peal links revoke <link-id>

peal links create prints the link’s address once. Hand it over on a channel you trust. It takes these flags:

  • --hours sets how long the link works, from 1 to 720 (168 unless given).
  • --locale sets the language its page opens in.
  • --channel reconnects that channel instead of connecting a new account.
  • --return-url is where the page sends them once done. It must be an address on an origin the workspace’s partner account registered.

peal links list shows the links waiting, and those used, revoked or expired in the last 30 days. show tells you which channels a link connected, or how its last sign-in failed. revoke takes one back.

Partner account

These commands are for the owners and admins of a workspace with a partner account:

peal partner show
peal partner keys
peal partner workspaces --external-id cus_42
peal partner usage --from 2026-11-01 --to 2026-11-30
peal partner overview --limit 100
Command What it prints
peal partner show What its customers see, the origins hosted pages can send them back to, and what it holds.
peal partner keys Its keys, with who made each, never the keys themselves.
peal partner workspaces The workspaces it owns, newest first, with their external ids and channels. --external-id finds one exactly, and --name searches.
peal partner usage What the account used per customer over a period of UTC days (--from, --to, the last 30 by default, 92 at most). The first page starts with what it holds now and the totals. Then comes a row per workspace, external id first, with its home workspace first on the first page. --limit and --before page as the API does, and it prints the command for the next page, with the same days.
peal partner overview What needs attention in each customer’s workspace (Health): channels to reconnect or turned off, and posts that failed or wait to be confirmed or approved, and threads waiting. It says “Nothing needs attention.” once where nothing does, and on the first page, whether the plan holds their channels. Newest first, paged with --limit and --cursor.

You create and delete those workspaces through the partner API, with a partner key. You create a key in the workspace’s Settings.

Activity log

peal activity list lists the requests that asked to change something in the workspace, newest first:

peal activity list
peal activity list --operation posts.schedule --limit 50
peal activity list --actor <user-id|api-key-id> --json

Each entry shows when, the operation, the status answered and the error’s code, who asked, through which key or application, the ids the request named, and the request’s id. Owners read it, and so does a key an owner gave activity:read. An event is kept 90 days (The activity log).

It takes these flags:

  • --operation keeps one operation, such as posts.schedule, or mcp.create_draft for a tool of the MCP endpoint.
  • --actor keeps what one member asked for, by their user id, or one API key, by its id.
  • --limit takes 100 at most. When there’s more, the last line gives the command for the next page, with its --cursor.

Billing

peal billing shows where the workspace stands with its plan, and changes nothing:

peal billing

It prints the workspace’s plan and subscription. For each limit (channels, members, posts going out this month, assistant requests today, media stored), it shows how much is used of what the plan allows. It also says whether the workspace can still start its trial.

peal billing --json prints the API’s two answers in one document, under billing and standing.

Owners and admins order, cancel or withdraw on the workspace’s Billing page (Plans and billing). On an instance that doesn’t bill, nothing is limited.

Usage

peal usage shows what the workspace used, day by day, and changes nothing (Usage):

peal usage
peal usage --from 2026-10-01 --to 2026-10-31

It prints the workspace’s plan and each limit against what’s used now. Then, over UTC days (the last 30 unless --from and --to say otherwise, 92 at most), it prints these totals:

  • the posts that went out, by platform;
  • the channel-days;
  • the posts on platforms that bill per post.

Last comes a row for each day that has anything. A row holds the day’s posts, the channels, members and media as the day’s snapshot found them (a dash for a day without a snapshot), and its assistant requests.

On a server that bills per connected account, the workspace that bills its billing account shows two more things. You get the billable account-days, and for each day, the accounts the day bills: the most connected at once across the account’s workspaces, 0 on the 31st.

--json prints the API’s answer as it came.

Ads

These commands read ad accounts and boost published posts. They follow the ads page, so read it first.

No command signs in to an ad network, connects an ad account, turns spending on or sets the monthly ceiling. A person does that in the web app.

To boost from a sign-in, you need the workspace:ads scope. peal login --ads asks for it, and it’s never asked for without the flag. peal doctor says whether the sign-in holds it.

The peal ads commands are these:

Command What it does
peal ads status Says what the server offers for ads: nothing, reading ad accounts, or boosting too.
peal ads accounts Lists the connected ad accounts: network, currency, status, whether an owner allowed each to spend, and its monthly ceiling.
peal ads account <account-id> Shows one ad account, its ceiling and what its boosts commit this month.
peal ads campaigns <account-id> [--from <YYYY-MM-DD>] [--to <YYYY-MM-DD>] Lists the account’s campaigns as last read, with what their ads did over the days (the last 30 by default, 366 at most).
peal ads list <account-id> [--campaign <campaign-id>] [--from …] [--to …] Lists the account’s ads, or those of one campaign with --campaign, each with the workspace’s post it promotes.
peal ads insights <account-id> [--from …] [--to …] Sums what the account’s ads did each day: spend, impressions, reach, clicks and results.
peal ads post <post-id> Shows a published post’s organic counts beside its paid numbers, by ad account, and its boosts. They’re side by side, never summed.
peal ads boosts [--post <post-id>] [--cursor <cursor>] Lists the workspace’s boosts, newest first.
peal ads boost show <boost-id> Shows one boost, where it stands, and the requests Peal sent the ad network for it.
peal ads boost quote … Checks a boost and makes nothing: the most it can cost, its days, and the room left under the monthly ceiling.
peal ads boost create … [--idempotency-key <key>] [--yes] Spends money. It quotes, prints what it will spend and for how long, asks, then boosts the post.
peal ads boost pause <boost-id> Pauses a boost, which spends nothing while paused. It’s safe to run twice.
peal ads boost resume <boost-id> [--yes] Spends money. It runs a paused boost again until its end, after asking.
peal ads boost stop <boost-id> [--yes] Stops a boost for good, after asking.
peal ads audit [--cursor <cursor>] Lists the ads audit trail, which answers to owners alone (ads:authorize). Use an API key an owner gave that permission, because no application holds it.

boost quote and boost create take the same flags:

Flag Meaning
--account <account-id> The ad account that pays. Required.
--post <post-id> The published post to boost. Required.
--channel <channel-id> The channel it’s boosted on: a Facebook Page, or an Instagram account connected through its Page. Required.
--total <amount> or --daily <amount> The budget for the whole run, or for each day, in the currency’s units (50, 50.00). Give exactly one. More decimals than the currency has are refused.
--currency <EUR> The budget’s currency. Required and never defaulted. It must be the ad account’s, and nothing is ever converted.
--ends <instant> When the run ends. Required, at least a day after the start and 90 days at most.
--starts <instant> When it starts. Now, when left out.
--time-zone <zone> The zone --starts and --ends are read in when they’re written without an offset.
--countries <FR,BE> ISO alpha-2 country codes, 25 at most. Required.
--age-min <n>, --age-max <n> 18 to 65 (65 means 65 and over). 18 and 65 when left out.
--not-special-category A required declaration. Peal doesn’t boost ads about housing, employment, financial products or services, or social issues, elections or politics.
--beneficiary <name>, --payer <name> Who benefits from the ad and who pays for it. Required when a country is in the European Union.
--idempotency-key <key> (create) Makes the command safe to run again: the same key never makes a second boost. When left out, peal makes one up and prints it.
--yes (create, resume, stop) Answers the confirmation beforehand. It’s required with --json, and where the input isn’t a terminal: without it the command refuses with confirmation_required instead of asking.

Settings

peal reads these environment variables:

Variable What it does
PEAL_API_URL The instance’s address, unless --api-url is given. Default: http://localhost:3000, which an API key is never sent to: with PEAL_API_KEY, one of the two must name the instance.
PEAL_INSECURE_HTTP true lets the sign-in or the API key go over plain HTTP to a server that isn’t this machine, as --insecure-http does. Off by default.
PEAL_API_KEY A workspace API key to run with instead of a saved sign-in, which it wins over (Run it with an API key).
PEAL_WORKSPACE The workspace commands act in, by slug or id, unless --workspace is given. With an API key, by id, and the key’s own when unset.
TZ The zone peal analytics summary runs days in, and the zone --at is read in, unless --time-zone is given.
PEAL_CONFIG_DIR The folder credentials.json is saved in.
XDG_CONFIG_HOME Without PEAL_CONFIG_DIR, the sign-in goes in its peal folder.
APPDATA Without either, on Windows, the sign-in goes in its peal folder.
HOME Otherwise, the sign-in goes in ~/.config/peal.

peal --help lists the commands, and peal <command> --help describes one.

Your data

These commands act on your own account, not on a workspace:

peal account export                       # peal-data-2026-11-09.json, in this folder
peal account export --output ~/peal-data.json
peal account apps

Export your data

peal account export saves a copy of everything Peal keeps about you, as Profile does in the web app’s settings. The copy holds your account, sessions, workspaces, invitations, connected applications, notices and preferences. It also holds the posts you wrote, and the content of the workspaces where you’re the only member. It holds no password, token, key or card.

The file is yours alone to read (mode 600), and peal never writes over a file unless you add --force. Each time a copy is taken, Peal emails your address to say it came from the command line.

See your connected applications

peal account apps lists the applications that act for you, this command line and MCP clients among them, with what they can do and where. You revoke one on Security and access, under Settings in the web app, because no application revokes another. You delete your account on Profile.

Was this page helpful?