Skip to content

[Cloudflare One] Add Cloudflare CLI (cf) documentation - #36018

Closed
asamborski wants to merge 1 commit into
cloudflare:productionfrom
asamborski:asamborski/zt-cf-cli
Closed

asamborski wants to merge 1 commit into
cloudflare:productionfrom
asamborski:asamborski/zt-cf-cli

Conversation

@asamborski

Copy link
Copy Markdown
Collaborator

Summary

Adds Cloudflare CLI (cf) instructions across Cloudflare One alongside existing dashboard instructions. Readers and coding agents can now perform the same setup tasks with cf zero-trust and cf email-security commands.

Formatting follows the conventions from existing cf documentation PRs (#35547, #35790, #35881, #35976): a Cloudflare CLI (cf) tab placed directly after Dashboard in <Tabs syncKey="dashPlusAPI"> (before API and Terraform where those exist), <Steps> for procedures, and per-area reference pages generated with <CfNamespace>.

DEX (#35976), DLP (#35997), Access common policies (#35985), Tunnel (#36014), Mesh (#36015), and Workers VPC (#36016) are covered by separate PRs and are not touched here. Cloudflare One networking pages (Tunnel, Mesh, routes, and virtual networks) are left to those PRs.

cf version bump

New reference pages

Page Namespaces
access-controls/cli-commands.mdx zero-trust access *, local cf access commands
traffic-controls/cli-commands.mdx zero-trust gateway *
team-and-resources/devices/cli-commands.mdx zero-trust devices *, network subnets warp
team-and-resources/users/cli-commands.mdx zero-trust users, zero-trust risk-scoring
integrations/identity-providers/cli-commands.mdx zero-trust identity-providers *
email-security/cli-commands.mdx email-security *
cloud-and-saas-findings/cli-commands.mdx zero-trust casb *
cloud-workload-security/cli-commands.mdx zero-trust cws *

Task pages

  • Access: self-hosted, SaaS, infrastructure, and private network applications; reusable policies; rule groups; service tokens; tags; mTLS certificates; infrastructure targets; custom pages; session revocation.
  • Identity: the "add the identity provider in Cloudflare One" step on each IdP page (with the provider-specific type and config), SCIM, IdP federation, service provider integrations, users, and user risk scoring.
  • Gateway: DNS, HTTP, network, egress, and resolver policies (including common policy examples); lists; DNS locations; proxy endpoints; PAC files; certificates; TLS decryption and block page settings; browser isolation; related tutorials.
  • Devices: device posture checks, managed networks, device IP profiles, client version assignments, emergency disconnect, uninstall protection, user-side certificates, device registrations, and dashboard logs.
  • Email security, CASB, Cloud Workload Security: allow policies, blocked senders, trusted domains, link actions, impersonation registry, investigation, submissions, CASB findings, policies, custom finding types, webhooks, and CWS policy configuration.

Also fixes existing examples found to be invalid while testing (for example the PingOne OIDC type value, several Gateway expressions, and quoting in an egress policy API example).

Verification

  • Ran documented commands with cf@1.0.0-rc.7 against a live Zero Trust account. Created every test object under a dedicated name prefix, then deleted it. Settings that apply account-wide (for example Gateway global settings, device client settings, organization settings) and actions on real users, devices, or messages were validated with --dry-run.
  • Ran a script to confirm every cli-commands/#cf-… link resolves to a rendered, non-hidden rc.7 command, every cf tab is in a dashPlusAPI tab group directly after Dashboard, and every used component is imported.
  • Repo validation: pnpm run build, pnpm run check:astro, and pnpm run lint:nimbus all passed locally.

Not covered (no cf support in rc.7)

  • Device profiles, Split Tunnels, and Local Domain Fallback (/devices/policy/*). These existed in rc.4 as devices profiles and were removed in rc.7.
  • Seat management, device revoke/unrevoke, Logpush job creation (logpush account-jobs create fails in rc.7), Gateway IDS and ICMP proxy toggles, App Library review and custom apps, email security retro scan / detection settings / outbound DLP, and Clientless Web Isolation permissions.

cf issues found during verification

  • zero-trust gateway rules create defaults to enabled: false (unlike the dashboard); docs pass --enabled true. rules update, locations update, devices networks update, devices posture rules update are full replacements; docs call this out.
  • devices posture rules update drops input.operating_system.
  • access saml-encryption-certificates get-pem returns empty output.
  • email-security … edit --expires-at null sends the string "null".
  • email-security … bulk-apply requires all of --posts, --patches, --puts, and --deletes.

Follow-ups

  • Remaining Access settings (CORS, cookie settings, Managed OAuth, App Launcher customization).

Documentation checklist

  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.

@asamborski

Copy link
Copy Markdown
Collaborator Author

Superseded by a split into smaller PRs, one per product area. Start with the foundation PR #36050 (cf 1.0.0-rc.7 bump, test fix, and CLI reference pages). The area PRs are stacked on it:

@asamborski asamborski closed this Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant