Docs

CLI: Realtime and messaging

Turn live change events for tables on and off, publish to channels, see presence, replay messages and manage end-to-end encryption keys, and send push and email to app users (templates, audiences, sends) with sov.

Updated Nov 25, 2026

#sov realtime

Realtime streams and encrypted-channel keys

sov realtime subscribe

Subscribe a client to a channel.

sov realtime subscribe [OPTIONS] CHANNEL CLIENT_ID

Arguments and options

CHANNELtextrequired
CLIENT_IDtextrequired
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime unsubscribe

Unsubscribe a client from a channel.

sov realtime unsubscribe [OPTIONS] CHANNEL CLIENT_ID

Arguments and options

CHANNELtextrequired
CLIENT_IDtextrequired
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime presence

Show online clients for a channel.

sov realtime presence [OPTIONS] CHANNEL

Arguments and options

CHANNELtextrequired
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime channels

List active channels in current scope.

sov realtime channels [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime replay

Replay channel events from a sequence index.

sov realtime replay [OPTIONS] CHANNEL

Arguments and options

CHANNELtextrequired
--afterintegeroptionaldefault 0
--limitintegeroptionaldefault 200
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime publish

Publish a payload on a channel.

sov realtime publish [OPTIONS] CHANNEL PAYLOAD

Arguments and options

CHANNELtextrequired
PAYLOADtextrequired
JSON object payload
--clocktextoptional
JSON object clock
--clock-deltatextoptional
JSON object clock delta
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime dry-run

Would this app caller be allowed to subscribe/publish?

sov realtime dry-run [OPTIONS] CHANNEL

Checks the channel rules; sends nothing.

Arguments and options

CHANNELtextrequired
--actiontextoptionaldefault SUBSCRIBE
SUBSCRIBE or PUBLISH
--usertextoptional
An app user's id (default: anonymous visitor)
--rolestextoptional
Comma-separated app roles of that user
--payloadtextoptional
JSON object (only measured)
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime changes

List tables with live change events, or turn them on/off.

sov realtime changes [OPTIONS] [ACTION] [TABLES]

sov realtime changes tables whose inserts/updates/deletes are announced sov realtime changes on orders customers announce changes on db.table.orders, db.table.customers sov realtime changes off orders stop announcing orders

Events say only THAT rows changed; clients re-read through the table's rules. Listeners also need a read rule naming the table or a SUBSCRIBE rule on db.table.<table> (check with sov realtime dry-run). On a branch the setting is saved with the branch and takes effect on production after deploy.

Arguments and options

ACTIONtextoptional
on or off (leave out to list)
TABLEStextoptional
Tables to turn on or off
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.
sov realtime changes                       # tables that announce inserts/updates/deletes
sov realtime changes on orders customers   # announce on db.table.orders, db.table.customers
sov realtime changes off orders

sov realtime e2ee-bootstrap

Create or fetch the active channel encryption key (Sovaria-managed).

sov realtime e2ee-bootstrap [OPTIONS] CHANNEL

Arguments and options

CHANNELtextrequired
--ttlintegeroptionaldefault 86400
--force-newflagoptional
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime e2ee-rotate

Rotate a channel encryption key.

sov realtime e2ee-rotate [OPTIONS] CHANNEL

Arguments and options

CHANNELtextrequired
--ttlintegeroptionaldefault 86400
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime e2ee-revoke

Revoke a channel encryption key.

sov realtime e2ee-revoke [OPTIONS] CHANNEL

Arguments and options

CHANNELtextrequired
--key-idtextoptional
--reasontextoptional
--yes / -yflagoptional
Don't ask
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime e2ee-list

List a channel's encryption keys.

sov realtime e2ee-list [OPTIONS] [CHANNEL]

Arguments and options

CHANNELtextoptional
Channel name (defaults to 'default')
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov realtime ws-url

Generate the realtime WebSocket URL for a channel.

sov realtime ws-url [OPTIONS] [CHANNEL]

Arguments and options

CHANNELtextoptional
Channel name (defaults to 'default')
--tickettextoptional
Use an already issued WS ticket
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

#sov messaging

Push and email to app users: templates, audiences, sends

sov messaging templates

List message templates.

sov messaging templates [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging template-save

Create or replace a template; use {{ variables }} in any text.

sov messaging template-save [OPTIONS] NAME

Arguments and options

NAMEtextrequired
lowercase-name, e.g. order-shipped
--push-titletextoptional
--push-bodytextoptional
--email-subjecttextoptional
--email-htmltextoptional
HTML, or @file.html
--email-texttextoptional
Plain text, or @file.txt
--categorytextoptionaldefault transactional
transactional or marketing (opt-outs + unsubscribe link)
--descriptiontextoptional
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging template-delete

Delete a template.

sov messaging template-delete [OPTIONS] NAME

Arguments and options

NAMEtextrequired
--yes / -yflagoptional
Don't ask
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging audiences

List saved audiences.

sov messaging audiences [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging audience-save

Create or replace an audience.

sov messaging audience-save [OPTIONS] NAME

Arguments and options

NAMEtextrequired
--sqltextrequired
SELECT returning user_id (other columns become variables), or @file.sql
--descriptiontextoptional
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging audience-preview

How many app users an audience reaches, its columns and a sample (read-only).

sov messaging audience-preview [OPTIONS] [NAME]

Arguments and options

NAMEtextoptional
A saved audience (or use --sql)
--sqltextoptional
Query to try, or @file.sql
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging send

Send a template to app users, now or at --at (a durable job sends it; check with sov messaging status, stop it with sov messaging cancel).

sov messaging send [OPTIONS]

Arguments and options

--templatetextrequired
--audiencetextoptional
--usertextoptional
App user id (repeat)
--sqltextoptional
Ad-hoc audience query, or @file.sql
--topictextoptional
Push topic
--all-usersflagoptional
--channeltextoptional
push or email (repeat; default: the template's)
--vartextoptional
name=value (repeat)
--dry-runflagoptional
Who would get it and the first rendering; nothing is sent
--attextoptional
Schedule: ISO time (2026-11-01T09:00:00Z), or a local time with --local-time
--local-timeflagoptional
Deliver at --at in each recipient's own time zone (audience column timezone)
--timezone-fallbacktextoptional
IANA zone for recipients without one, e.g. Asia/Kolkata
--trackflagoptional
Count email opens and clicks (pixel + signed link redirect)
--yesflagoptional
Don't ask before sending
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging cancel

Cancel a scheduled or running send (recipients not reached yet get nothing).

sov messaging cancel [OPTIONS] SEND_ID

Arguments and options

SEND_IDtextrequired
--yes / -yflagoptional
Don't ask
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging sends

Recent sends with their status and counts.

sov messaging sends [OPTIONS]

Arguments and options

--limitint rangeoptionaldefault 20
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging status

A send's status and counts per channel.

sov messaging status [OPTIONS] SEND_ID

Arguments and options

SEND_IDtextrequired
--failuresflagoptional
Also list failed deliveries
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging deliveries

The delivery log (status and error code per recipient and channel; never content).

sov messaging deliveries [OPTIONS]

Arguments and options

--sendtextoptional
--usertextoptional
--statustextoptional
sent, failed, no_device, no_email, opted_out
--limitint rangeoptionaldefault 100
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging in-app

In-app messages with users reached, impressions, clicks and dismissals.

sov messaging in-app [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging in-app-save

Create or replace an in-app message (your app shows it with sov.inApp.fetch(trigger)).

sov messaging in-app-save [OPTIONS] NAME

Arguments and options

NAMEtextrequired
--titletextoptional
--bodytextoptional
--layouttextoptionaldefault banner
banner, modal or card
--buttontextoptional
label=action (action: https URL, /path or deep link)
--triggertextoptionaldefault app_open
app_open, screen:<name> or event:<name>
--topictextoptional
Only users with a device on this push topic
--max-impressionsint rangeoptionaldefault 1
--starts-attextoptional
--ends-attextoptional
--pausedflagoptional
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov messaging in-app-delete

Delete an in-app message.

sov messaging in-app-delete [OPTIONS] NAME

Arguments and options

NAMEtextrequired
--yes / -yflagoptional
Don't ask
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

#sov push

Push notifications: providers, web push keys, sends

sov push setup

Which providers are configured (FCM project, APNs key id, web push public key).

sov push setup [OPTIONS]
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov push webpush-keys

Create (or rotate) the project's VAPID keys for browser push; prints the public key.

sov push webpush-keys [OPTIONS]

Arguments and options

--subjecttextoptional
mailto: or https: contact push services may use
--rotateflagoptional
New keys: every browser must subscribe again
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov push send

Send a push to a topic or users.

sov push send [OPTIONS]

Large sends are queued and paced at your plan's rate.

Arguments and options

--titletextrequired
--bodytextoptional
--topictextoptional
--usertextoptional
App user id (repeat)
--linktextoptional
Web: where a click goes
--imagetextoptional
https image URL
--dry-runflagoptional
Count the devices only
--yesflagoptional
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov push sends

Recent sends (status, counts, error codes) and this month's total.

sov push sends [OPTIONS]

Arguments and options

--limitint rangeoptionaldefault 20
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.

sov push cancel

Cancel a queued or running large send.

sov push cancel [OPTIONS] SEND_ID

Arguments and options

SEND_IDtextrequired
--yes / -yflagoptional
Don't ask
  • Also takes --profile, --org, --project and --env to act on another account, organization, project or environment.