Repository navigation
[Cloudflare One] Add Cloudflare CLI (cf) documentation - #36018
Closed
asamborski wants to merge 1 commit into
Closed
asamborski wants to merge 1 commit into
asamborski wants to merge 1 commit into
Conversation
Collaborator
Author
|
Superseded by a split into smaller PRs, one per product area. Start with the foundation PR #36050 (
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Cloudflare CLI (
cf) instructions across Cloudflare One alongside existing dashboard instructions. Readers and coding agents can now perform the same setup tasks withcf zero-trustandcf email-securitycommands.Formatting follows the conventions from existing
cfdocumentation PRs (#35547, #35790, #35881, #35976): aCloudflare CLI (cf)tab placed directly afterDashboardin<Tabs syncKey="dashPlusAPI">(beforeAPIandTerraformwhere 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.
cfversion bumpcfdev dependency from1.0.0-rc.4to1.0.0-rc.7(latest) so<CfCommand>/<CfNamespace>render the commands users install. rc.7 renamed several Zero Trust commands (for exampleaccess groups→access rule-groups,access certificates→access mtls-certificates,access keys→access signing-keys,organizations→organization), so documenting against rc.4 would show commands that no longer exist. Lockfile changes are limited tocfand its dependency tree. All 16 existing<CfCommand>/<CfNamespace>references elsewhere in the repo still resolve under rc.7.New reference pages
access-controls/cli-commands.mdxzero-trust access *, localcf accesscommandstraffic-controls/cli-commands.mdxzero-trust gateway *team-and-resources/devices/cli-commands.mdxzero-trust devices *,network subnets warpteam-and-resources/users/cli-commands.mdxzero-trust users,zero-trust risk-scoringintegrations/identity-providers/cli-commands.mdxzero-trust identity-providers *email-security/cli-commands.mdxemail-security *cloud-and-saas-findings/cli-commands.mdxzero-trust casb *cloud-workload-security/cli-commands.mdxzero-trust cws *Task pages
typeandconfig), SCIM, IdP federation, service provider integrations, users, and user risk scoring.Also fixes existing examples found to be invalid while testing (for example the PingOne OIDC
typevalue, several Gateway expressions, and quoting in an egress policy API example).Verification
cf@1.0.0-rc.7against 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.cli-commands/#cf-…link resolves to a rendered, non-hidden rc.7 command, everycftab is in adashPlusAPItab group directly afterDashboard, and every used component is imported.pnpm run build,pnpm run check:astro, andpnpm run lint:nimbusall passed locally.Not covered (no
cfsupport in rc.7)/devices/policy/*). These existed in rc.4 asdevices profilesand were removed in rc.7.logpush account-jobs createfails 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.cfissues found during verificationzero-trust gateway rules createdefaults toenabled: false(unlike the dashboard); docs pass--enabled true.rules update,locations update,devices networks update,devices posture rules updateare full replacements; docs call this out.devices posture rules updatedropsinput.operating_system.access saml-encryption-certificates get-pemreturns empty output.email-security … edit --expires-at nullsends the string"null".email-security … bulk-applyrequires all of--posts,--patches,--puts, and--deletes.Follow-ups
Documentation checklist