---
# @generated by sylphx-gen 0.1.0 from contracts@e145cc7cf1bc9605f2b27439e5e17ed76a1a2fd7e7021906a013f7565e4a0cd5. Do not edit.
title: "sylphx observability scrubbing_policies"
description: "The sylphx observability scrubbing_policies commands of Sylphx Observability: every verb, with its argument, its flags and a run line."
type: reference
product: monitoring
summary: "Every sylphx observability scrubbing_policies command: its argument, its flags and a run line."
updated: 2026-09-28
nav: false
---

The `scrubbing_policies` commands of Sylphx Observability, as the CLI spells them: the same
calls as [the `scrubbing_policies` API page](/docs/api/scrubbing_policies), typed for the
shell. [Install, sign in and the grammar](/docs/cli) are on the CLI index.

## get

Gets the environment's scrubbing policy (`scrubbing_policies/default`).

**`NAME`** — the resource's name; a bare id is enough below the linked
project.

**CLI**

```bash
sylphx observability scrubbing-policies get orgs/acme/projects/shop/envs/production/scrubbing_policies/scrubbing-policy
```

`GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/scrubbing_policies/scrubbing-policy` · scope `observability:read` · effect `read` · [Request, response and examples](/docs/api/scrubbing_policies/get)

## update

Updates the environment's scrubbing policy.

**`NAME`** — the resource's name; a bare id is enough below the linked
project.

**CLI**

```bash
sylphx observability scrubbing-policies update orgs/acme/projects/shop/envs/production/scrubbing_policies/scrubbing-policy
```

`PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/scrubbing_policies/scrubbing-policy` · scope `observability:write` · effect `write` · [Request, response and examples](/docs/api/scrubbing_policies/update)

**Flags**

| Flag | Type | What it does |
| --- | --- | --- |
| `--meta.labels` | `key=value` | Caller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value. |
| `--meta.annotations` | `key=value` | Caller-writable, unindexed annotations. Repeat the flag for each value. |
| `--meta.display-name` | `string` | Caller-writable human-readable name. |
| `--denied-fields` | `string` | More field names to replace with `[Filtered]` wherever they appear in tags, extra data, request data, or breadcrumb data (case-insensitive, matched as a substring), at most 64. Repeat the flag for each value. |
| `--keep-emails` | `bool` | Keep email addresses instead of replacing them with `[email]`. |
