# 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.

- Published: 2026-11-20
- Author: PingRoom
- Category: Product
- Topics: PingRoom CLI tag filter, tag PingRoom Pings, filter PingRoom CLI listener
- Canonical: https://pingroom.io/blog/pingroom-cli-tag-and-filter-pings
- Cover image: https://pingroom.ams3.cdn.digitaloceanspaces.com/blog/pingroom-cli-tag-and-filter-pings/pingroom-cli-tag-and-filter-pings-cover.webp
- Cover description: 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](https://github.com/pingroom/cli/releases/tag/v0.17.0). 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.

```sh
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](/documents/agent-access) 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.

```sh
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.

```sh
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.](https://pingroom.ams3.cdn.digitaloceanspaces.com/blog/pingroom-cli-tag-and-filter-pings/pingroom-cli-tag-and-filter-pings-1.webp)

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](/blog/long-polling-wait-for-notification) explains how the cursor moves forward.

[Pair the CLI with PingRoom](/blog/pair-pingroom-cli-without-copying-a-token), then try the two Pings in a private test Room before picking tags for a live script.
