Tools

Use the ripple CLI

Updated

Send and manage messages from your terminal or any shell script, without writing HTTP requests. This page covers what people do most; every command explains the rest with --help. A coding agent such as Claude Code or Codex can run these commands too, or connect to Ripple as an AI agent and message you without them.

Set it up

On macOS or Linux, install it with:

Terminal
curl -fsSL https://ripple.do/install | sh

The install script downloads the newest release for your computer from GitHub and checks it against the release's checksums. It replaces the ripple already on your PATH, or else puts it in the first of ~/.local/bin, ~/bin, and /usr/local/bin that's on your PATH and writable, or else in ~/.local/bin, which it adds to your shell's PATH. A copy from Homebrew or npm is left for them to update. Set RIPPLE_INSTALL_DIR to choose the folder. It needs no Node; on Alpine, install libstdc++ first with apk add libstdc++. To read the script before running it, run curl -fsSL https://ripple.do/install.

Also withInstallUpdate
Homebrewbrew install ripplepush/tap/ripplebrew upgrade ripple
npm, with Node 22.12 or newer, including on Windowsnpm install -g ripplepushnpm install -g ripplepush@latest
npx, without installingnpx ripplepush send "Hello"Runs the newest release each time

Then connect it to your account:

Terminal
ripple login

Your browser opens to approve it. Check that the page shows the same three words as your terminal, such as quiet-harbor-lantern, then choose Connect; if you're already signed in to Ripple, that's the only click. The CLI then offers to send you a first message.

Signed in, the CLI can do what you can in Ripple: send, read, and manage messages and sources. It keeps the sign-in in the macOS Keychain, or on other systems in ~/.config/ripple/credentials.json, which only you can read.

Over SSH, or without a browser

When you're connected over SSH, ripple login gives you a link instead. Open it on any device, approve, and type the code the page shows into the terminal:

Code
To connect this terminal, open this link on any device:
https://ripple.do/api/auth/oauth2/authorize?response_type=code&…

Connect only if the page shows quiet-harbor-lantern, then enter the code it gives you.

Code: 7QK2-M9XD

The code works once, for 10 minutes. Add --no-browser to connect this way from any terminal.

Sign out

Each terminal shows in Ripple under Settings → Account → Where you’re signed in, named after its computer, with when it was last used. It stays signed in while you use it, and signs out on its own after 180 days unused. Choose Sign out there to end it at once, or run:

Terminal
ripple logout

That ends the sign-in on Ripple and removes it from the computer.

Use a key instead

Scripts, CI jobs, and servers that run on their own can use a key rather than a sign-in. The CLI reads it from RIPPLE_KEY, like the curl examples, and uses it in place of a sign-in whenever it's set:

Terminal
export RIPPLE_KEY=paste-your-key-here

A send key is enough to send. Reading and changing messages take an API token whose access level allows it.

Check what it's using

ripple status checks that the CLI reaches Ripple, and shows what it uses: your sign-in, or the key in RIPPLE_KEY, with what it may do.

Code
Signed in as you@example.com

Access   Everything
Sources  All sources
Address  https://api.ripple.do

With a key, it names a send key's source, or an API token's name, level, and the sources it reads. When something's wrong, such as a key that was reset or a sign-in that ended, it says what and how to fix it.

Tip

Run ripple alone for an overview, and add --help to any command, as in ripple messages search --help, for every option with examples to copy. Mistype a command and the CLI suggests the closest one.

Send a message

Give it a title, then the message in quotes. Without --title, the message's first line is the title:

Terminal
ripple send --title "Hello from Ripple" "The first of many."

The CLI says where it went, such as Sent to Inbox. Add what the message needs:

Terminal
# An alert: quiet, standard, or important
ripple send --title "Disk almost full" --alert important "Only 2 GB left on /data"

# Links to open from the message, the first leading; each --link-title names the --link before it
ripple send --link https://ci.example.com/builds/42 --link-title "Open build" --link https://example.com/logs "Build 42 failed"

# Running updates in one thread: the same key each time, and a title for each update
ripple send --thread deploy-42 --thread-title "Deploy #42" --title "Tests passed" "All 312 green"

--thread takes your own key, such as a deploy or ticket ID, and --thread-title names the thread the first send starts. To add to the thread of a message sent earlier, give --thread-id the threadId its send returned, which --json prints:

Terminal
id=$(ripple send --json "Disk almost full on /data" | jq -r .threadId)
ripple send --thread-id "$id" --title "Fixed" "Cleared 40 GB of old logs"

Or pipe text in. This sends the end of a test run:

Terminal
make test 2>&1 | tail -20 | ripple send --title "Test results"

A message shows exactly as you send it. To format it with headings, lists, links, and code, add --markdown:

Terminal
ripple send --markdown --title "Release notes" < notes.md

A log wrapped in a code block labeled log opens at its first error, with repeated lines folded; Send a log shows how.

To send HTML, such as an email, add --html. Ripple turns it into formatted text and takes the title from its <title>:

Terminal
ripple send --html < digest.html

JSON, such as a webhook's payload or a job's report, goes as it is, and shows as JSON you can fold and copy values from:

Terminal
ripple send --title "Nightly backup failed" < backup-report.json

A send key always sends to its own source, so --source can only name that one. Signed in or with an API token, messages go to Inbox unless you add --source with a source's name or ID. Send messages covers titles, Markdown, logs, HTML, images, alerts, sounds, and threads, and ripple send --help lists every option.

Send images

Add --image with a JPEG, PNG, WebP, or GIF file, or an https:// link to one. Repeat it for up to 4, files and links in any mix:

Terminal
ripple send --image chart.png --title "Build 42 failed" "Coverage dropped to 71%"
ripple send --image https://camera.example.com/snapshots/front.jpg --image porch.jpg "Motion at the front door"

Each file can be up to 10 MB, and 20 MB in all. The CLI checks every file before it sends anything, and names one it can't send, such as a HEIC photo, which needs converting to JPEG first. Ripple fetches a link once, when the message arrives.

Read and organize messages

These commands need a sign-in or an API token. Start with what's new:

Terminal
ripple messages --unread

Unread messages are marked, and times are in your own time zone. A thread is listed once, by its title, then its newest message's title and preview. To go further:

Terminal
# Open one message in full
ripple messages get msg_06gnk2wgfm55j6wj

# Search everything except Trash
ripple messages search "release notes"

# Read a whole thread
ripple threads get thr_06gm53wzxakqgkm4

messages get lists a message's image IDs. To save one as a WebP file (without -o, it's named after the ID and never replaces a file already there):

Terminal
ripple messages image img_06gh9kxn7m5q0ynq -o porch.webp

Organize messages by ID:

Terminal
ripple messages archive msg_06gnk2wgfm55j6wj msg_06ghxs73htk54j6b
ripple messages read msg_06gnk2wgfm55j6wj
ripple messages alert important msg_06gnk2wgfm55j6wj
ripple messages trash msg_06gnk2wgfm55j6wj

alert changes how strongly messages alert, as if they had been sent that way: important lists them first while they're unread, standard is the default, and quiet takes them off Home. Nothing notifies.

A message listed with Source in the trash keeps its read and archive state until its source is restored. You can still move or snooze it.

To deal with one later, snooze it. The CLI reads times the way you'd say them, in your computer's time zone:

Terminal
ripple messages snooze msg_06gnk2wgfm55j6wj tomorrow 9am
ripple messages unsnooze msg_06gnk2wgfm55j6wj

2h and friday at 5pm work too. To move a message to another source, use ripple messages move with --source; a message in a thread takes its whole thread with it.

Messages explains how lists, threads, and snoozes behave, and ripple messages --help lists every command.

Manage sources

Give each script its own source, with its own key:

Terminal
ripple sources create "GitHub Alerts"

The CLI creates the source and prints its send key, ready for your script. Each source's name is its own, so commands take a source by its name, in any case, or by its ID. To list your sources, or get a source's key again:

Terminal
ripple sources
ripple sources key "GitHub Alerts"

For a tool that takes only a URL, or a device that only sends email, --webhook-url and --email print the same key as a webhook URL or an email address:

Terminal
ripple sources key "NAS" --email

A source can also follow a status page, changelog, or project's releases: give --feed with its address, and the name becomes optional. Its posts arrive as messages, so the CLI prints no key. Feeds has more:

Terminal
ripple sources create --feed githubstatus.com

Change a source's name, defaults, or feed with update (--feed, or --clear-feed to stop following). A quiet default alert quiets a noisy source: its messages stop notifying unless they ask to. --default-link sets the links its messages get when they're sent without any, replacing the ones it had; as with ripple send, repeat it for up to 4, and each --default-link-title names the link before it:

Terminal
ripple sources update "GitHub Alerts" --name "Builds" --default-alert quiet
ripple sources update builds --default-link https://ci.example.com/builds --default-link-title "Open CI"

ripple sources --help covers the rest, including disable, resetting a key, and moving a source to Trash.

Warning

ripple sources key Builds --reset --yes replaces a source's send key, and the old key stops working at once, with its webhook URL and email address. Every script and device that used them needs the new one.

Restore from Trash

Anything you delete stays in Trash for 30 days:

Terminal
ripple trash

Each item ends with its type and ID, such as message msg_06gnk2wgfm55j6wj. Put that after restore to bring it back:

Terminal
ripple trash restore message msg_06gnk2wgfm55j6wj

Deleting from Trash is permanent, so ripple trash delete runs only with --yes. ripple trash --help shows the rest.

Use it in scripts

Get JSON instead of text

Add --json to any command for the API's response exactly as Ripple sent it, one line per response. It pairs well with jq:

Terminal
ripple messages --unread --json | jq -r '.items[].preview'

Errors go to standard error, as JSON with --json, in Ripple's usual shape with a code and a message.

React to new messages

ripple messages watch shows each new message the moment it arrives, until you press Control-C. Add --source for one source's messages. With --json, each message is one line of JSON, so a script can act on it right away:

Terminal
ripple messages watch --json | jq --unbuffered -r 'select(.alert == "important") | .title // .thread.title'

If the connection drops, it reconnects and shows what arrived meanwhile, waiting longer between tries, up to 30 seconds, while Ripple can't be reached. It stops with an error only when Ripple can't be reached at the start or turns it down, as when your key stops working or the terminal is signed out. Watch for new messages describes each message's JSON.

Act on many messages at once

Lists show one page at a time. Add --all to follow every page into one list, or with --json, one line per page. To act on more messages than fit on a command line, give - in place of IDs and pipe them in:

Terminal
ripple messages --read --all --json | jq -r '.items[].messageId' | ripple messages archive -

The CLI sends piped IDs 100 at a time and prints one summary at the end.

Check the exit status

Each kind of failure has its own exit status, so a script can decide what to do next:

StatusMeaning
0It worked
1Ripple turned the request down, or something unexpected went wrong
2The command was mistyped, so nothing was sent
3Not found
4Not signed in, the sign-in has ended, or the key is missing, wrong, or not allowed to do this
5Rate limited or busy; try again later
6No answer, so the outcome is unknown

A command that stops partway, such as during a batch of piped IDs, exits with the status of the error that stopped it, then says what it didn't get to.

Retry safely

When Ripple can't take a message right away, ripple send keeps trying for up to 5 minutes. That covers no connection, no answer in time, and Ripple being busy or limiting sends (status 429 or 5xx). It waits longer between tries, and never less than Ripple asks; if Ripple asks for more than the 5 minutes, it stops at once. Each wait shows on standard error, except with --json. Every try carries the same idempotency key, so the message arrives only once however many tries it takes.

If it still can't get through, or can't tell whether it did, the CLI exits with the last error's status and prints the key, which --json adds to the error as idempotencyKey. Send the same message with that key, and it arrives only once. So that a script that runs again, such as a rerun CI job, also sends once, give each message your own key from the start:

Terminal
ripple send --idempotency-key deploy-42 "Deploy 42 finished"

Apart from messages watch reconnecting, other commands never retry on their own. After status 6, the request may or may not have gone through, so check before trying again.

Note

ripple send reads piped text only from a shell pipe or a file, never from an open terminal, so it never sits waiting for input. When another program runs ripple send, pass the message as an argument or use --json-file -.

When a command fails

The CLI prints Error: and what went wrong, then a line saying what to do. With --json, the error is one line of JSON with its code and message. These are the errors people hit most, each with the words the CLI prints:

ErrorCodeWhat to do
This terminal isn't connected to Ripple.missing_keyRun ripple login, or set RIPPLE_KEY to a send key or an API token.
RIPPLE_KEY is a send key, which only sends. Reading and managing need an API token.send_key_onlyRun unset RIPPLE_KEY, then ripple login, or set RIPPLE_KEY to an API token.
RIPPLE_KEY isn't a Ripple key. Keys start with rpl_send_ or rpl_api_.invalid_keyCopy the key again, whole.
The key is invalid.invalid_credentialWith RIPPLE_KEY, the key was reset or removed, or the token went 180 days unused: get a new one. Signed in, run ripple login again.
This API token is Read only. This needs Send only, Read and send, or Everything.insufficient_accessUse a token with one of the levels it names.
This key sends only to Backups.invalid_sourceLeave out --source: a send key always sends to its own source.
You have no source named Builds.not_foundRun ripple sources to see your sources' names.
Add a message, for example: ripple send "Deploy finished"invalid_argumentsPass the message as an argument. ripple send never reads from an open terminal, so a program that runs it can't type the message in.
photo.heic isn't a JPEG, PNG, WebP, or GIF. Convert it to one first.invalid_argumentsConvert the image, such as an iPhone photo, to JPEG.
Could not send notification to Ripple at https://api.ripple.do. Check your network connection.network_errorCheck the connection. ripple send has already tried for 5 minutes.
Ripple didn't answer in time, so it's unknown whether the message was sent.request_timeoutSend it again with the --idempotency-key the error prints, so it arrives only once.

Any other error is Ripple's own, with the same message the API gives.

Point it somewhere else

Commands go to https://api.ripple.do. To use another address, set RIPPLE_BASE_URL, or save it as baseUrl in ~/.config/ripple/config.json. For one command, use --base-url. When more than one is set, --base-url wins, then the environment variable, then the file.

To keep your key and sign-in safe, the CLI sends them only over https://, apart from your own computer, and won't use a config file other users could change. Each address has its own sign-in, so run ripple login once for each.

Color shows only in a terminal; set NO_COLOR to turn it off. Requests give up after 30 seconds unless you set --timeout, in milliseconds.

Keep it up to date

When a newer release is out, a command you run at a terminal ends, at most once a day, with a note saying so, the command that updates your copy, and a link to what's new. Ripple's API names the newest release in the X-Ripple-Latest-CLI-Version header of its answers, so the CLI asks no one else. It keeps the time it last showed the note in ~/.cache/ripple/update-notice. Scripts, --json output, and npx never show it.

ripple update runs the install script again for a copy it installed. For a Homebrew or npm copy, it shows the command that updates it.