The CfCommand component documents one Cloudflare CLI command using metadata from the version of cf installed in the cloudflare-docs repository ↗.
import { CfCommand } from "~/components";import { CfCommand } from "~/components";
<CfCommand command="deploy" />
<CfCommand command="auth whoami" headingLevel={3} />command string required is the command without the cf prefix, such as deploy or auth whoami.
headingLevel number (default: 2) optional sets the heading level for the command name.