---
# @generated by sylphx-gen. Do not edit.
title: "sylphx hosting deployment_protections"
description: "The sylphx hosting deployment_protections commands of Sylphx Hosting: every verb, with its argument, its flags and a run line."
type: reference
product: hosting
summary: "Every sylphx hosting deployment_protections command: its argument, its flags and a run line."
updated: 2026-09-28
nav: false
---

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

## get

Reads the environment's desired policy (deployment_protections/default).

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

**CLI**

```bash
sylphx hosting deployment-protections get orgs/acme/projects/shop/envs/production/deployment_protections/deployment-protection
```

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

## update

Updates the environment's desired Deployment Protection policy.

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

**CLI**

```bash
sylphx hosting deployment-protections update orgs/acme/projects/shop/envs/production/deployment_protections/deployment-protection
```

`PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/deployment_protections/deployment-protection` · scope `hosting:write` · effect `write` · [Request, response and examples](/docs/api/deployment_protections/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. |
| `--mode` | `string` | The default mode resolves to org_member in previews and public elsewhere. Explicit public or org_member overrides that default. |
