Skip to content

[Email Security] Add Cloudflare CLI (cf) documentation - #36055

Draft
asamborski wants to merge 2 commits into
cloudflare:productionfrom
asamborski:asamborski/cf-zt-email
Draft

asamborski wants to merge 2 commits into
cloudflare:productionfrom
asamborski:asamborski/cf-zt-email

Conversation

@asamborski

Copy link
Copy Markdown
Collaborator

Summary

Stacked on #36050 (bumps cf to 1.0.0-rc.7 and adds the CLI command reference pages this PR links to). Only the last commit belongs to this PR. Once #36050 merges, this PR's diff shrinks to that commit.

Adds cf email-security instructions alongside the dashboard steps.

Formatting follows the conventions from existing cf documentation PRs (#35547, #35790, #35881, #35976): a Cloudflare CLI (cf) tab directly after Dashboard in <Tabs syncKey="dashPlusAPI"> (before API and Terraform where they exist), <Steps> for procedures, and links to the area's <CfNamespace> reference page.

  • Policies: allow policies, blocked senders, trusted domains, blocked content, and partner domain TLS.
  • Detection settings: link actions (URL ignore patterns) and the impersonation registry.
  • Domains, investigation, and submissions: managing domains, searching and acting on messages, PhishGuard, and team and user submissions.

Verification

  • Ran documented commands with cf@1.0.0-rc.7 against a live Zero Trust account. Every test object was created under a dedicated name prefix and deleted afterward. The test account does not have Email security onboarded, so all commands were validated with --dry-run. Message actions (move, release, bulk actions) should be spot-checked on an onboarded account before merge.
  • Checked that every cli-commands/#cf-… link resolves to a rendered, non-hidden rc.7 command and that every cf tab sits directly after Dashboard.
  • pnpm run build, pnpm run check:astro, pnpm run lint:nimbus, and pnpm run test pass locally.

Not covered (no cf support in rc.7)

  • Reclassifying messages (use submissions create), retro scan, directories, auto-moves, detection settings, link action settings, and outbound DLP.

cf issues found during verification

  • … edit --expires-at null sends the string "null" instead of JSON null. The reference page uses --body '{"expires_at": null}'.
  • Every … bulk-apply command requires --posts, --patches, --puts, and --deletes; pass '[]' for unused lists.
  • bulk-actions create defaults to detections_only: true.

Documentation checklist

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