Skip to main content
All posts
Product2 min read

PingRoom CLI 0.17.0 Can Tag and Filter Pings

Label sends with --tag and follow one tag from a terminal. Try a two-event rehearsal before changing a live script.

Pingo and two PingRoom avatars watch as a small terracotta tag is attached to a model freight wagon.

In PingRoom CLI 0.17.0, add --tag when you send a Ping, then run pingroom listen --tag with the label you want to follow. Your terminal shows matching incoming Pings. People in the Room still receive updates according to their usual permissions and notification settings.

The flags are available in the published CLI release. Here’s a small rehearsal for a team that wants its terminal to show staging deploys while the same Room also receives build and test updates.

Set up two sides of the test

Use Node.js 20 or later and install the version used in this example.

npm install --global @pingroom/cli@0.17.0
pingroom --version

Use a private test Room and two authorized PingRoom accounts. The sender’s agent needs permission to broadcast in that Room. The receiving account’s agent needs permission to read notifications and access to the same Room. The listener skips events sent as its connected account, so use a different account on the send side. The Agent Access guide lists the scopes and connected-agent limits. Setting up an incoming webhook requires Pro. The example below uses paired agents. If both terminals share a machine, use separate PINGROOM_HOME directories when you pair them so each terminal keeps its own connection.

Follow staging deploys

On the receiver’s terminal, run the listener first and leave it open.

pingroom listen --tag staging-deploy

On the sender’s terminal, set TEST_ROOM to the test Room’s code and send two clearly labeled Pings.

pingroom ping --room "$TEST_ROOM" -m "Test: staging deploy finished" \
  --tag staging-deploy --tag deploy

pingroom ping --room "$TEST_ROOM" -m "Test: unit tests finished" \
  --tag build

Expect to see Test: staging deploy finished in the filtered terminal. Open the test Room as the receiver and look for both Pings in History. The second Ping is a useful control. It reached the same Room with a different tag.

A tagged model wagon sits on a side track while a second wagon stays on the main line. Pingo and two PingRoom avatars look on.

In our fictional workshop, Pingo watches one tagged model wagon roll onto a siding. He gives the wagon on the main line the same look. Both are still on the track.

Put the filter where it belongs

  • Use a tag for a category. A sender can add up to ten tags. Each takes 1–32 characters, starts with a letter or digit, and can contain lowercase letters, digits, hyphens and underscores. The CLI normalizes case and removes duplicates.
  • Use Room membership for access. A listener follows one tag across the Rooms it can already read. If the same tag appears in several of those Rooms, all matching incoming Pings can appear.
  • Start the listener before sending. A fresh listener starts from the current position. If you already have a saved Ping ID, --from lets you start after it. The long-polling guide explains how the cursor moves forward.

Pair the CLI with PingRoom, then try the two Pings in a private test Room before picking tags for a live script.

PingRoom

Short-form communication.

View all posts
How To

Send a Quick Ping with an NFC tag

Put a small tag by the door, connect it to a PingRoom Quick Ping in Apple Shortcuts, and send a familiar update by holding your iPhone near it.

4 min read