跳转到主要内容

CfCommand

import { Type, MetaInfo } from "~/components";

The CfCommand component documents one Cloudflare CLI command using metadata from the version of cf installed in the cloudflare-docs repository.

Import

import { CfCommand } from "~/components";

Usage

import { CfCommand } from "~/components";

<CfCommand command="deploy" />
<CfCommand command="auth whoami" headingLevel={3} />

Arguments

command is the command without the cf prefix, such as deploy or auth whoami.

headingLevel sets the heading level for the command name.