diff --git a/package.json b/package.json
index 33c2735e772..fc894ca80e1 100644
--- a/package.json
+++ b/package.json
@@ -103,7 +103,7 @@
"@types/unist": "3.0.3",
"@typescript-eslint/parser": "8.72.1",
"astro": "7.4.7",
- "cf": "1.0.0-rc.4",
+ "cf": "1.0.0-rc.7",
"cidr-tools": "13.0.4",
"clsx": "2.1.1",
"codeowners-utils": "1.0.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2571d3d143d..d4d72cf917f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -147,8 +147,8 @@ importers:
specifier: 7.4.7
version: 7.4.7(@astrojs/markdown-remark@7.3.2(supports-color@10.2.2))(@types/node@26.6.6)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.1)
cf:
- specifier: 1.0.0-rc.4
- version: 1.0.0-rc.4(@types/node@26.6.6)
+ specifier: 1.0.0-rc.7
+ version: 1.0.0-rc.7(@types/node@26.6.6)
cidr-tools:
specifier: 13.0.4
version: 13.0.4
@@ -745,15 +745,15 @@ packages:
resolution: {integrity: sha512-NWT/0wULeX1YLQRDFm6rs8NAJz4YDYWbED628F0GpXF1w5PT09glR4CilIdGiovL9jflGneCD7/uLTrxWMkerQ==}
engines: {node: '>=16.0.0'}
- '@cloudflare/build-output-utils@1.0.0-rc.3':
- resolution: {integrity: sha512-eOBdKjGzwMZXvrBGhL3VAS6fEE41pSlg8gYCydL4ao/6kHy7dUKpoxFfJ5PS9pcgP1Y7T/uu0hO+n+MtbA/X+Q==}
-
- '@cloudflare/config@1.0.0-rc.3':
- resolution: {integrity: sha512-O4BxQxaC3MuX3fKGRNUJ4ZIazg8VXoShkA2K7neaZXUvpi61srzTC/wU3vEN8jEpFlbCo1z63NLC4xi3ZNr2eQ==}
+ '@cloudflare/build-output-utils@1.0.0-rc.6':
+ resolution: {integrity: sha512-76HLkywpc/bIuWhY8nmNzy1pcLHCeK3p8SC6wdAtB1MYcbJK9fp+E2O+vwh4TcqWUJZJ9mNnMOxulF1zbHL5LA==}
'@cloudflare/config@1.0.0-rc.4':
resolution: {integrity: sha512-/XMjR78UkEGL3ffbevmH6GTVrL5YtuX23ZHBm5t61CU1eAYUBj8MV4a/jSOPwQJTTSRm2WSNNSBOAxgE+H5R7A==}
+ '@cloudflare/config@1.0.0-rc.5':
+ resolution: {integrity: sha512-EJGL1OqAj4NZpAscupy8i+tOcYpjJI0WPCg3rAytBHKoV+DtrrOVgZZIq52fDj7k99AAdrw+J5KjPJYVfluKMg==}
+
'@cloudflare/kv-asset-handler@0.5.0':
resolution: {integrity: sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==}
engines: {node: '>=22.0.0'}
@@ -787,8 +787,8 @@ packages:
satori:
optional: true
- '@cloudflare/runtime-types@0.1.32':
- resolution: {integrity: sha512-TU2vBeZ35tZlOAcFl+eJ6ylj+Ce6Zt4GNsBcyhduHEQ4I70XCsEYFU+X1CcpWbVKWC8ppCwMHrBsMkkJpKJWyg==}
+ '@cloudflare/runtime-types@0.1.36':
+ resolution: {integrity: sha512-I3HSTmvL5T1ZLKTdCH6+T4qnOCMWHeS4C6DZbUd2daNEBgrn+R9ivvHHIuBCMdfebv4ymIfsDoeg0EzNWZeZvQ==}
'@cloudflare/unenv-preset@2.16.2':
resolution: {integrity: sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==}
@@ -823,8 +823,8 @@ packages:
cpu: [x64]
os: [darwin]
- '@cloudflare/workerd-darwin-64@1.20261119.1':
- resolution: {integrity: sha512-yotoiTGXCl1gTRX+y5ZWSAmzAg6CcBJXhJL6C1DGWUhsjjezNe8FdzraNsefVTOeKsOid2EC+hqOzewczKLvmQ==}
+ '@cloudflare/workerd-darwin-64@1.20261127.1':
+ resolution: {integrity: sha512-7kDdqYmmWX8S/P9pE6ae9BFU807UjivLqtF2dzUGXIQVYEenY+S8zQcKtaRm9wzhkmq8ZYyIjm0XYW5SEc8kMg==}
engines: {node: '>=16'}
cpu: [x64]
os: [darwin]
@@ -841,8 +841,8 @@ packages:
cpu: [arm64]
os: [darwin]
- '@cloudflare/workerd-darwin-arm64@1.20261119.1':
- resolution: {integrity: sha512-VPOmfEmMubvw4SPcg/yDgamQXsiVAENgxeCJO8pDggRJFaF93SP0g/hktD8sbfmWBS19BO1kX1EsdgHSgRL9jA==}
+ '@cloudflare/workerd-darwin-arm64@1.20261127.1':
+ resolution: {integrity: sha512-mSgMwlIlMsfLfzWTUi3ngrahDb8P+TKTbtic4nvEJOnnYM1KtZNf8EfYQHtB2GVoXau79uK0UEdS+kAN0WItAg==}
engines: {node: '>=16'}
cpu: [arm64]
os: [darwin]
@@ -859,8 +859,8 @@ packages:
cpu: [x64]
os: [linux]
- '@cloudflare/workerd-linux-64@1.20261119.1':
- resolution: {integrity: sha512-aaDf78smiN12Uuwtg6TG6iLVS61sLpy/7DC5PYORf2+TCYw/bygcaqqb8zQJ+XwZ3xYhm/Ws80c/yMMhCMTFYA==}
+ '@cloudflare/workerd-linux-64@1.20261127.1':
+ resolution: {integrity: sha512-/7c3pJfyn9tg38nXEzLqdZPTwWolhlVOVyBv85FoWSmMPC23eQsFunRQAgsWi1Os/h1a6n3505MAChgqYrpq7w==}
engines: {node: '>=16'}
cpu: [x64]
os: [linux]
@@ -877,8 +877,8 @@ packages:
cpu: [arm64]
os: [linux]
- '@cloudflare/workerd-linux-arm64@1.20261119.1':
- resolution: {integrity: sha512-LkyAvTMcKqRUP73HRScWWwTSz3pw09um1hxR+rcGdvsGzao8IR59XXTp/tul6kFdVBL2mD8U3X6j2O8t7I4viw==}
+ '@cloudflare/workerd-linux-arm64@1.20261127.1':
+ resolution: {integrity: sha512-x/MJ8Vd+Q9VamNtj3pFRJZdZc9r3HcSqOpU6XfhcOTFuQEpA9t/0/DWdP27NrzxKNdHV5139XYxUw+x/oGY/Kw==}
engines: {node: '>=16'}
cpu: [arm64]
os: [linux]
@@ -895,8 +895,8 @@ packages:
cpu: [x64]
os: [win32]
- '@cloudflare/workerd-windows-64@1.20261119.1':
- resolution: {integrity: sha512-y4RO3QFNWt4j4uq2kmP5tklTvdA3qOA0PXuA66vsCmEtZYYb71ldefJcq5Dt0jrexKf/i4BBaLXZMVYLnohb0g==}
+ '@cloudflare/workerd-windows-64@1.20261127.1':
+ resolution: {integrity: sha512-ebko9XaZy6iqDHLr4WH2dC01Hf8L8xQe2GxBwqdsUfAmhMPGbnk33GtvR5FFaae+CPCPiU/H2TY1WeJ8cNSKdQ==}
engines: {node: '>=16'}
cpu: [x64]
os: [win32]
@@ -2486,8 +2486,8 @@ packages:
ccount@2.0.1:
resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
- cf@1.0.0-rc.4:
- resolution: {integrity: sha512-QNJOSb4DT4HOO/ZwIL0zG5GhnX64cN6a8Dmfln/IwXim/G0eTkQdo/0rEexbY3FJI6rzG19GotWN8I+udulgxA==}
+ cf@1.0.0-rc.7:
+ resolution: {integrity: sha512-UE+XKdKo6ka2G/Du+B/ei6RyCBB3Tiy8170My9f8+0/ql52p4G1TOKHDLRYYTDmb4i1fNbYFkPkC6rUikLfxZg==}
engines: {node: ^22.23.0 || ^24.22.0 || ^26.12.0}
hasBin: true
@@ -4255,8 +4255,8 @@ packages:
resolution: {integrity: sha512-FGqoi2BF7Vq6v8aSraq9Tmhg8ORpUBC5RkNGhfa11J597cWlLJ5QP9vJwDMOzwJx+W4U+IuHWSidVceBK6VRZQ==}
engines: {node: '>=22.0.0'}
- miniflare@5.20261119.0-beta:
- resolution: {integrity: sha512-HdNQIUPgde5Yg0qFaI6iiYd0aOxAgKQTXDstkBN2G1tPBdslNrUKdySwaGdBix0IFd+yh8M0gkqzw68dIZ2Ugw==}
+ miniflare@5.20261127.1-beta:
+ resolution: {integrity: sha512-QEmP4WEmcKYtfL0ymm1zW443zwDLFGi32wAex7H9HHpFJ5sNhzQO/IoXJaum8vwQnduogmMf+2+6s8bK49Hzmw==}
engines: {node: '>=22.12.0'}
peerDependencies:
kerberos: ^2.0.0
@@ -5633,8 +5633,8 @@ packages:
engines: {node: '>=16'}
hasBin: true
- workerd@1.20261119.1:
- resolution: {integrity: sha512-lalSvY+ad5asqMgzA/DfrZo7wvuvOHJc/aS1UctUrwu76fJE/LkSKJlprfBu0LeU79Qai5d+xFooQA9CIfj+dQ==}
+ workerd@1.20261127.1:
+ resolution: {integrity: sha512-0iiH4PRpbGnXCh9MWYczOWciw6d0ddFZ1W/I/W8qCRS2oZSNv6swptZ/n1U5pJRyrYaO9Eh6oo3Kc7+iPix4hg==}
engines: {node: '>=16'}
hasBin: true
@@ -6240,15 +6240,15 @@ snapshots:
'@cloudflare/ai-search-snippet@0.0.43': {}
- '@cloudflare/build-output-utils@1.0.0-rc.3':
+ '@cloudflare/build-output-utils@1.0.0-rc.6':
dependencies:
- '@cloudflare/config': 1.0.0-rc.3
+ '@cloudflare/config': 1.0.0-rc.5
- '@cloudflare/config@1.0.0-rc.3':
+ '@cloudflare/config@1.0.0-rc.4':
dependencies:
zod: 4.6.6
- '@cloudflare/config@1.0.0-rc.4':
+ '@cloudflare/config@1.0.0-rc.5':
dependencies:
zod: 4.6.6
@@ -6312,10 +6312,10 @@ snapshots:
- terser
- tsx
- '@cloudflare/runtime-types@0.1.32(@types/node@26.6.6)':
+ '@cloudflare/runtime-types@0.1.36(@types/node@26.6.6)':
dependencies:
- miniflare: 5.20261119.0-beta(@types/node@26.6.6)
- workerd: 1.20261119.1
+ miniflare: 5.20261127.1-beta(@types/node@26.6.6)
+ workerd: 1.20261127.1
transitivePeerDependencies:
- '@types/node'
- bufferutil
@@ -6368,7 +6368,7 @@ snapshots:
'@cloudflare/workerd-darwin-64@1.20261102.1':
optional: true
- '@cloudflare/workerd-darwin-64@1.20261119.1':
+ '@cloudflare/workerd-darwin-64@1.20261127.1':
optional: true
'@cloudflare/workerd-darwin-arm64@1.20261012.1':
@@ -6377,7 +6377,7 @@ snapshots:
'@cloudflare/workerd-darwin-arm64@1.20261102.1':
optional: true
- '@cloudflare/workerd-darwin-arm64@1.20261119.1':
+ '@cloudflare/workerd-darwin-arm64@1.20261127.1':
optional: true
'@cloudflare/workerd-linux-64@1.20261012.1':
@@ -6386,7 +6386,7 @@ snapshots:
'@cloudflare/workerd-linux-64@1.20261102.1':
optional: true
- '@cloudflare/workerd-linux-64@1.20261119.1':
+ '@cloudflare/workerd-linux-64@1.20261127.1':
optional: true
'@cloudflare/workerd-linux-arm64@1.20261012.1':
@@ -6395,7 +6395,7 @@ snapshots:
'@cloudflare/workerd-linux-arm64@1.20261102.1':
optional: true
- '@cloudflare/workerd-linux-arm64@1.20261119.1':
+ '@cloudflare/workerd-linux-arm64@1.20261127.1':
optional: true
'@cloudflare/workerd-windows-64@1.20261012.1':
@@ -6404,7 +6404,7 @@ snapshots:
'@cloudflare/workerd-windows-64@1.20261102.1':
optional: true
- '@cloudflare/workerd-windows-64@1.20261119.1':
+ '@cloudflare/workerd-windows-64@1.20261127.1':
optional: true
'@cloudflare/workers-types@5.20261102.1': {}
@@ -8080,13 +8080,13 @@ snapshots:
ccount@2.0.1: {}
- cf@1.0.0-rc.4(@types/node@26.6.6):
+ cf@1.0.0-rc.7(@types/node@26.6.6):
dependencies:
- '@cloudflare/build-output-utils': 1.0.0-rc.3
- '@cloudflare/config': 1.0.0-rc.3
- '@cloudflare/runtime-types': 0.1.32(@types/node@26.6.6)
+ '@cloudflare/build-output-utils': 1.0.0-rc.6
+ '@cloudflare/config': 1.0.0-rc.5
+ '@cloudflare/runtime-types': 0.1.36(@types/node@26.6.6)
blake3-wasm: 2.1.5
- miniflare: 5.20261119.0-beta(@types/node@26.6.6)
+ miniflare: 5.20261127.1-beta(@types/node@26.6.6)
transitivePeerDependencies:
- '@types/node'
- bufferutil
@@ -10373,12 +10373,12 @@ snapshots:
- bufferutil
- utf-8-validate
- miniflare@5.20261119.0-beta(@types/node@26.6.6):
+ miniflare@5.20261127.1-beta(@types/node@26.6.6):
dependencies:
'@cspotcode/source-map-support': 0.8.1
sharp: 0.35.5(@types/node@26.6.6)
undici: 7.30.2
- workerd: 1.20261119.1
+ workerd: 1.20261127.1
ws: 8.21.0
youch: 4.1.0-beta.10
transitivePeerDependencies:
@@ -11857,13 +11857,13 @@ snapshots:
'@cloudflare/workerd-linux-arm64': 1.20261102.1
'@cloudflare/workerd-windows-64': 1.20261102.1
- workerd@1.20261119.1:
+ workerd@1.20261127.1:
optionalDependencies:
- '@cloudflare/workerd-darwin-64': 1.20261119.1
- '@cloudflare/workerd-darwin-arm64': 1.20261119.1
- '@cloudflare/workerd-linux-64': 1.20261119.1
- '@cloudflare/workerd-linux-arm64': 1.20261119.1
- '@cloudflare/workerd-windows-64': 1.20261119.1
+ '@cloudflare/workerd-darwin-64': 1.20261127.1
+ '@cloudflare/workerd-darwin-arm64': 1.20261127.1
+ '@cloudflare/workerd-linux-64': 1.20261127.1
+ '@cloudflare/workerd-linux-arm64': 1.20261127.1
+ '@cloudflare/workerd-windows-64': 1.20261127.1
workers-og@0.0.27:
dependencies:
diff --git a/src/components/cf/command-reference.node.test.ts b/src/components/cf/command-reference.node.test.ts
index e5003d17b64..c37a08819a5 100644
--- a/src/components/cf/command-reference.node.test.ts
+++ b/src/components/cf/command-reference.node.test.ts
@@ -12,7 +12,7 @@ import {
describe("CF command metadata", () => {
test("uses the pinned CF package version", () => {
- expect(getCfCommandMetadataVersion()).toBe("1.0.0-rc.4");
+ expect(getCfCommandMetadataVersion()).toBe("1.0.0-rc.7");
});
test("resolves a command from generated metadata", () => {
diff --git a/src/content/docs/cloudflare-one/access-controls/cli-commands.mdx b/src/content/docs/cloudflare-one/access-controls/cli-commands.mdx
new file mode 100644
index 00000000000..6ed1a11afa5
--- /dev/null
+++ b/src/content/docs/cloudflare-one/access-controls/cli-commands.mdx
@@ -0,0 +1,129 @@
+---
+pcx_content_type: reference
+title: Access CLI commands
+description: Manage Access applications, policies, rule groups, service tokens, targets, and other Access resources from the command line using the Cloudflare CLI (cf).
+sidebar:
+ order: 12
+products:
+ - cloudflare-one
+---
+
+import { CfNamespace } from "~/components";
+
+Use [Cloudflare CLI (`cf`)](/cf/) `cf zero-trust access` commands to manage Access applications, policies, rule groups, service tokens, infrastructure targets, custom pages, and other Access resources from the command line. To get started, install `cf` and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Access: Apps and Policies Read** permission (or **Access: Apps and Policies Write** to make changes). Service tokens require **Access: Service Tokens Write**, and infrastructure targets require **Zero Trust Write**.
+
+You can also use `cf access` commands on a user device to reach Access-protected applications from a terminal. For details, refer to [`access`](#access).
+
+:::note
+`cf zero-trust access` commands operate on remote Cloudflare resources only (`--local` is not supported).
+
+- `applications create` and `applications update` only accept `--body`. Pass the application as JSON, either inline or from a file with `--body @app.json`. Options that take JSON, such as `--include` on `policies create`, also accept `@path/to/file.json`.
+- `update` commands replace the whole resource. Pass the current values of any fields that you want to keep. For example, `applications update` requires `type` and `destinations`, and `policies update` clears a policy's `session_duration` if you omit `--session-duration`. Use the matching `get` command to read the current values first.
+- Hostnames in a public `destinations` entry of a self-hosted application must belong to a zone in your account.
+- Infrastructure applications do not support reusable policies. Define their policies inline in the `policies` array of the application.
+- Pass `-f` (`--force`) to `delete`, `revoke`, and `revoke-tokens` commands to skip the confirmation prompt in scripts, CI, or coding agents.
+- Pass PEM certificates from a file, for example `--certificate @ca.pem`. A value that starts with `-----BEGIN` is parsed as an option name.
+
+:::
+
+## `zero-trust access applications`
+
+Create and manage [Access applications](/cloudflare-one/access-controls/applications/), including self-hosted, SaaS, infrastructure, and bookmark applications. Use `policy-tests` to [test policies](/cloudflare-one/access-controls/policies/policy-management/#test-your-policies) against your users, `revoke-tokens` to [revoke application sessions](/cloudflare-one/access-controls/access-settings/session-management/#per-application), and `short-lived-certificates` to manage [short-lived certificates](/cloudflare-one/access-controls/applications/non-http/short-lived-certificates-legacy/).
+
+
+
+## `zero-trust access policies`
+
+Create and manage reusable [Access policies](/cloudflare-one/access-controls/policies/). Pass rules as JSON arrays to `--include`, `--exclude`, and `--require`. To attach a policy to an application, add its ID to the application's `policies` array.
+
+
+
+## `zero-trust access rule-groups`
+
+Create and manage [rule groups](/cloudflare-one/access-controls/policies/groups/) (formerly Access groups) that you can reference from Access policies with `{"group": {"id": ""}}`.
+
+
+
+## `zero-trust access service-tokens`
+
+Create, refresh, and rotate [service tokens](/cloudflare-one/access-controls/service-credentials/service-tokens/). The client secret is only shown in the output of `create` and `rotate`. `service-tokens update` clears the token name if you omit `--name`.
+
+
+
+## `zero-trust access tags`
+
+Create and manage [Access tags](/cloudflare-one/reusable-components/tags/). To tag an application, add tag names to the application's `tags` array.
+
+
+
+## `zero-trust access custom-pages`
+
+Create and manage [Access custom pages](/cloudflare-one/reusable-components/custom-pages/access-custom-pages/). To assign a page to an application, add its `uid` to the application's `custom_pages` array.
+
+
+
+## `zero-trust access mtls-certificates`
+
+Manage root certificates for [mutual TLS authentication](/cloudflare-one/access-controls/service-credentials/mutual-tls-authentication/) and per-hostname mTLS settings.
+
+
+
+## `zero-trust access targets`
+
+Create and manage [infrastructure targets](/cloudflare-one/access-controls/applications/non-http/infrastructure-apps/) for Access for Infrastructure.
+
+
+
+## `zero-trust access infrastructure`
+
+Manage the [SSH certificate authority](/cloudflare-one/networks/connectors/cloudflare-tunnel/use-cases/ssh/ssh-infrastructure-access/) used by Access for Infrastructure, and the encryption settings for [SSH command logs](/cloudflare-one/insights/logs/dashboard-logs/ssh-command-logs/).
+
+
+
+## `zero-trust access users`
+
+List the users in your Zero Trust organization, review their active sessions and failed logins, and [revoke their sessions](/cloudflare-one/access-controls/access-settings/session-management/#per-user).
+
+
+
+## `zero-trust access user-populations`
+
+Create and manage user populations.
+
+
+
+## `zero-trust access logs`
+
+Query [Access authentication logs](/cloudflare-one/insights/logs/dashboard-logs/access-authentication-logs/), just-in-time access request logs, and SCIM provisioning logs.
+
+
+
+## `zero-trust access signing-keys`
+
+Get and rotate the keys that Access uses to sign [application tokens](/cloudflare-one/access-controls/applications/http-apps/authorization-cookie/application-token/). Rotating keys affects every application in your account.
+
+
+
+## `zero-trust access saml-encryption-certificates`
+
+Get and rotate the certificates used to encrypt SAML assertions for [SaaS applications](/cloudflare-one/access-controls/applications/http-apps/saas-apps/generic-saml-saas/).
+
+
+
+## `zero-trust access mfa`
+
+List the authenticator models that you can allow for [independent MFA](/cloudflare-one/access-controls/access-settings/independent-mfa/).
+
+
+
+## `zero-trust organization`
+
+Get and update account-wide Access settings for your Zero Trust organization, such as the [global session duration](/cloudflare-one/access-controls/access-settings/session-management/#global-session-duration), [login page design](/cloudflare-one/reusable-components/custom-pages/access-login-page/), and default [block pages](/cloudflare-one/reusable-components/custom-pages/access-block-page/). `organization edit` sends only the settings you pass (`PATCH`), while `organization update` sends a full replacement (`PUT`). To change individual settings, use `organization edit`. These settings apply to your whole account.
+
+
+
+## `access`
+
+Reach Access-protected applications from a user device. These commands run [`cloudflared`](/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/), which must be installed on the device, and behave the same as the matching `cloudflared access` commands. For example, `cf access login` is equivalent to `cloudflared access login`. For usage, refer to [Client-side cloudflared](/cloudflare-one/access-controls/applications/non-http/cloudflared-authentication/) and [Connect through Access using a CLI](/cloudflare-one/tutorials/cli/).
+
+
diff --git a/src/content/docs/cloudflare-one/cloud-and-saas-findings/cli-commands.mdx b/src/content/docs/cloudflare-one/cloud-and-saas-findings/cli-commands.mdx
new file mode 100644
index 00000000000..49b8711f8de
--- /dev/null
+++ b/src/content/docs/cloudflare-one/cloud-and-saas-findings/cli-commands.mdx
@@ -0,0 +1,84 @@
+---
+pcx_content_type: reference
+title: CASB CLI commands
+description: Manage CASB integrations, findings, custom finding types, policies, webhooks, and remediations from the command line using the Cloudflare CLI (cf).
+sidebar:
+ order: 6
+products:
+ - cloudflare-one
+---
+
+import { CfNamespace } from "~/components";
+
+Use [Cloudflare CLI (`cf`)](/cf/) `cf zero-trust casb` commands to manage Cloud and SaaS integrations, review and act on findings, create custom finding types, and configure CASB policies, webhooks, and remediations from the command line. To get started, install `cf` and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **CASB Read** permission (or **CASB Write** to make changes).
+
+:::note
+`cf zero-trust casb` commands operate on remote Cloudflare resources only (`--local` is not supported).
+
+- Options that take a list of objects, such as `--actions-webhook-configs` and `--headers`, accept inline JSON or `@path/to/file.json`. String options such as `--expression` also accept `@path/to/file`.
+- `finding-types update`, `policies update`, and `webhooks update` replace the whole object. Pass every value you want to keep. Omitted optional values, such as a policy `--description`, are cleared.
+- Some commands take an ID as an option instead of a positional argument, for example `findings instances list --finding-id `, `finding-types remediation-types list --finding-type-id `, and `applications auth-methods list --application-id `.
+- List commands write pagination metadata to standard error as a `result_info:` line. For details, refer to [Paginate results](/cf/get-started/resources/#paginate-results).
+- Pass `-f` (`--force`) to `delete` commands to skip the confirmation prompt in scripts, CI, or coding agents.
+
+:::
+
+## `zero-trust casb applications`
+
+List the SaaS applications and cloud environments that CASB can integrate with. `applications auth-methods list` returns each authentication method and the JSON schema of the credentials that `integrations create` expects.
+
+
+
+## `zero-trust casb integrations`
+
+Create and manage [Cloud and SaaS integrations](/cloudflare-one/integrations/cloud-and-saas/). Integrations that use OAuth require you to authorize access in the dashboard. `integrations pause` stops all scans for an integration, and `integrations resume` restarts them.
+
+
+
+## `zero-trust casb findings`
+
+List [posture findings](/cloudflare-one/cloud-and-saas-findings/manage-findings/#posture-findings) and their instances, ignore findings, hide (archive) instances, change severity, and export findings.
+
+
+
+## `zero-trust casb content`
+
+List and export [content findings](/cloudflare-one/cloud-and-saas-findings/manage-findings/#content-findings) detected by DLP.
+
+
+
+## `zero-trust casb finding-types`
+
+List standard and custom finding types, and create, validate, update, and delete [custom finding types](/cloudflare-one/cloud-and-saas-findings/custom-finding-types/). `finding-types validate` takes the same options as `finding-types create` and returns `valid` and a list of `errors` without creating the finding type.
+
+
+
+## `zero-trust casb asset-schemas`
+
+List the asset vendors and asset classes available to your account, and get the fields of an asset class for use in custom finding type expressions.
+
+
+
+## `zero-trust casb policies`
+
+Create and manage [remediation policies](/cloudflare-one/cloud-and-saas-findings/policies/) that act on new finding instances automatically.
+
+
+
+## `zero-trust casb webhooks`
+
+Create and manage [CASB webhooks](/cloudflare-one/integrations/cloud-and-saas/webhooks/), test delivery, and send finding instances to webhooks.
+
+
+
+## `zero-trust casb remediations`
+
+Run [remediations](/cloudflare-one/cloud-and-saas-findings/manage-findings/#remediate-findings) on finding instances and review remediation jobs.
+
+
+
+## `zero-trust casb exports`
+
+Check the status of findings and content exports.
+
+
diff --git a/src/content/docs/cloudflare-one/cloud-workload-security/cli-commands.mdx b/src/content/docs/cloudflare-one/cloud-workload-security/cli-commands.mdx
new file mode 100644
index 00000000000..428db3818b9
--- /dev/null
+++ b/src/content/docs/cloudflare-one/cloud-workload-security/cli-commands.mdx
@@ -0,0 +1,80 @@
+---
+pcx_content_type: reference
+title: Cloud workload security CLI commands
+description: Manage Cloud Workload Security workloads, policies, deployments, and policy reference resources from the command line using the Cloudflare CLI (cf).
+sidebar:
+ order: 7.5
+products:
+ - cloud-workload-security
+---
+
+import { CfNamespace } from "~/components";
+
+Use [Cloudflare CLI (`cf`)](/cf/) `cf zero-trust cws` commands to manage Cloud Workload Security (CWS) workloads, policies, policy sets, deployments, domain ACLs, Basic Auth credentials, and policy reference resources from the command line. To get started, install `cf` and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Workload Security Read** permission (or **Cloud Workload Security Write** to make changes).
+
+:::note
+`cf zero-trust cws` commands operate on remote Cloudflare resources only (`--local` is not supported).
+
+- `update` commands replace the whole resource. Pass every required value, such as a policy's `--name`, `--filter`, `--entrypoint`, and `--rego-source`, along with your changes.
+- String options such as `--rego-source` accept `@path/to/file`, so you can keep Rego source in a file. Options that take a list of objects, such as `--policies` and `--entries`, accept inline JSON or `@path/to/file.json`.
+- `deployments create` and `deployments update` require `--basic-auth-credential-ids`. To attach no credentials, pass the option without a value.
+- `rego-metadata create` and `rego-metadata update` do not have an option for the JSON data. Pass the data with `--body`.
+- `basic-auth-credentials secrets create` takes the credential ID as a positional argument, but `secrets list`, `secrets get`, and `secrets delete` take it as `--credential-id`.
+- `tenant-structures nodes create` takes the structure ID as a positional argument, but the other `tenant-structures nodes` commands take it as `--structure-id`. `nodes bulk-apply` requires `--creates`, `--updates`, and `--deletes`. Pass `'[]'` for operations you do not need.
+- Pass `-f` (`--force`) to `delete` and `bulk-apply` commands to skip the confirmation prompt in scripts, CI, or coding agents.
+
+:::
+
+## `zero-trust cws workloads`
+
+Create and manage [workloads](/cloudflare-one/cloud-workload-security/guides/configure-policies/#create-a-workload), reusable filters that select groups of requests.
+
+
+
+## `zero-trust cws policies`
+
+Create and manage [policies](/cloudflare-one/cloud-workload-security/guides/configure-policies/#create-a-policy) that combine a request filter with a Rego check.
+
+
+
+## `zero-trust cws policy-sets`
+
+Create and manage [policy sets](/cloudflare-one/cloud-workload-security/guides/configure-policies/#create-a-policy-set) that group policies and define their workload scope.
+
+
+
+## `zero-trust cws deployments`
+
+Create and manage [deployments](/cloudflare-one/cloud-workload-security/get-started/#create-a-deployment), the configuration that a CWS proxy loads.
+
+
+
+## `zero-trust cws domain-acls`
+
+Create and manage [domain ACLs](/cloudflare-one/cloud-workload-security/guides/manage-traffic-scope/#create-a-domain-acl) that control which destinations a deployment can reach.
+
+
+
+## `zero-trust cws basic-auth-credentials`
+
+Create [Basic Auth credentials](/cloudflare-one/cloud-workload-security/guides/manage-traffic-scope/#create-a-basic-auth-credential) for clients that use the proxy, and add, list, and delete their password secrets.
+
+
+
+## `zero-trust cws rego-modules`
+
+Create and manage [Rego modules](/cloudflare-one/cloud-workload-security/guides/policy-reference/#create-a-rego-module) that hold reusable library code.
+
+
+
+## `zero-trust cws rego-metadata`
+
+Create and manage [Rego metadata](/cloudflare-one/cloud-workload-security/guides/policy-reference/#create-rego-metadata), shared JSON values that policies can read.
+
+
+
+## `zero-trust cws tenant-structures`
+
+Create and manage [tenant structures](/cloudflare-one/cloud-workload-security/guides/policy-reference/#create-a-tenant-structure) and their nodes.
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/cli-commands.mdx b/src/content/docs/cloudflare-one/email-security/cli-commands.mdx
new file mode 100644
index 00000000000..eee5b59b22f
--- /dev/null
+++ b/src/content/docs/cloudflare-one/email-security/cli-commands.mdx
@@ -0,0 +1,103 @@
+---
+pcx_content_type: reference
+title: Email security CLI commands
+description: Manage Email security policies, settings, investigations, and submissions from the command line using the Cloudflare CLI (cf).
+sidebar:
+ order: 18
+products:
+ - cloudflare-one
+---
+
+import { CfNamespace } from "~/components";
+
+Use [Cloudflare CLI (`cf`)](/cf/) `cf email-security` commands to manage allow policies, blocked senders, trusted domains, and other Email security settings, investigate and act on messages, and submit messages for reclassification from the command line. To get started, install `cf` and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Read** permission (or **Cloud Email Security: Write** to make changes).
+
+:::note
+`cf email-security` commands operate on remote Cloudflare resources only (`--local` is not supported).
+
+- Your account must have Email security onboarded. Otherwise, commands return a `404 Not Found` error.
+- `create` commands require every boolean option that the dashboard shows as a toggle, such as `--is-regex`. Pass `true` or `false` explicitly.
+- `edit` commands update only the options you pass. `update` commands replace the whole entry, so pass every required value.
+- `--expires-at` takes an RFC 3339 timestamp in the future, for example `2027-12-31T23:59:59Z`. In `cf` 1.0.0-rc.7, `--expires-at null` sends the string `"null"` instead of clearing the expiration. To clear an expiration, pass `--body '{"expires_at": null}'`.
+- Use `bulk-apply` to create, update, or delete many entries in one request, for example to replace a CSV upload in the dashboard. `bulk-apply` requires `--posts`, `--patches`, `--puts`, and `--deletes`. Pass `'[]'` for operations you do not need. Pass `-f` (`--force`) to `bulk-apply` and `delete` commands to skip the confirmation prompt in scripts, CI, or coding agents.
+- List commands return JSON. `cf` does not export entries to CSV.
+
+:::
+
+## `email-security allow-policies`
+
+Create and manage [allow policies](/cloudflare-one/email-security/policies/inbound/allow-policies/) that exempt messages from detections. Use `--is-trusted-sender`, `--is-exempt-recipient`, or `--is-acceptable-sender` to choose the action.
+
+
+
+## `email-security block-senders`
+
+Manage [blocked senders](/cloudflare-one/email-security/policies/inbound/blocked-senders/) whose messages always receive a malicious disposition.
+
+
+
+## `email-security trusted-domains`
+
+Manage [trusted domains](/cloudflare-one/email-security/policies/inbound/trusted-domains/) that are exempt from lookalike (`--is-similarity`) and new domain (`--is-recent`) detections.
+
+
+
+## `email-security content-policies`
+
+Manage [blocked content](/cloudflare-one/email-security/policies/inbound/blocked-content/) policies that match a regular expression in the subject (`SUBJECT`), body (`BODY`), or both.
+
+
+
+## `email-security sending-domain-restrictions`
+
+Manage [partner domain TLS](/cloudflare-one/email-security/policies/inbound/partner-domain-tls/) entries that require TLS for mail from specific domains.
+
+
+
+## `email-security url-ignore-patterns`
+
+Manage [URL rewrite ignore patterns](/cloudflare-one/email-security/settings/detection-settings/configure-link-actions/#add-patterns-for-urls) for link actions.
+
+
+
+## `email-security impersonation-registry`
+
+Manage users in the [impersonation registry](/cloudflare-one/email-security/settings/detection-settings/impersonation-registry/). Entries synced from an integrated directory cannot be edited or deleted with these commands.
+
+
+
+## `email-security domains`
+
+List and configure the [domains](/cloudflare-one/email-security/setup/manage-domains/) that Email security protects, and check domain verification status.
+
+
+
+## `email-security investigate`
+
+[Search messages](/cloudflare-one/email-security/investigation/search-email/), get message details, detections, raw content, mail trace, and action logs, and move or release specific messages.
+
+
+
+## `email-security bulk-actions`
+
+Move or release every message that matches a search in one background job, and track or cancel the job. `--search-params-detections-only` defaults to `true`, so jobs only match messages with a detection unless you pass `--search-params-detections-only false`. Run `cf email-security investigate list` with the same search options first to review which messages match.
+
+
+
+## `email-security submissions`
+
+[Submit messages for reclassification](/cloudflare-one/email-security/submissions/#submit-messages-for-review) or report missed detections, and list team and user submissions. To reclassify a message as clean, set `expected_disposition` to `NONE`.
+
+
+
+## `email-security phishguard`
+
+List reports from the [PhishGuard](/cloudflare-one/email-security/phishguard/) team.
+
+
+
+## `email-security analytics`
+
+Get an aggregated monthly report of detections, dispositions, and policy activity for the trailing 12 months.
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/index.mdx b/src/content/docs/cloudflare-one/email-security/index.mdx
index 74ee042dee9..3dbcc72106e 100644
--- a/src/content/docs/cloudflare-one/email-security/index.mdx
+++ b/src/content/docs/cloudflare-one/email-security/index.mdx
@@ -42,6 +42,8 @@ To access the Email security overview:
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Go to **Email security** > **Overview**.
+You can also manage policies and settings, investigate messages, and submit messages for reclassification with the [Cloudflare CLI (`cf`)](/cf/). To manage Email security from a terminal, a script, or a coding agent, refer to [Email security CLI commands](/cloudflare-one/email-security/cli-commands/).
+
---
## Troubleshooting
diff --git a/src/content/docs/cloudflare-one/email-security/investigation/search-email.mdx b/src/content/docs/cloudflare-one/email-security/investigation/search-email.mdx
index 36c8c9dcbba..f9b7c92188c 100644
--- a/src/content/docs/cloudflare-one/email-security/investigation/search-email.mdx
+++ b/src/content/docs/cloudflare-one/email-security/investigation/search-email.mdx
@@ -8,18 +8,52 @@ sidebar:
order: 1
---
+import { Steps, TabItem, Tabs } from "~/components";
+
With Email security, you can use different screen criteria to search through your email, reclassify and move a certain volume of messages, find similar emails, and export messages.
## Screen criteria
Email security allows you to use popular, regular, and advanced screening criteria to search through your inbox. Advanced screening will give you the most in-depth investigation of your inbox.
+
+
+
To screen through your email traffic:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Select **Email security**.
3. Select **Investigation**, then **Run new screen**.
4. Choose between **Popular**, **Regular**, and **Advanced** screen methods. Refer to the explanation below to learn what each method does.
+
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Read** permission.
+
+To search messages, run [`cf email-security investigate list`](/cloudflare-one/email-security/cli-commands/#cf-email-security-investigate-list) with the criteria you want to match. For example, to find malicious messages from the last seven days:
+
+```sh
+cf email-security investigate list \
+ --start 2026-01-01T00:00:00Z \
+ --end 2026-01-08T00:00:00Z \
+ --final-disposition MALICIOUS
+```
+
+Replace the timestamps with an ISO 8601 date range in UTC. If you omit `--start` and `--end`, the search covers the last 30 days. Common options include:
+
+- `--query`: A keyword matched against the sender, recipient, subject, attachment names and hashes, and message ID, like a regular screen.
+- `--final-disposition`: `MALICIOUS`, `SUSPICIOUS`, `SPOOF`, `SPAM`, `BULK`, or `NONE`.
+- `--message-action`: `MOVED`, `QUARANTINE_RELEASED`, or `PREVIEW`. Use `MOVED` to find moved emails.
+- `--sender`, `--recipient`, `--domain`, `--subject`, `--message-id`, `--alert-id`, and `--delivery-status`: Advanced screen criteria.
+- `--detections-only`: Set to `true` to return only messages with a detection.
+
+Results are paginated with a cursor. To get the next page, pass the `cursor` value from the `result_info:` line on standard error to `--cursor`. Each result includes the message `id`, which you need to view, move, or release the message.
+
+
+
The results will be displayed on a table. The table allows you to review and take action on the messages that match your chosen screening criteria.
@@ -79,8 +113,12 @@ To reset your screening criteria, select **Reset**.
Moving messages allows you to move messages to a specific folder. You can move up to 1,000 messages at a time.
+
+
+
To move messages:
+
1. In [Cloudflare One](https://one.dash.cloudflare.com/), go to **Email security**, and select **Investigation**.
2. On the Investigation page, select all the messages you want to move.
3. Select the **Action** dropdown, then select **Move**.
@@ -91,9 +129,55 @@ To move messages:
- **Soft delete (user recoverable)**: Move messages to the user's Deleted Items folder. This option is for Microsoft 365 only.
- **Hard delete (admin recoverable)**: Delete messages from a user's inbox.
5. Select **Save**.
+
To move messages in bulk, select **Select all messages** > **Action** > **Move**.
+
+
+
+:::caution
+Moving messages changes users' mailboxes. Confirm the message IDs before you run the command.
+:::
+
+
+1. [Search for the messages](#screen-criteria) with `cf email-security investigate list` and note the `id` of each message.
+
+2. Move the messages with [`cf email-security investigate move`](/cloudflare-one/email-security/cli-commands/#cf-email-security-investigate-move):
+
+ ```sh
+ cf email-security investigate move \
+ --ids \
+ --destination JunkEmail
+ ```
+
+ `--destination` takes one of the following folders:
+
+ - `Inbox`: **Inbox**
+ - `JunkEmail`: **Junk email**
+ - `DeletedItems`: **Trash**
+ - `RecoverableItemsDeletions`: **Soft delete (user recoverable)**
+ - `RecoverableItemsPurges`: **Hard delete (admin recoverable)**
+
+
+To release quarantined messages, run `cf email-security investigate release --ids `.
+
+To move or release every message that matches a search, create a bulk action job with [`cf email-security bulk-actions create`](/cloudflare-one/email-security/cli-commands/#cf-email-security-bulk-actions-create). The job uses the same search criteria as `investigate list`, prefixed with `--search-params-`:
+
+```sh
+cf email-security bulk-actions create \
+ --action MOVE \
+ --destination JunkEmail \
+ --search-params-start 2026-01-01T00:00:00Z \
+ --search-params-end 2026-01-08T00:00:00Z \
+ --search-params-sender attacker@example.com
+```
+
+Check the progress of the job with `cf email-security bulk-actions get `.
+
+
+
+
## Find similar emails
Each detection has an Email Detection Fingerprint (EDF) hash that Email security sends to the Search API to retrieve similar detections.
@@ -108,14 +192,36 @@ To find similar detection results:
With Email security, you can export messages to a CSV file.
+
+
+
To export messages:
+
1. In [Cloudflare One](https://one.dash.cloudflare.com/), go to **Email security**, and select **Investigation**.
2. On the Investigation page, under **Your matching messages**, select **Export to CSV**.
3. Select **Export messages** on the pop-up message. You can export up to 500 messages from the dashboard. To export up to 1,000 matching messages, use the [API](/api/resources/email_security/subresources/investigate/methods/get/).
+
To export messages in bulk, select **Select all messages** > **Export to CSV**.
+
+
+
+To export matching messages as JSON, run `cf email-security investigate list` with your search criteria and save the output to a file:
+
+```sh
+cf email-security investigate list \
+ --start 2026-01-01T00:00:00Z \
+ --end 2026-01-08T00:00:00Z \
+ --per-page 1000 > messages.json
+```
+
+Each request returns up to 1,000 messages. `cf` does not export messages to CSV.
+
+
+
+
## Email status
Email security allows you to review the status and actions of each email.
diff --git a/src/content/docs/cloudflare-one/email-security/phishguard.mdx b/src/content/docs/cloudflare-one/email-security/phishguard.mdx
index 94dcb2e76d3..8079215750b 100644
--- a/src/content/docs/cloudflare-one/email-security/phishguard.mdx
+++ b/src/content/docs/cloudflare-one/email-security/phishguard.mdx
@@ -8,6 +8,8 @@ sidebar:
order: 17
---
+import { Steps, TabItem, Tabs } from "~/components";
+
PhishGuard is a team of analysts that routinely inspects your email environment and responds to threats that come through your email inbox.
While Email security uses advanced technologies to protect your email inbox, PhishGuard offers an additional human component to protect your email environment against impersonation events, suspicious items, false negatives/false positives, and any new event that automated intelligent systems may miss due to a lack of context (for example, a compromised account activity).
@@ -26,11 +28,34 @@ Additionally, PhishGuard analysts:
- Review every [user](/cloudflare-one/email-security/investigation/search-email/#user-submissions) and [team](/cloudflare-one/email-security/investigation/search-email/#team-submissions) submission so your security team can focus on more critical activities.
- Help you detect and mitigate threats faster, reducing the time attacks have access to your network. This also helps reducing business impact, because it prevents data breaches, financial loss, and reputational damage.
+
+
+
To use PhishGuard:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Select **Email security**.
3. Select **PhishGuard**.
+
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Read** permission.
+
+To list the [reports](#reports) that the PhishGuard team has created, run [`cf email-security phishguard reports list`](/cloudflare-one/email-security/cli-commands/#cf-email-security-phishguard-reports-list):
+
+```sh
+cf email-security phishguard reports list \
+ --start 2026-01-01T00:00:00Z \
+ --end 2026-01-31T23:59:59Z
+```
+
+`cf` does not display the other PhishGuard metrics. To view them, use the dashboard.
+
+
+
The dashboard will display the following metrics:
diff --git a/src/content/docs/cloudflare-one/email-security/policies/inbound/allow-policies.mdx b/src/content/docs/cloudflare-one/email-security/policies/inbound/allow-policies.mdx
index bd256a1e59a..6e6250a331e 100644
--- a/src/content/docs/cloudflare-one/email-security/policies/inbound/allow-policies.mdx
+++ b/src/content/docs/cloudflare-one/email-security/policies/inbound/allow-policies.mdx
@@ -8,7 +8,7 @@ sidebar:
order: 1
---
-import { Example, Details } from "~/components";
+import { Details, Example, Steps, TabItem, Tabs } from "~/components";
Email security allows you to configure allow policies. An allow policy exempts messages that match certain patterns from normal detection scanning.
@@ -217,8 +217,12 @@ Below you can find a list of known services you can add when configuring an Acce
## Configure allow policies
+
+
+
To configure allow policies:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Select **Email security**.
3. Select **Policies & rules**, then go to **Inbound** > **Allow policies**.
@@ -243,6 +247,51 @@ To configure allow policies:
- After the selected date passes, the policy expires and no longer applies.
- The expiration option is available to all Email security customers, regardless of plan.
7. Select **Save**.
+
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Write** permission.
+
+
+1. Create the allow policy with [`cf email-security allow-policies create`](/cloudflare-one/email-security/cli-commands/#cf-email-security-allow-policies-create):
+
+ ```sh
+ cf email-security allow-policies create \
+ --pattern "example.com" \
+ --pattern-type DOMAIN \
+ --is-regex false \
+ --is-acceptable-sender true \
+ --is-trusted-sender false \
+ --is-exempt-recipient false \
+ --verify-sender true \
+ --expires-at 2027-12-31T23:59:59Z \
+ --comments "Marketing platform"
+ ```
+
+ - `--pattern-type`: The **Rule type**. Use `EMAIL`, `DOMAIN`, or `IP`.
+ - `--is-regex`: Set to `true` if `--pattern` is a regular expression.
+ - `--is-acceptable-sender`, `--is-trusted-sender`, `--is-exempt-recipient`: The **Action**. Set one of these options to `true` for **Accept sender**, **Trust sender**, or **Exempt recipient**, and the others to `false`. All three options are required.
+ - `--verify-sender`: **Sender verification**. Required.
+ - `--expires-at`: (Optional) **Expires at**, as an RFC 3339 timestamp in the future.
+ - `--comments`: (Optional) **Notes**.
+
+2. Note the `id` in the output. You need it to edit or delete the policy.
+
+
+To create many allow policies at once, as you would with a CSV upload, use [`cf email-security allow-policies bulk-apply`](/cloudflare-one/email-security/cli-commands/#cf-email-security-allow-policies-bulk-apply). `--posts` takes a JSON array of policies with the same fields as `create`, in `snake_case`, for example `"pattern_type": "DOMAIN"`. `bulk-apply` also requires `--patches`, `--puts`, and `--deletes`, so pass an empty array for each one you do not use:
+
+```sh
+cf email-security allow-policies bulk-apply \
+ --posts @policies.json \
+ --patches '[]' \
+ --puts '[]' \
+ --deletes '[]'
+```
+
+
+
@@ -308,35 +357,112 @@ whale@notaphish.com, EMAIL, false, true, true, false, true, 2036-12-31, not a ph
## Export allow policies
+
+
+
To export all allow policies:
+
1. On the **Allow policies** page, select **Value(s)**. Selecting **Value(s)** will select all allow policies.
2. Select **Export to CSV**.
+
To export specific allow policies:
+
1. On the **Allow policies** page, select the allow policies you want to export.
2. Select **Export to CSV**.
+
+
+
+
+
+To list your allow policies, run [`cf email-security allow-policies list`](/cloudflare-one/email-security/cli-commands/#cf-email-security-allow-policies-list):
+
+```sh
+cf email-security allow-policies list --per-page 1000
+```
+
+To filter the list, add options such as `--pattern-type EMAIL`, `--is-trusted-sender true`, or `--search ""`. `cf` returns allow policies as JSON. It does not export them to CSV.
+
+
+
## Edit allow policy
+
+
+
To edit an allow policy:
+
1. On the **Allow policies** page, select the allow policy you want to edit.
2. Select the three dots > **Edit**.
3. Edit the allow policy.
4. Select **Save**.
+
+
+
+
+
+
+1. Find the ID of the allow policy:
+
+ ```sh
+ cf email-security allow-policies list --search ""
+ ```
+
+2. Update the policy with [`cf email-security allow-policies edit`](/cloudflare-one/email-security/cli-commands/#cf-email-security-allow-policies-edit). Pass only the options you want to change:
+
+ ```sh
+ cf email-security allow-policies edit \
+ --verify-sender true \
+ --comments "Updated notes"
+ ```
+
+
+
+
## Delete allow policy
+
+
+
To delete an allow policy:
+
1. On the **Allow policies** page, select the allow policy you want to delete.
2. Select the three dots > **Delete**.
3. On the pop-up message, select **Delete**.
+
To delete multiple allow policies at once:
+
1. On the **Allow policies** page, select the allow policies you want to delete.
2. Select **Action**.
3. Select **Delete**.
+
+
+
+
+
+To delete an allow policy, run [`cf email-security allow-policies delete`](/cloudflare-one/email-security/cli-commands/#cf-email-security-allow-policies-delete):
+
+```sh
+cf email-security allow-policies delete
+```
+
+To delete multiple allow policies at once, list their IDs in `--deletes`:
+
+```sh
+cf email-security allow-policies bulk-apply \
+ --deletes '[{"id":""},{"id":""}]' \
+ --posts '[]' \
+ --patches '[]' \
+ --puts '[]'
+```
+
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/policies/inbound/blocked-content.mdx b/src/content/docs/cloudflare-one/email-security/policies/inbound/blocked-content.mdx
index 77567e28772..0256ad65cb9 100644
--- a/src/content/docs/cloudflare-one/email-security/policies/inbound/blocked-content.mdx
+++ b/src/content/docs/cloudflare-one/email-security/policies/inbound/blocked-content.mdx
@@ -8,6 +8,8 @@ sidebar:
order: 4
---
+import { Steps, TabItem, Tabs } from "~/components";
+
Blocked content policies are only available on Enterprise plans and Enterprise + [PhishGuard](/cloudflare-one/email-security/phishguard/) plans.
Email security allows you to configure blocked content policies. A blocked content policy marks all messages containing specific words or phrases with a malicious [disposition](/cloudflare-one/email-security/reference/dispositions-and-attributes/).
@@ -20,8 +22,12 @@ This is useful when your organization needs to block emails containing specific
## Create a blocked content policy
+
+
+
To create a blocked content policy:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Select **Email security**.
3. Select **Policies & rules**, then go to **Inbound** > **Blocked content**.
@@ -41,6 +47,38 @@ To create a blocked content policy:
- **Review potential matches**: Displays a list of words that your pattern could match.
- **Test specific content against your regular expression**: Enter a sample text and select **Test policy** to verify whether your policy catches the expected content.
8. Select **Save**.
+
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Write** permission.
+
+
+1. Create the policy with [`cf email-security content-policies create`](/cloudflare-one/email-security/cli-commands/#cf-email-security-content-policies-create):
+
+ ```sh
+ cf email-security content-policies create \
+ --name "Gift card scams" \
+ --pattern 'gift\s+cards?' \
+ --targets SUBJECT BODY \
+ --enabled true \
+ --notes "Block gift card requests"
+ ```
+
+ - `--targets`: The **Scope**. Use `SUBJECT`, `BODY`, or both.
+ - `--pattern`: The regular expression that defines the content to block.
+ - `--enabled`: **Activate policy**. Required.
+ - `--expires-at`: (Optional) The expiration date, as an RFC 3339 timestamp in the future.
+ - `--notes`: (Optional) **Note**.
+
+2. Note the `id` in the output. You need it to edit or delete the policy.
+
+
+`cf` does not test a pattern against sample content. To review potential matches before you save the policy, use the dashboard.
+
+
+
### Allowed regex modifiers
@@ -66,23 +104,77 @@ When building your pattern, you can use the following regex modifiers:
## Edit a blocked content policy
+
+
+
To edit a blocked content policy:
+
1. On the **Blocked content** page, select the policy you want to edit.
2. Select the three dots > **Edit**.
3. Edit the blocked content policy.
4. Select **Save**.
+
+
+
+
+
+
+1. Find the ID of the policy:
+
+ ```sh
+ cf email-security content-policies list
+ ```
+
+2. Update the policy with [`cf email-security content-policies edit`](/cloudflare-one/email-security/cli-commands/#cf-email-security-content-policies-edit). Pass only the options you want to change. For example, to turn off the policy:
+
+ ```sh
+ cf email-security content-policies edit --enabled false
+ ```
+
+
+
+
## Delete a blocked content policy
+
+
+
To delete a blocked content policy:
+
1. On the **Blocked content** page, select the policy you want to delete.
2. Select the three dots > **Delete**.
3. On the pop-up message, select **Delete**.
+
To delete multiple blocked content policies at once:
+
1. On the **Blocked content** page, select the policies you want to delete.
2. Select **Action**.
3. Select **Delete**.
+
+
+
+
+
+To delete a blocked content policy, run [`cf email-security content-policies delete`](/cloudflare-one/email-security/cli-commands/#cf-email-security-content-policies-delete):
+
+```sh
+cf email-security content-policies delete
+```
+
+To delete multiple policies at once, list their IDs in `--deletes`:
+
+```sh
+cf email-security content-policies bulk-apply \
+ --deletes '[{"id":""},{"id":""}]' \
+ --posts '[]' \
+ --patches '[]' \
+ --puts '[]'
+```
+
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/policies/inbound/blocked-senders.mdx b/src/content/docs/cloudflare-one/email-security/policies/inbound/blocked-senders.mdx
index 56649824797..7ba5e0be0cd 100644
--- a/src/content/docs/cloudflare-one/email-security/policies/inbound/blocked-senders.mdx
+++ b/src/content/docs/cloudflare-one/email-security/policies/inbound/blocked-senders.mdx
@@ -8,6 +8,8 @@ sidebar:
order: 3
---
+import { Steps, TabItem, Tabs } from "~/components";
+
Email security marks all messages from these senders with a malicious [disposition](/cloudflare-one/email-security/reference/dispositions-and-attributes/).
## How blocked senders work
@@ -18,8 +20,12 @@ Sometimes, the same email, IP address or domain always sends malicious emails to
## Configure blocked senders
+
+
+
To configure blocked senders:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Select **Email security**.
3. Select **Policies & rules**, then go to **Inbound** > **Blocked senders**.
@@ -38,6 +44,45 @@ To configure blocked senders:
- After the selected date passes, the policy expires and no longer applies.
- The expiration option is available to all Email security customers, regardless of plan.
7. Select **Save**.
+
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Write** permission.
+
+
+1. Add the blocked sender with [`cf email-security block-senders create`](/cloudflare-one/email-security/cli-commands/#cf-email-security-block-senders-create):
+
+ ```sh
+ cf email-security block-senders create \
+ --pattern "attacker@example.com" \
+ --pattern-type EMAIL \
+ --is-regex false \
+ --expires-at 2027-12-31T23:59:59Z \
+ --comments "Repeated phishing sender"
+ ```
+
+ - `--pattern-type`: The **Sender type**. Use `EMAIL`, `DOMAIN`, or `IP`.
+ - `--is-regex`: Set to `true` if `--pattern` is a regular expression. Required.
+ - `--expires-at`: (Optional) **Expires at**, as an RFC 3339 timestamp in the future.
+ - `--comments`: (Optional) **Notes**.
+
+2. Note the `id` in the output. You need it to edit or delete the blocked sender.
+
+
+To add many blocked senders at once, as you would with a CSV upload, use [`cf email-security block-senders bulk-apply`](/cloudflare-one/email-security/cli-commands/#cf-email-security-block-senders-bulk-apply). `--posts` takes a JSON array of blocked senders with the same fields as `create`, in `snake_case`. `bulk-apply` also requires `--patches`, `--puts`, and `--deletes`, so pass an empty array for each one you do not use:
+
+```sh
+cf email-security block-senders bulk-apply \
+ --posts @blocked-senders.json \
+ --patches '[]' \
+ --puts '[]' \
+ --deletes '[]'
+```
+
+
+
### CSV uploads
@@ -55,35 +100,112 @@ example.com, DOMAIN, false, 2036-12-31, Melanie Turner
## Export blocked senders
+
+
+
To export all blocked senders:
+
1. On the **Blocked senders** page, select **Sender**. Selecting **Sender** will select all blocked senders.
2. Select **Export to CSV**.
+
To export specific blocked senders:
+
1. On the **Blocked senders** page, select **Value(s)**. Select the blocked senders you want to export.
2. Select **Export to CSV**.
+
+
+
+
+
+To list your blocked senders, run [`cf email-security block-senders list`](/cloudflare-one/email-security/cli-commands/#cf-email-security-block-senders-list):
+
+```sh
+cf email-security block-senders list --per-page 1000
+```
+
+To filter the list, add options such as `--pattern-type DOMAIN` or `--search ""`. `cf` returns blocked senders as JSON. It does not export them to CSV.
+
+
+
## Edit a blocked sender
+
+
+
To edit a blocked sender:
+
1. On the **Blocked senders** page, select the blocked sender you want to edit.
2. Select the three dots > **Edit**.
3. Edit the blocked sender.
4. Select **Save**.
+
+
+
+
+
+
+1. Find the ID of the blocked sender:
+
+ ```sh
+ cf email-security block-senders list --search ""
+ ```
+
+2. Update the blocked sender with [`cf email-security block-senders edit`](/cloudflare-one/email-security/cli-commands/#cf-email-security-block-senders-edit). Pass only the options you want to change:
+
+ ```sh
+ cf email-security block-senders edit \
+ --expires-at 2028-06-30T23:59:59Z \
+ --comments "Updated notes"
+ ```
+
+
+
+
## Delete a blocked sender
+
+
+
To delete a blocked sender:
+
1. On the **Blocked senders** page, select the blocked sender you want to delete.
2. Select the three dots > **Delete**.
3. On the pop up message, select **Delete**.
+
To delete multiple blocked senders at once:
+
1. On the **Blocked senders** page, select the senders you want to delete.
2. Select **Action**
3. Select **Delete**.
+
+
+
+
+
+To delete a blocked sender, run [`cf email-security block-senders delete`](/cloudflare-one/email-security/cli-commands/#cf-email-security-block-senders-delete):
+
+```sh
+cf email-security block-senders delete
+```
+
+To delete multiple blocked senders at once, list their IDs in `--deletes`:
+
+```sh
+cf email-security block-senders bulk-apply \
+ --deletes '[{"id":""},{"id":""}]' \
+ --posts '[]' \
+ --patches '[]' \
+ --puts '[]'
+```
+
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/policies/inbound/partner-domain-tls.mdx b/src/content/docs/cloudflare-one/email-security/policies/inbound/partner-domain-tls.mdx
index 1a241322794..abc2c749037 100644
--- a/src/content/docs/cloudflare-one/email-security/policies/inbound/partner-domain-tls.mdx
+++ b/src/content/docs/cloudflare-one/email-security/policies/inbound/partner-domain-tls.mdx
@@ -10,21 +10,55 @@ sidebar:
order: 5
---
+import { Steps, TabItem, Tabs } from "~/components";
+
To add additional TLS (Transport Layer Security) requirements for emails coming from certain domains, you can enforce higher levels of SSL/TLS inspection. If TLS is required, mail without TLS from the specified domain will be dropped.
:::note
To enforce TLS across all emails, you will need to enforce TLS requirements when you are onboarding your domain. To only enforce TLS for specific emails, go to **Policies & rules** > **Inbound** > **Partner domain TLS**, then select **Add a domain**.
:::
+
+
+
To set up a partner domain:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/) and select **Email security**.
2. Select **Policies & rules**, then go to **Inbound** > **Partner domain TLS**.
3. Select **Add a domain**.
4. Enter a valid domain name. You can also exclude subdomains by selecting **Add exclude**.
5. (Optional) Add an optional note to describe your rule(s).
6. Select **Save**.
+
To edit a partner domain, select the three dots > **Edit**.
To delete a partner domain, select the three dots > **Delete**.
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Write** permission.
+
+
+1. Add the partner domain with [`cf email-security sending-domain-restrictions create`](/cloudflare-one/email-security/cli-commands/#cf-email-security-sending-domain-restrictions-create):
+
+ ```sh
+ cf email-security sending-domain-restrictions create \
+ --domain "partner.example.com" \
+ --exclude "legacy.partner.example.com" \
+ --comments "Require TLS from partner"
+ ```
+
+ - `--domain`: The domain that must send mail over TLS.
+ - `--exclude`: Subdomains to exclude from the TLS requirement. Required. To exclude no subdomains, pass `--exclude` without a value.
+ - `--comments`: (Optional) A note that describes the rule.
+
+2. Note the `id` in the output. You need it to edit or delete the partner domain.
+
+
+To edit a partner domain, run [`cf email-security sending-domain-restrictions edit`](/cloudflare-one/email-security/cli-commands/#cf-email-security-sending-domain-restrictions-edit) with the options you want to change. To delete a partner domain, run [`cf email-security sending-domain-restrictions delete`](/cloudflare-one/email-security/cli-commands/#cf-email-security-sending-domain-restrictions-delete). To find the ID, run `cf email-security sending-domain-restrictions list`.
+
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/policies/inbound/trusted-domains.mdx b/src/content/docs/cloudflare-one/email-security/policies/inbound/trusted-domains.mdx
index 77931dc9bb9..b5330bf3774 100644
--- a/src/content/docs/cloudflare-one/email-security/policies/inbound/trusted-domains.mdx
+++ b/src/content/docs/cloudflare-one/email-security/policies/inbound/trusted-domains.mdx
@@ -8,6 +8,8 @@ sidebar:
order: 2
---
+import { Steps, TabItem, Tabs } from "~/components";
+
Email security allows you to exempt known partner and internal domains from typical detection scanning. Adding trusted domains helps to reduce false positives on malicious, suspicious, and spoof [dispositions](/cloudflare-one/email-security/reference/dispositions-and-attributes/). Email security only checks the date when the domain is created.
## How trusted domains work
@@ -35,8 +37,12 @@ To view whether a domain is malicious or suspicious:
## Configure trusted domains
+
+
+
To configure a trusted domain:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Select **Email security**.
3. Select **Policies & rules**, then go to **Inbound** > **Trusted domains**.
@@ -50,6 +56,45 @@ To configure a trusted domain:
* **Notes**: Provide additional information about the trusted domain list.
- **Upload trusted domain list**: You can upload a file no larger than 150 KB of multiple trusted domains. The file can only contain `Domain`, `Proximity`, `New`, `Is Regex`, and `Notes` fields. The first row must be a header row. Refer to [CSV uploads](#csv-uploads) for an example file.
6. Select **Save**.
+
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Write** permission.
+
+
+1. Add the trusted domain with [`cf email-security trusted-domains create`](/cloudflare-one/email-security/cli-commands/#cf-email-security-trusted-domains-create):
+
+ ```sh
+ cf email-security trusted-domains create \
+ --pattern "partner.example.com" \
+ --is-similarity true \
+ --is-recent false \
+ --is-regex false \
+ --comments "Partner domain"
+ ```
+
+ - `--is-similarity`: **Proximity domain**. Set to `true` to exempt a domain with similar spelling to your domains from Spoof dispositions. Required.
+ - `--is-recent`: **Recent domain**. Set to `true` to exempt a recently registered domain from Suspicious or Malicious dispositions. Required.
+ - `--is-regex`: Set to `true` if `--pattern` is a regular expression. Required.
+ - `--comments`: (Optional) **Notes**.
+
+2. Note the `id` in the output. You need it to edit or delete the trusted domain.
+
+
+To add many trusted domains at once, as you would with a CSV upload, use [`cf email-security trusted-domains bulk-apply`](/cloudflare-one/email-security/cli-commands/#cf-email-security-trusted-domains-bulk-apply). `--posts` takes a JSON array of trusted domains with the same fields as `create`, in `snake_case`. `bulk-apply` also requires `--patches`, `--puts`, and `--deletes`, so pass an empty array for each one you do not use:
+
+```sh
+cf email-security trusted-domains bulk-apply \
+ --posts @trusted-domains.json \
+ --patches '[]' \
+ --puts '[]' \
+ --deletes '[]'
+```
+
+
+
### CSV uploads
@@ -65,35 +110,112 @@ testdomain.com, false, true, false, New Hire
## Export trusted domains
+
+
+
To export all trusted domains:
+
1. On the **Trusted domains** page, select **Domain**. Selecting **Domain** will select all trusted domains.
2. Select **Export to CSV**.
+
To export specific trusted domains:
+
1. On the **Trusted domains** page, select the trusted domains you want to export.
2. Select **Export to CSV**.
+
+
+
+
+
+To list your trusted domains, run [`cf email-security trusted-domains list`](/cloudflare-one/email-security/cli-commands/#cf-email-security-trusted-domains-list):
+
+```sh
+cf email-security trusted-domains list --per-page 1000
+```
+
+To filter the list, add options such as `--search ""`. `cf` returns trusted domains as JSON. It does not export them to CSV.
+
+
+
## Edit trusted domains
+
+
+
To edit a trusted domain:
+
1. On the **Trusted domains** page, select the trusted domains you want to edit.
2. Select the three dots > Edit.
3. Edit the trusted domain.
4. Select **Save**.
+
+
+
+
+
+
+1. Find the ID of the trusted domain:
+
+ ```sh
+ cf email-security trusted-domains list --search ""
+ ```
+
+2. Update the trusted domain with [`cf email-security trusted-domains edit`](/cloudflare-one/email-security/cli-commands/#cf-email-security-trusted-domains-edit). Pass only the options you want to change:
+
+ ```sh
+ cf email-security trusted-domains edit \
+ --is-recent true \
+ --comments "Updated notes"
+ ```
+
+
+
+
## Delete trusted domains
+
+
+
To delete trusted domains:
+
1. On the **Trusted domains** page, select the trusted domain you want to delete.
2. Select the three dots > **Delete**.
3. On the pop up message, select **Delete**.
+
To delete multiple trusted domains at once:
+
1. On the **Trusted domains** page, select the trusted domains you want to delete.
2. Select **Action**.
3. Select **Delete**.
+
+
+
+
+
+To delete a trusted domain, run [`cf email-security trusted-domains delete`](/cloudflare-one/email-security/cli-commands/#cf-email-security-trusted-domains-delete):
+
+```sh
+cf email-security trusted-domains delete
+```
+
+To delete multiple trusted domains at once, list their IDs in `--deletes`:
+
+```sh
+cf email-security trusted-domains bulk-apply \
+ --deletes '[{"id":""},{"id":""}]' \
+ --posts '[]' \
+ --patches '[]' \
+ --puts '[]'
+```
+
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/settings/detection-settings/configure-link-actions.mdx b/src/content/docs/cloudflare-one/email-security/settings/detection-settings/configure-link-actions.mdx
index 0afdba3a373..95075f9a848 100644
--- a/src/content/docs/cloudflare-one/email-security/settings/detection-settings/configure-link-actions.mdx
+++ b/src/content/docs/cloudflare-one/email-security/settings/detection-settings/configure-link-actions.mdx
@@ -8,6 +8,8 @@ sidebar:
order: 3
---
+import { Steps, TabItem, Tabs } from "~/components";
+
You can configure how Email security handles links in emails.
:::note
@@ -45,10 +47,52 @@ When opening links, Email security will not allow you to:
You can add patterns for URLs that should be rewritten.
+
+
+
+
1. Under **URL rewrite ignore patterns**, select **Add a pattern**.
2. Enter a valid IP, URL, or regular expression. You can enter up to 512 characters.
3. Select **Save**.
+
To edit a pattern, go to the pattern you want to edit, select the three dots, then **Edit**. Once you have finished modifying the URL pattern, select **Save**.
To delete a pattern, go to the pattern you want to delete, select the three dots, then **Delete**.
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Write** permission.
+
+
+1. Add the pattern with [`cf email-security url-ignore-patterns create`](/cloudflare-one/email-security/cli-commands/#cf-email-security-url-ignore-patterns-create):
+
+ ```sh
+ cf email-security url-ignore-patterns create \
+ --pattern '.*\.example\.com' \
+ --comments "Internal links"
+ ```
+
+ - `--pattern`: A valid IP, URL, or regular expression, up to 512 characters.
+ - `--comments`: (Optional) A note that describes why the pattern is ignored.
+
+2. Note the `id` in the output. You need it to edit or delete the pattern.
+
+
+To edit a pattern, run [`cf email-security url-ignore-patterns edit`](/cloudflare-one/email-security/cli-commands/#cf-email-security-url-ignore-patterns-edit) with the options you want to change:
+
+```sh
+cf email-security url-ignore-patterns edit --pattern '.*\.example\.net'
+```
+
+To delete a pattern, run [`cf email-security url-ignore-patterns delete`](/cloudflare-one/email-security/cli-commands/#cf-email-security-url-ignore-patterns-delete):
+
+```sh
+cf email-security url-ignore-patterns delete
+```
+
+To find a pattern ID, run `cf email-security url-ignore-patterns list`.
+
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/settings/detection-settings/impersonation-registry.mdx b/src/content/docs/cloudflare-one/email-security/settings/detection-settings/impersonation-registry.mdx
index c96d64099cd..f627c45b915 100644
--- a/src/content/docs/cloudflare-one/email-security/settings/detection-settings/impersonation-registry.mdx
+++ b/src/content/docs/cloudflare-one/email-security/settings/detection-settings/impersonation-registry.mdx
@@ -8,6 +8,8 @@ sidebar:
order: 1
---
+import { Steps, TabItem, Tabs } from "~/components";
+
The impersonation registry contains combinations of emails of users who are likely to be impersonated. If there is an email that is on the impersonation registry not listed as an alternative email address, that email will be reported as potential [business email compromise (BEC)](https://www.cloudflare.com/en-gb/learning/email-security/business-email-compromise-bec/).
:::note
@@ -17,8 +19,12 @@ The impersonation registry should contain a list of users who are likely to be i
For easier tracking, the Email security team recommends syncing and structuring VIPs in groups, and avoid doing manual inputs of users.
:::
+
+
+
To add a user to the impersonation registry:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Select **Email security**.
3. Select **Settings** > **Impersonation registry** > **View**.
@@ -34,6 +40,36 @@ To add a user to the impersonation registry:
- **Select directory**: Select your directory.
- **Add users or groups**: Choose the users or groups you want to register.
6. Select **Save**.
+
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Write** permission.
+
+
+1. Add the user with [`cf email-security impersonation-registry create`](/cloudflare-one/email-security/cli-commands/#cf-email-security-impersonation-registry-create):
+
+ ```sh
+ cf email-security impersonation-registry create \
+ --name "Jane Doe" \
+ --email "jane.doe@example.com" \
+ --is-email-regex false \
+ --comments "CFO"
+ ```
+
+ - `--name`: The user's **Display name**.
+ - `--email`: The user's email address, or a regular expression if `--is-email-regex` is `true`.
+ - `--is-email-regex`: Set to `true` if `--email` is a Java regular expression. Required.
+ - `--comments`: (Optional) A note about the entry.
+
+2. Note the `id` in the output. You need it to edit or remove the user.
+
+
+`cf` adds users manually, like **Manual input** in the dashboard. To register users or groups from an integrated directory, use the dashboard.
+
+
+
### CSV uploads
@@ -55,19 +91,50 @@ Administrators can edit the names and emails of users who belong to the Email se
:::
+
+
+
To edit users from the Email security directory:
+
1. Select the user you want to edit.
2. Select the three dots > **Edit**.
3. Enter the **Display name**, **Email** and **Secondary email**.
4. Select **Save**.
+
To edit users from other integrations:
+
1. Select the user you want to edit.
2. Select the three dots > **Edit**.
3. Enter the **Secondary email**.
4. Select **Save**.
+
+
+
+
+
+
+1. Find the ID of the user:
+
+ ```sh
+ cf email-security impersonation-registry list --search ""
+ ```
+
+2. Update the user with [`cf email-security impersonation-registry edit`](/cloudflare-one/email-security/cli-commands/#cf-email-security-impersonation-registry-edit). Pass only the options you want to change:
+
+ ```sh
+ cf email-security impersonation-registry edit \
+ --name "Jane Q. Doe" \
+ --email "jane.q.doe@example.com"
+ ```
+
+
+You can only edit users that belong to the Email security directory. `cf` does not support secondary email addresses. To add a secondary email, use the dashboard.
+
+
+
## Remove users
@@ -85,14 +152,35 @@ To remove a user from an integrated directory:
:::
+
+
+
To remove a user from the impersonation registry:
+
1. Select the user you want to remove.
2. Select the three dots > **Remove from registry**.
3. Read the pop-up message, then select **Remove user**.
+
To remove multiple users at once from the impersonation registry:
+
1. Select all the users you want to remove.
2. Select **Action** > **Remove from registry**.
3. Read the pop-up message, then select **Remove users**.
+
+
+
+
+
+To remove a user, run [`cf email-security impersonation-registry delete`](/cloudflare-one/email-security/cli-commands/#cf-email-security-impersonation-registry-delete):
+
+```sh
+cf email-security impersonation-registry delete
+```
+
+You can only remove users that belong to the Email security directory. To find an entry ID, run `cf email-security impersonation-registry list --search ""`.
+
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/setup/manage-domains.mdx b/src/content/docs/cloudflare-one/email-security/setup/manage-domains.mdx
index 5c704f3a770..85a158490db 100644
--- a/src/content/docs/cloudflare-one/email-security/setup/manage-domains.mdx
+++ b/src/content/docs/cloudflare-one/email-security/setup/manage-domains.mdx
@@ -7,6 +7,8 @@ sidebar:
order: 4
---
+import { Steps, TabItem, Tabs } from "~/components";
+
Once you have deployed your domain, Email security allows you to add, filter and edit domains. You can also choose to stop a domain from being scanned.
## Add domains
@@ -19,22 +21,79 @@ To protect a new domain:
## Filter domains
+
+
+
To filter your domains:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/) > **Email security**.
2. Go to **Settings** > **Domain management** > **Domains**, then select **View**.
3. Select **Show filters** > **Configured method**. Choose among the following filters: - **MS Graph API**: To view domains connected via MS Graph API. - **BCC/Journaling**: To view domains connected via BCC/Journaling. - **MX/Inline**: To view domains connected via MX/Inline. - **Retro Scan**: To view domains scanned by Retro Scan.
4. Select **Apply filters**.
+
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Read** permission.
+
+To list your domains by configured method, run [`cf email-security domains list`](/cloudflare-one/email-security/cli-commands/#cf-email-security-domains-list) with `--allowed-delivery-mode`:
+
+```sh
+cf email-security domains list --allowed-delivery-mode API
+```
+
+`--allowed-delivery-mode` takes one of the following values:
+
+- `API`: Domains connected via MS Graph API.
+- `BCC` or `JOURNAL`: Domains connected via BCC or journaling.
+- `DIRECT`: Domains connected via MX/Inline.
+- `RETRO_SCAN`: Domains scanned by Retro Scan.
+
+To filter by the delivery mode that is currently active, use `--active-delivery-mode` instead.
+
+
+
## Edit domains
+
+
+
To edit your domains:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/) > **Email security**.
2. Go to **Settings** > **Domain management** > **Domains**, then select **View**.
3. On the **Domains** page, locate your domain, select the three dots > **Edit**.
4. If you did not manually add your domain, you will only be able to edit **Hops**. If you manually added your domain, you will be able to edit **Domain name** and **Hops**.
5. Select **Save**.
+
+
+
+
+
+
+1. Find the ID of the domain:
+
+ ```sh
+ cf email-security domains list --domain example.com
+ ```
+
+2. Update the number of hops with [`cf email-security domains edit`](/cloudflare-one/email-security/cli-commands/#cf-email-security-domains-edit):
+
+ ```sh
+ cf email-security domains edit --lookback-hops 3
+ ```
+
+ `--lookback-hops` sets **Hops**, a value from `1` to `20`. `edit` updates only the options you pass.
+
+
+`cf` does not change the name of a domain. To rename a manually added domain, use the dashboard.
+
+
+
## Prevent Cloudflare from scanning a domain
@@ -43,4 +102,4 @@ To stop scanning domains:
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/) > **Email security**.
2. Go to **Settings** > **Domain management** > **Domains**, then select **View**.
3. On the **Domains** page, locate your domain, select the three dots > **Stop scanning**.
-4. Select **Stop scanning** again to stop Cloudflare from scanning your domain.
\ No newline at end of file
+4. Select **Stop scanning** again to stop Cloudflare from scanning your domain.
diff --git a/src/content/docs/cloudflare-one/email-security/setup/pre-delivery-deployment/partner-domain-tls.mdx b/src/content/docs/cloudflare-one/email-security/setup/pre-delivery-deployment/partner-domain-tls.mdx
index d33970c1736..4c8ca7069c5 100644
--- a/src/content/docs/cloudflare-one/email-security/setup/pre-delivery-deployment/partner-domain-tls.mdx
+++ b/src/content/docs/cloudflare-one/email-security/setup/pre-delivery-deployment/partner-domain-tls.mdx
@@ -10,21 +10,55 @@ sidebar:
order: 5
---
+import { Steps, TabItem, Tabs } from "~/components";
+
To add additional TLS (Transport Layer Security) requirements for emails coming from certain domains, you can enforce higher levels of SSL/TLS inspection. If TLS is required, mail without TLS from the specified domain will be dropped.
:::note
To enforce TLS across all emails, you will need to enforce TLS requirements when you are onboarding your domain. To only enforce TLS for specific emails, you can do so by going to **Settings** > **Partner domain TLS** > **Add a domain**.
:::
+
+
+
To set up a partner domain:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/) and select **Email security**.
2. Select **Settings** > **Partner domain TLS** > **View**.
3. Select **Add a domain**.
4. Enter a valid domain name. You can also exclude subdomains by selecting **Add exclude**.
5. (Optional) Add an optional note to describe your rule(s).
6. Select **Save**.
+
To edit a partner domain, select the three dots > **Edit**.
-To delete a partner domain, select the three dots > **Delete**.
\ No newline at end of file
+To delete a partner domain, select the three dots > **Delete**.
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Write** permission.
+
+
+1. Add the partner domain with [`cf email-security sending-domain-restrictions create`](/cloudflare-one/email-security/cli-commands/#cf-email-security-sending-domain-restrictions-create):
+
+ ```sh
+ cf email-security sending-domain-restrictions create \
+ --domain "partner.example.com" \
+ --exclude "legacy.partner.example.com" \
+ --comments "Require TLS from partner"
+ ```
+
+ - `--domain`: The domain that must send mail over TLS.
+ - `--exclude`: Subdomains to exclude from the TLS requirement. Required. To exclude no subdomains, pass `--exclude` without a value.
+ - `--comments`: (Optional) A note that describes the rule.
+
+2. Note the `id` in the output. You need it to edit or delete the partner domain.
+
+
+To edit a partner domain, run [`cf email-security sending-domain-restrictions edit`](/cloudflare-one/email-security/cli-commands/#cf-email-security-sending-domain-restrictions-edit) with the options you want to change. To delete a partner domain, run [`cf email-security sending-domain-restrictions delete`](/cloudflare-one/email-security/cli-commands/#cf-email-security-sending-domain-restrictions-delete). To find the ID, run `cf email-security sending-domain-restrictions list`.
+
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/submissions/index.mdx b/src/content/docs/cloudflare-one/email-security/submissions/index.mdx
index 14e7f12e83a..3f6955da49a 100644
--- a/src/content/docs/cloudflare-one/email-security/submissions/index.mdx
+++ b/src/content/docs/cloudflare-one/email-security/submissions/index.mdx
@@ -8,12 +8,18 @@ sidebar:
order: 13
---
+import { Steps, TabItem, Tabs } from "~/components";
+
Submitting messages allows you to choose the disposition of your messages if the disposition is incorrect. This helps improve Email security's detection accuracy and ensures proper handling of email threats.
## Submit messages for review
+
+
+
To submit a message for review:
+
1. In [Cloudflare One](https://one.dash.cloudflare.com/), go to **Email security** and select **Investigation**.
2. On the **Investigation** page, under **Your matching messages**, select the message you want to reclassify.
3. Select the three dots, then select **Submit for review**.
@@ -24,11 +30,47 @@ To submit a message for review:
- **Bulk**: Traffic associated with [Graymail](https://en.wikipedia.org/wiki/Graymail_%28email%29), that falls in between the definitions of `SPAM` and `SUSPICIOUS`. For example, a marketing email that intentionally obscures its unsubscribe link.
- **Clean**: Traffic not associated with any phishing campaigns.
5. Select **Save**.
+
To submit messages in bulk, select **Select all messages** > **Action** > **Request submissions**.
To release messages in bulk, select **Select all messages** > **Action** > **Release**.
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Write** permission.
+
+
+1. [Search for the message](/cloudflare-one/email-security/investigation/search-email/#screen-criteria) with `cf email-security investigate list` and note its `alert_id`.
+
+2. Create a JSON file that lists the messages to reclassify and the new disposition for each:
+
+ ```json title="submissions.json"
+ [
+ {
+ "alert_id": "",
+ "expected_disposition": "SPAM"
+ }
+ ]
+ ```
+
+ Set `expected_disposition` to the **New disposition**: `MALICIOUS`, `SUSPICIOUS`, `SPOOF`, `SPAM`, `BULK`, or `NONE` for **Clean**.
+
+3. Submit the messages with [`cf email-security submissions create`](/cloudflare-one/email-security/cli-commands/#cf-email-security-submissions-create):
+
+ ```sh
+ cf email-security submissions create \
+ --type reclassification \
+ --messages @submissions.json
+ ```
+
+
+To release quarantined messages, run `cf email-security investigate release --ids `.
+
+
+
+
## Upload EML files
Email security classifies certain emails as "Clean". If you disagree with the disposition, you can upload an EML file and reclassify the email.
@@ -43,13 +85,32 @@ On the **Investigation** page:
## View submissions
+
+
+
Once you have submitted your messages, you can access those on **Submissions**.
To view submissions:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Select **Email security** > **Submissions**.
3. Choose from the following submission types:
- [**Team submissions**](/cloudflare-one/email-security/submissions/team-submissions/): View emails your security team submitted for submissions.
- [**User submissions**](/cloudflare-one/email-security/submissions/user-submissions/): View emails your users submitted for submissions.
- - [**Invalid submissions**](/cloudflare-one/email-security/submissions/invalid-submissions/): View submissions that could not be processed.
\ No newline at end of file
+ - [**Invalid submissions**](/cloudflare-one/email-security/submissions/invalid-submissions/): View submissions that could not be processed.
+
+
+
+
+
+To list your submissions, run [`cf email-security submissions list`](/cloudflare-one/email-security/cli-commands/#cf-email-security-submissions-list):
+
+```sh
+cf email-security submissions list
+```
+
+To list only team or user submissions, add `--type TEAM` or `--type USER`. `cf` does not list invalid submissions. To view invalid submissions, use the dashboard.
+
+
+
diff --git a/src/content/docs/cloudflare-one/email-security/submissions/team-submissions.mdx b/src/content/docs/cloudflare-one/email-security/submissions/team-submissions.mdx
index 0520ccc6a30..ca71d08c41a 100644
--- a/src/content/docs/cloudflare-one/email-security/submissions/team-submissions.mdx
+++ b/src/content/docs/cloudflare-one/email-security/submissions/team-submissions.mdx
@@ -8,15 +8,46 @@ sidebar:
order: 1
---
+import { Steps, TabItem, Tabs } from "~/components";
+
Team submissions are the emails your security team submitted for submission. All team submissions receive a human review by Cloudflare.
## View team submissions
+
+
+
To view team submissions:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Select **Email security** > **Submissions**.
3. Select **Team submissions**.
+
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Read** permission.
+
+To list team submissions, run [`cf email-security submissions list`](/cloudflare-one/email-security/cli-commands/#cf-email-security-submissions-list) with `--type TEAM`:
+
+```sh
+cf email-security submissions list --type TEAM --start 2026-01-01T00:00:00Z
+```
+
+To filter the list, add any of the following options:
+
+- `--start` and `--end`: **Date Range**, as ISO 8601 timestamps in UTC. Defaults to the last 30 days.
+- `--original-disposition`: **Original disposition**.
+- `--requested-disposition`: **Submitted as**.
+- `--outcome-disposition`: **Final disposition**.
+- `--status escalated`: Submissions that have been escalated.
+
+Dispositions use the values `MALICIOUS`, `SUSPICIOUS`, `SPOOF`, `SPAM`, `BULK`, and `NONE` (clean).
+
+
+
## Filter team submissions
diff --git a/src/content/docs/cloudflare-one/email-security/submissions/user-submissions.mdx b/src/content/docs/cloudflare-one/email-security/submissions/user-submissions.mdx
index f15d47d44db..7602ebc3182 100644
--- a/src/content/docs/cloudflare-one/email-security/submissions/user-submissions.mdx
+++ b/src/content/docs/cloudflare-one/email-security/submissions/user-submissions.mdx
@@ -8,6 +8,8 @@ sidebar:
order: 2
---
+import { Steps, TabItem, Tabs } from "~/components";
+
User submissions are the emails your users submitted for submission. User submissions help enhance our detection model, but can be escalated for human review.
Any email that is reported as [phish](/cloudflare-one/email-security/settings/submission-settings/#reclassify-an-email) will be displayed under **User submissions**.
@@ -18,11 +20,39 @@ Any email that is reported as [phish](/cloudflare-one/email-security/settings/su
## View user submissions
+
+
+
To view user submissions:
+
1. Log in to [Cloudflare One](https://one.dash.cloudflare.com/).
2. Select **Email security** > **Submissions**.
3. Select **User submissions**.
+
+
+
+
+
+Install the [Cloudflare CLI (`cf`)](/cf/get-started/) and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Cloud Email Security: Read** permission.
+
+To list user submissions, run [`cf email-security submissions list`](/cloudflare-one/email-security/cli-commands/#cf-email-security-submissions-list) with `--type USER`:
+
+```sh
+cf email-security submissions list --type USER --start 2026-01-01T00:00:00Z
+```
+
+To filter the list, add any of the following options:
+
+- `--start` and `--end`: **Date Range**, as ISO 8601 timestamps in UTC. Defaults to the last 30 days.
+- `--original-disposition`: **Original disposition**.
+- `--requested-disposition`: **Submitted as**.
+- `--escalated-from-user true`: Submissions that users escalated for review.
+
+Dispositions use the values `MALICIOUS`, `SUSPICIOUS`, `SPOOF`, `SPAM`, `BULK`, and `NONE` (clean).
+
+
+
## Filter user submissions
diff --git a/src/content/docs/cloudflare-one/integrations/identity-providers/cli-commands.mdx b/src/content/docs/cloudflare-one/integrations/identity-providers/cli-commands.mdx
new file mode 100644
index 00000000000..0855b773dbb
--- /dev/null
+++ b/src/content/docs/cloudflare-one/integrations/identity-providers/cli-commands.mdx
@@ -0,0 +1,56 @@
+---
+pcx_content_type: reference
+title: Identity provider CLI commands
+description: Manage identity provider integrations, SCIM resources, IdP federation grants, and SAML encryption certificates from the command line using the Cloudflare CLI (cf).
+sidebar:
+ order: 101
+products:
+ - cloudflare-one
+---
+
+import { CfCommand, CfNamespace } from "~/components";
+
+Use [Cloudflare CLI (`cf`)](/cf/) `cf zero-trust identity-providers` commands to add and configure identity providers (IdPs), review and clean up SCIM-provisioned users and groups, share an IdP across accounts with IdP federation, and create SAML encryption certificates from the command line. To get started, install `cf` and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Access: Organizations, Identity Providers, and Groups Read** permission (or **Access: Organizations, Identity Providers, and Groups Write** to make changes).
+
+:::note
+`cf zero-trust identity-providers` commands operate on remote Cloudflare resources only (`--local` is not supported).
+
+- `create` and `update` only accept `--body`. Pass the identity provider as JSON, either inline or from a file with `--body @idp.json`. The JSON uses the same `name`, `type`, `config`, and `scim_config` fields as the [Identity Providers API](/api/resources/zero_trust/subresources/identity_providers/methods/create/). `config` fields depend on `type`. For the fields of each IdP, refer to the IdP-specific pages, for example [Generic OIDC](/cloudflare-one/integrations/identity-providers/generic-oidc/) or [Okta](/cloudflare-one/integrations/identity-providers/okta/).
+- `update` replaces the whole identity provider. If you omit a `config` field, it is removed. To change a setting, save the output of `get` to a file, edit it, and pass the file to `update`. `get` does not return secrets such as `client_secret`. Access keeps the stored secret if you omit it. If you change where Access sends the secret, for example the `token_url` of an OIDC IdP, you must pass the secret again.
+- When you turn on SCIM with `update`, the output includes the SCIM `secret`. Copy it immediately. `get` does not return it again.
+- `create` and `update` do not test the connection to your IdP. To test an IdP, use the dashboard.
+- Pass `-f` (`--force`) to `delete` commands to skip the confirmation prompt in scripts, CI, or coding agents. You cannot delete an IdP that has an [IdP federation grant](/cloudflare-one/integrations/identity-providers/idp-federation/). Delete the grant first.
+
+:::
+
+## `zero-trust identity-providers`
+
+Add, inspect, update, and delete the [identity providers](/cloudflare-one/integrations/identity-providers/) that users can sign in with. To list only IdPs with SCIM turned on, pass `--scim-enabled true` to `list`.
+
+
+
+
+
+
+
+
+
+
+
+## `zero-trust identity-providers scim`
+
+List, inspect, and delete the [SCIM-provisioned users and groups](/cloudflare-one/team-and-resources/users/scim-population-viewer/) of an IdP. Deleting a SCIM resource removes it from the IdP's SCIM population in Cloudflare. It does not delete the user or group in your IdP.
+
+
+
+## `zero-trust identity-providers federation-grants`
+
+Create and manage [IdP federation](/cloudflare-one/integrations/identity-providers/idp-federation/) grants, which permit an IdP to be shared with other accounts in your Cloudflare Organization.
+
+
+
+## `zero-trust identity-providers saml-certificate`
+
+Create the certificate that a SAML IdP uses to [encrypt SAML assertions](/cloudflare-one/integrations/identity-providers/generic-saml/#encrypt-saml-assertions). If the IdP already has a certificate, the command returns the existing certificate set. To rotate the certificate, use [`cf zero-trust access saml-encryption-certificates rotate`](/cloudflare-one/access-controls/cli-commands/#cf-zero-trust-access-saml-encryption-certificates-rotate).
+
+
diff --git a/src/content/docs/cloudflare-one/team-and-resources/devices/cli-commands.mdx b/src/content/docs/cloudflare-one/team-and-resources/devices/cli-commands.mdx
new file mode 100644
index 00000000000..ef295d89c58
--- /dev/null
+++ b/src/content/docs/cloudflare-one/team-and-resources/devices/cli-commands.mdx
@@ -0,0 +1,102 @@
+---
+pcx_content_type: reference
+title: Device CLI commands
+description: Manage devices, device registrations, posture checks, managed networks, device IP profiles, client version assignments, and global device settings from the command line using the Cloudflare CLI (cf).
+sidebar:
+ order: 10
+products:
+ - cloudflare-one
+---
+
+import { CfCommand, CfNamespace } from "~/components";
+
+Use [Cloudflare CLI (`cf`)](/cf/) `cf zero-trust devices` commands to manage enrolled devices and device registrations, create device posture checks and service provider integrations, configure managed networks, device IP profiles, and client version assignments, and review global device client settings from the command line. To get started, install `cf` and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Zero Trust Read** permission (or **Zero Trust Write** to make changes).
+
+:::note
+`cf zero-trust devices` commands operate on remote Cloudflare resources only (`--local` is not supported).
+
+- `cf` does not yet support [device profiles](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/device-profiles/), [Split Tunnels](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/route-traffic/split-tunnels/), [Local Domain Fallback](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/route-traffic/local-domains/), or revoking and unrevoking device registrations. Use the dashboard or the API for these tasks.
+- `posture rules update` and `networks update` replace the whole object. Pass the current `--name`, `--type`, `--match`, and all `--input-*` or `--network-config-*` values along with your changes. Values that you omit are removed.
+- `settings update`, `ip-profiles update`, `deployment-groups update`, and `posture integrations update` only change the values that you pass. `--version-config` and `--policy-ids` on `deployment-groups update` replace the whole array.
+- `devices list` and `registrations list` return one page of results. Pagination metadata, including the `cursor` for the next page, is written to standard error as a `result_info:` line. For details, refer to [Paginate results](/cf/get-started/resources/#paginate-results). `registrations list` only returns active registrations unless you pass `--status all` or `--status revoked`.
+- Pass `-f` (`--force`) to `delete` and `bulk-delete` commands to skip the confirmation prompt in scripts, CI, or coding agents.
+
+:::
+
+## `zero-trust devices`
+
+List, inspect, tag, and delete the physical devices enrolled in your Zero Trust organization. To include the [device profile](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/device-profiles/) of each device's last active registration, pass `--include last_seen_registration.policy` to `devices list`. Deleting a device also deletes all of its [device registrations](/cloudflare-one/team-and-resources/devices/device-registration/).
+
+
+
+
+
+
+
+
+
+## `zero-trust devices registrations`
+
+List, inspect, and delete [device registrations](/cloudflare-one/team-and-resources/devices/device-registration/), and retrieve [admin override codes](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/settings/#allow-admin-override-codes) for a registration. Each registration includes its `virtual_ipv4` and `virtual_ipv6` [device IPs](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/device-ips/) and, when revoked, a `revoked_at` timestamp.
+
+
+
+## `zero-trust devices posture rules`
+
+Create and manage [Cloudflare One Client checks](/cloudflare-one/reusable-components/posture-checks/client-checks/) and [service provider checks](/cloudflare-one/integrations/service-providers/). Set the check with `--type`, the operating systems it runs on with `--match` (for example, `--match '[{"platform":"windows"}]'`), and the check attributes with the `--input-*` options. `--schedule` sets the [polling frequency](/cloudflare-one/reusable-components/posture-checks/#polling-frequency) and `--expiration` sets how long a posture result stays [valid](/cloudflare-one/reusable-components/posture-checks/#expiration), for example `1h`.
+
+
+
+## `zero-trust devices posture integrations`
+
+Create and manage [service provider integrations](/cloudflare-one/integrations/service-providers/) that send device posture signals to Cloudflare. `posture integrations create` tests the credentials against the provider's API and fails if the provider cannot be reached or the credentials are not valid.
+
+
+
+## `zero-trust devices networks`
+
+Create and manage [managed networks](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/managed-networks/) that the Cloudflare One Client detects with a TLS endpoint.
+
+
+
+## `zero-trust devices ip-profiles`
+
+Create and manage [device IP profiles](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/device-ips/#create-an-ip-profile) that assign IPv4 subnets to devices based on user identity. Write the rules as a [wirefilter expression](/cloudflare-one/traffic-controls/expression-syntax/) in `--match`, for example `--match 'identity.email == "user@example.com"'`. To create the subnets, use [`cf network subnets warp create`](#cf-network-subnets-warp-create).
+
+
+
+## `network subnets warp`
+
+Create and manage the [device IP subnets](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/device-ips/) that device IP profiles assign addresses from.
+
+
+
+## `zero-trust devices deployment-groups`
+
+Create and manage [deployment groups](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/deployment/mdm-deployment/client-version-assignments/) that assign a target Cloudflare One Client version to devices in one or more device profiles.
+
+
+
+## `zero-trust devices client-versions`
+
+List the Cloudflare One Client versions and target environments that you can assign in a deployment group. `client-versions list` requires `--target-environment` (`windows` or `macos`) and `--release-track` (`ga` or `beta`).
+
+
+
+## `zero-trust devices override-codes`
+
+Generate device-specific and account-wide [uninstall codes](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/settings/uninstall-protection/#generate-an-uninstall-code) for devices with uninstall protection turned on.
+
+
+
+## `zero-trust devices settings`
+
+Review and change [global device client settings](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/settings/#global-device-client-settings), such as the Gateway proxy, root certificate installation, unique device IPs, the admin override code timeout, and [External Emergency Disconnect](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/settings/emergency-disconnect/#set-up-external-emergency-disconnect). These settings apply to every device in your account. Run `settings get` to review the current values before you change them.
+
+
+
+## `zero-trust devices emergency-disconnect`
+
+Check and change the [Disconnect the Cloudflare One Client on all devices](/cloudflare-one/team-and-resources/devices/cloudflare-one-client/configure/settings/#disconnect-the-cloudflare-one-client-on-all-devices) setting. `emergency-disconnect set --disconnect true` disconnects every Windows, macOS, and Linux device in your organization and requires the Super Administrator role.
+
+
diff --git a/src/content/docs/cloudflare-one/team-and-resources/users/cli-commands.mdx b/src/content/docs/cloudflare-one/team-and-resources/users/cli-commands.mdx
new file mode 100644
index 00000000000..59e97884a05
--- /dev/null
+++ b/src/content/docs/cloudflare-one/team-and-resources/users/cli-commands.mdx
@@ -0,0 +1,64 @@
+---
+pcx_content_type: reference
+title: User CLI commands
+description: Review user risk scores, manage risk behaviors and risk score integrations, and remove user authenticators from the command line using the Cloudflare CLI (cf).
+sidebar:
+ order: 10
+products:
+ - cloudflare-one
+---
+
+import { CfCommand, CfNamespace } from "~/components";
+
+Use [Cloudflare CLI (`cf`)](/cf/) `cf zero-trust risk-scoring` and `cf zero-trust users` commands to review [user risk scores](/cloudflare-one/team-and-resources/users/risk-score/), configure risk behaviors, send risk scores to Okta, and remove a user's passkeys or MFA authenticators from the command line. To get started, install `cf` and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Zero Trust Read** permission (or **Zero Trust Write** to make changes). Commands that return user risk scores, such as `risk-scoring get` and `risk-scoring summary get`, require **Zero Trust: PII Read**. `cf zero-trust users` commands require **Access: Users Write**.
+
+To list users, review their sessions and last seen identity, or revoke their sessions, use [`cf zero-trust access users`](/cloudflare-one/access-controls/cli-commands/#zero-trust-access-users).
+
+:::note
+`cf zero-trust risk-scoring` and `cf zero-trust users` commands operate on remote Cloudflare resources only (`--local` is not supported).
+
+- Risk behaviors are account-wide settings. `behaviours update` and `behaviours single update` change how Cloudflare One scores every user in your account.
+- `behaviours single update` requires `--enabled`. Pass the behavior's current `enabled` value if you only want to change its risk level.
+- Commands that take a user ID use the user's `id` from `cf zero-trust access users list` or `cf zero-trust risk-scoring summary get`.
+- `cf` does not yet support removing users from seats. Use the dashboard or the API.
+- Pass `-f` (`--force`) to `reset` and `delete` commands to skip the confirmation prompt in scripts, CI, or coding agents.
+
+:::
+
+## `zero-trust risk-scoring`
+
+Get a user's [risk score](/cloudflare-one/team-and-resources/users/risk-score/#user-risk-scoring) and the risk events behind it, or [reset a user's risk score](/cloudflare-one/team-and-resources/users/risk-score/#clear-a-users-risk-score).
+
+
+
+
+
+## `zero-trust risk-scoring summary`
+
+List the users with a risk score, with their highest risk level and number of risk events.
+
+
+
+## `zero-trust risk-scoring event-clusters`
+
+List a user's risk events grouped by day and behavior.
+
+
+
+## `zero-trust risk-scoring behaviours`
+
+Turn [risk behaviors](/cloudflare-one/team-and-resources/users/risk-score/#manage-risk-behaviors) on or off and change their risk levels. Behavior IDs, such as `imp_travel` or `high_dlp`, are the keys of the `behaviors` object in the output of `behaviours get`.
+
+
+
+## `zero-trust risk-scoring integrations`
+
+Create and manage integrations that [send risk scores to Okta](/cloudflare-one/team-and-resources/users/risk-score/#send-risk-score-to-okta).
+
+
+
+## `zero-trust users`
+
+Remove a user's registered [passkeys](/cloudflare-one/integrations/identity-providers/passkeys/#remove-a-users-passkey) and [independent MFA](/cloudflare-one/access-controls/access-settings/independent-mfa/) authenticators. To find authenticator IDs, run `cf zero-trust access users last-seen-identity get ` and review the `passkeys` and `mfa_authenticators` arrays.
+
+
diff --git a/src/content/docs/cloudflare-one/traffic-controls/cli-commands.mdx b/src/content/docs/cloudflare-one/traffic-controls/cli-commands.mdx
new file mode 100644
index 00000000000..9b0524c269a
--- /dev/null
+++ b/src/content/docs/cloudflare-one/traffic-controls/cli-commands.mdx
@@ -0,0 +1,101 @@
+---
+pcx_content_type: reference
+title: Gateway CLI commands
+description: Manage Gateway traffic policies, lists, DNS locations, proxy endpoints, certificates, and settings from the command line using the Cloudflare CLI (cf).
+sidebar:
+ order: 17
+products:
+ - cloudflare-one
+---
+
+import { CfCommand, CfNamespace } from "~/components";
+
+Use [Cloudflare CLI (`cf`)](/cf/) `cf zero-trust gateway` commands to create and manage Gateway DNS, network, HTTP, egress, and resolver policies, lists, DNS locations, proxy endpoints, PAC files, and certificates, and to review your Gateway settings from the command line. To get started, install `cf` and sign in with `cf auth login`, or set `CLOUDFLARE_API_TOKEN` to an API token with **Zero Trust Read** permission (or **Zero Trust Write** to make changes).
+
+:::note
+`cf zero-trust gateway` commands operate on remote Cloudflare resources only (`--local` is not supported).
+
+- `rules create` creates policies with `--enabled false` by default. Unlike the dashboard, which turns on new policies, you must pass `--enabled true` for the policy to take effect.
+- `rules update` replaces the whole policy. Pass the policy's current `--name`, `--action`, `--filters`, `--traffic`, `--identity`, `--device-posture`, `--enabled`, and rule settings along with your changes. Rule settings that you omit are removed.
+- Rule settings such as block page, isolation, egress, and resolver options are individual `--rule-settings-*` flags. To pass settings that do not have a flag, use `--body` with the full request body as JSON, for example `--body @policy.json`.
+- `lists update` replaces all list items when you pass `--items`. To add or remove individual items, use `lists edit` with `--append` and `--remove`.
+- `proxy-endpoints create` only exposes `--kind` as a flag. Pass the endpoint name and source IPs with `--body`.
+- `configurations update` and `logging update` replace the whole configuration. To change individual settings, use `configurations edit`, which replaces only the settings groups that you pass, such as `block_page` or `browser_isolation`. Pass every value in a group that you want to keep, and run `configurations get` or `logging get` first to review the current values.
+- If a flag value starts with `--`, pass it with an equals sign, for example `--settings-block-page-footer-text="--footer--"`.
+- Pass `-f` (`--force`) to `delete` commands to skip the confirmation prompt in scripts, CI, or coding agents.
+
+:::
+
+## `zero-trust gateway rules`
+
+Create and manage Gateway [DNS](/cloudflare-one/traffic-controls/dns-policies/), [network](/cloudflare-one/traffic-controls/network-policies/), [HTTP](/cloudflare-one/traffic-controls/http-policies/), [egress](/cloudflare-one/traffic-controls/egress-policies/), and [resolver](/cloudflare-one/traffic-controls/resolver-policies/) policies. Set the policy type with `--filters` (`dns`, `l4`, `http`, `egress`, or `dns_resolver`) and write the conditions as [wirefilter expressions](/cloudflare-one/traffic-controls/expression-syntax/) in `--traffic`, `--identity`, and `--device-posture`. To find policies, use `rules list` with `--search` or `--filter`, for example `--filter filters:dns`.
+
+
+
+## `zero-trust gateway lists`
+
+Create and manage [lists](/cloudflare-one/reusable-components/lists/) of domains, URLs, IP addresses, emails, serial numbers, and other values that you can reference in policies as `$`. Pass list items as a JSON array, for example `--items '[{"value": "example.com"}]'` or `--items @items.json`.
+
+
+
+## `zero-trust gateway locations`
+
+Create and manage [DNS locations](/cloudflare-one/traffic-controls/resolver-endpoints/) for networks and devices that send DNS queries to Gateway. `locations update` requires `--name`, and resets `--ecs-support` and `--dns64-enabled` to `false` and `--max-ttl-mode` to `inherit` if you omit them. Endpoint settings that you omit are kept.
+
+
+
+## `zero-trust gateway dns-destination-ips`
+
+List the [DNS resolver IP](/cloudflare-one/traffic-controls/resolver-endpoints/dns-resolver-ips/) pairs that you can assign to a DNS location with `--dns-destination-ips-id`.
+
+
+
+## `zero-trust gateway proxy-endpoints`
+
+Create and manage [proxy endpoints](/cloudflare-one/traffic-controls/proxy-endpoints/) that forward browser traffic to Gateway.
+
+
+
+## `zero-trust gateway pacfiles`
+
+Create and manage [PAC files](/cloudflare-one/traffic-controls/proxy-endpoints/#create-a-pac-file) hosted by Cloudflare. `--contents` accepts the PAC file contents as a string or as `@path/to/file.pac`. `pacfiles update` requires `--contents`.
+
+
+
+## `zero-trust gateway certificates`
+
+Generate and manage [Cloudflare-managed root certificates](/cloudflare-one/team-and-resources/devices/user-side-certificates/) used for TLS decryption. New certificates are inactive until you run `certificates activate`. To save a certificate in PEM format, run `cf zero-trust gateway certificates get | jq -r .certificate > certificate.pem`.
+
+
+
+## `zero-trust gateway configurations`
+
+Get and change account-level Gateway settings, such as [TLS decryption](/cloudflare-one/traffic-controls/http-policies/tls-decryption/), the [block page](/cloudflare-one/reusable-components/custom-pages/gateway-block-page/), [anti-virus scanning](/cloudflare-one/traffic-controls/http-policies/antivirus-scanning/), [Browser Isolation](/cloudflare-one/remote-browser-isolation/setup/), and [protocol detection](/cloudflare-one/traffic-controls/network-policies/protocol-detection/). These settings apply to your whole account. Use `--dry-run` to review the request before you apply it.
+
+
+
+## `zero-trust gateway logging`
+
+Get and change [Gateway activity logging](/cloudflare-one/insights/logs/dashboard-logs/gateway-logs/) settings, including which DNS, network, and HTTP events to log and whether to redact personally identifiable information (PII).
+
+
+
+## `zero-trust gateway categories`
+
+List the [domain categories](/cloudflare-one/traffic-controls/domain-categories/) and their IDs. Use the IDs in `dns.content_category`, `dns.security_category`, `http.request.uri.content_category`, and `http.request.uri.security_category` expressions. Subcategories are nested under each category in the `subcategories` field.
+
+
+
+## `zero-trust gateway app-types`
+
+List the [applications and application types](/cloudflare-one/traffic-controls/application-app-types/) and their IDs. Entries with an `application_type_id` field are applications (use their IDs in `app.ids` expressions). Entries without it are application types (use their IDs in `app.type.ids` expressions).
+
+
+
+## Zero Trust account
+
+Get information about the Zero Trust account for your Cloudflare account, or create a Zero Trust account for an existing Cloudflare account.
+
+
+
+