跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com

CfCommand

最后更新 查看 MarkdownAgent 设置

The CfCommand component is used 0 times on 0 pages.

See all examples of pages that use CfCommand

Used 0 times.

Pages

    Partials

      CfCommand 组件使用 cloudflare-docs 仓库 ↗中所安装 cf 版本的元数据,记录单个 Cloudflare CLI 命令。

      导入

      import { CfCommand } from "~/components";

      用法

      import { CfCommand } from "~/components";
      
      <CfCommand command="deploy" />
      <CfCommand command="auth whoami" headingLevel={3} />

      参数

      command stringrequired 是不含 cf 前缀的命令,例如 deploy 或 auth whoami。

      headingLevel number(default: 2) optional 设置命令名称的标题级别。

      这篇文档对您有帮助吗?