本文へ移動
cccskills
無料GitHub で公開日本語紹介

cf-cli

Cloudflare の `cf` CLI を使い、APIやWorkersのコマンドを探して実行し、DNS・D1・KV・R2などのリソース管理やプロジェクトの開発・デプロイを進めます。

原文原文の説明を見る

Cloudflare's official cf CLI (beta) for the public Cloudflare API and Workers projects. Use for finding and running Cloudflare commands from the terminal — sign-in and profiles, cf cli search, cf schema, cf deploy/dev/build, resource commands for DNS, zones, D1, KV, and R2 — and for choosing between cf and Wrangler in a project.

fcakyon/claude-codex-settingsスター 1,192(GitHub 1,192 + cccskills 0)
連携ツールCloudflare

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • Cloudflareのコマンドを調べたいとき
  • DNSやD1、KV、R2を管理したいとき
  • Workersの開発・デプロイを進めたいとき
  • `cf`とWranglerの使い分けを確認したいとき

日本語での紹介

できること

Cloudflare の公式 cf CLIを使い、ターミナルから公開APIやWorkersの操作を進めます。自然文で目的に合うコマンドを検索し、cf schema や --help で引数やリクエスト形式を確認してから実行します。DNS、ゾーン、D1、KV、R2などのリソース管理のほか、Workersの開発、ビルド、デプロイを扱います。未確認の操作は --dry-run で送信内容をプレビューできます。既存プロジェクトの設定ファイルを見て、cf と Wrangler のどちらを使うか判断する手順も含みます。

こんなときに便利

CloudflareのAPIやWorkersをコマンドラインから操作したいとき、必要なコマンドを調べながら作業したいときに役立ちます。Wranglerを使っているプロジェクトで、既存設定を保ったままリソース操作を行いたい場合や、cf へ移行する前に手順を確認したい場合にも使えます。

使い方の例

  • 「CloudflareでDNSレコードを作るコマンドを調べて」
  • 「このWorkersプロジェクトの開発とデプロイに使うCLIを確認して」
  • 「D1データベースの操作を実行前にプレビューして」

注意点

cf はベータ版で、コマンドや設定が変更される場合があります。Node.js 22.18以降が必要で、Bunは非対応です。認証にはCloudflareのログイン、または自動実行時のAPIトークンが必要です。Wrangler設定だけがあるプロジェクトでは、開発・ビルド・デプロイにWranglerを使います。ライセンスはApache-2.0です。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(2)

  • SKILL.md6.7 KB
  • references/skill-feedback.md2.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Cloudflare CLI (cf)

cf is Cloudflare's command-line interface for the public Cloudflare API (2,900+ commands, most generated from API schemas) and for Workers projects. It is in beta: commands, configuration, and Build Output can change before the stable release.

Prefer retrieval over pre-trained knowledge. Describe the task to cf cli search, inspect the match with cf schema or --help, and preview with --dry-run before running a command you have not verified.

Docs index: https://developers.cloudflare.com/cf/llms.txt

Documentation

TopicPage
Install, sign in, credential and account selectionhttps://developers.cloudflare.com/cf/get-started/index.md
First Worker with cf init, cf dev, cf deployhttps://developers.cloudflare.com/cf/get-started/first-worker/index.md
Find, create, and delete resources from the terminalhttps://developers.cloudflare.com/cf/get-started/resources/index.md
cf for Wrangler usershttps://developers.cloudflare.com/cf/wrangler/index.md
Migrate a Wrangler project with cf migratehttps://developers.cloudflare.com/cf/wrangler/migrate/index.md
Wrangler-to-cf command and config referencehttps://developers.cloudflare.com/cf/wrangler/reference/index.md
Develop, build, and deploy; modes and previewshttps://developers.cloudflare.com/cf/projects/index.md
Typed cloudflare.config.tshttps://developers.cloudflare.com/cf/projects/cloudflare-config/index.md
Using cf with coding agents (safety rules)https://developers.cloudflare.com/cf/agents/index.md
CI, API tokens, unattended authenticationhttps://developers.cloudflare.com/cf/ci/index.md
Environment variableshttps://developers.cloudflare.com/cf/environment-variables/index.md

FIRST: check installation and sign in

npm install --global cf   # installs two equivalent commands: `cf` and `cloudflare`
cf --version
cf auth whoami
  • Requires Node.js 22.18 or later. Bun is not supported.
  • If another tool named cf is on your PATH, use cloudflare instead — the package installs both commands.
  • cf auth login prints a link and a one-time code, then opens the browser. On a remote machine, over SSH, or in a container, add --no-browser so cf only prints the link; approve it from another device. Add --force to sign in again.
  • cf keeps its own credentials and does not reuse a Wrangler login.
  • Unattended agents and CI cannot complete cf auth login — set CLOUDFLARE_API_TOKEN instead (see https://developers.cloudflare.com/cf/ci/index.md).

To make agents prefer cf, add this to the user-level AGENTS.md, CLAUDE.md, or equivalent:

When interacting with Cloudflare, use the `cf` CLI unless the project has a
Wrangler configuration file.

Find commands

cf cli search "create a DNS record"   # local, no credentials; quote the whole task; up to 5 JSON matches
cf schema d1 create                   # API request shape: method, path, params, body fields
cf <command> --help                   # arguments and options (e.g. cf deploy --help)

cf cli search takes the task as one argument — unquoted words after the first are parsed as unknown commands. cf schema covers generated API commands; for command arguments and options use --help.

Read output

  • Results are JSON on standard output; status messages and errors go to standard error, so piping to jq or redirecting needs no extra flags.
  • Lists print one JSON array page; paging options differ per command — check --help.
  • A failed command exits non-zero and prints the error to standard error.

Run commands safely

  • Preview first. --dry-run prints the request as JSON without sending it, and needs no credentials.
  • Aborted deletes still exit 0. In a non-interactive session, a destructive command without --force prints Aborted. to standard error and exits 0 — a zero exit does not mean the resource was deleted.
  • Review --force before allowing it. On some commands --force is also an API parameter (for example, cf workers delete --force also deletes a Worker that other Workers reference).
  • --local is limited. It works for KV keys, D1 databases (cf d1 raw, cf d1 migrations list|apply), and R2 objects; other commands (including cf d1 query) return an error instead of calling the API.

Choose the CLI for this project

  • cloudflare.config.ts exists: use cf.
  • wrangler.jsonc, wrangler.json, or wrangler.toml exists, and no cloudflare.config.ts: keep Wrangler for dev, build, and deploy. Do not run cf dev, cf build, or cf deploy there — they can generate a new configuration that ignores the Wrangler file, or fail. cf resource commands (DNS, zones, storage) are fine alongside it. Run cf migrate only when the user asks, and follow Migrate a Wrangler project: preview with cf migrate --dry-run, run cf migrate, then resolve the TODO(@cloudflare) comments in the generated cloudflare.config.ts.
  • Neither exists: use cf, as Use cf with coding agents recommends. Do not install Wrangler or create a Wrangler configuration file.

For Wrangler equivalents, use the Wrangler to cf reference or cf cli search. Do not translate Wrangler commands from memory. For the full comparison, refer to cf for Wrangler users.

Commands cf does not support yet

cf does not support every Wrangler command yet. Run these with npx wrangler instead of adding Wrangler to the project. Wrangler does not read cloudflare.config.ts, so pass the Worker name:

  • Live logs: npx wrangler tail <WORKER_NAME>.
  • A single secret: npx wrangler secret put <SECRET_NAME> --name <WORKER_NAME>. Or upload secrets with a new Worker version by passing --secrets-file <PATH> to cf deploy or cf workers versions create.

For the current list, refer to "Commands not yet supported" in the Wrangler to cf reference.

Skill feedback

If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

adhd-output-style

無料概要あり

要点を先に示し、作業を短い番号付き手順に分けるなど、作業記憶に負担をかけにくい形式で応答を整え、説明も添えるスキルです。

  • 手順を短く区切って進めたいとき
  • 回答の要点を先に知りたいとき
  • 進捗を見失わず作業したいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

aeo

無料概要あり

AI検索で商品やサービスが知られていない段階の購入者に見つかるよう、質問と回答、引用元を調べ、改善案と成果の測定計画を組み立てます。

  • AI検索での見つかりやすさを調べたいとき
  • 購入者向け質問セットを作りたいとき
  • 引用元と競合を分析したいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

agent-browser

無料概要あり

Webサイトを開いて内容を読み、ボタン操作やフォーム入力、データ抽出、スクリーンショット撮影まで進めるブラウザー自動化の手順を案内します。

  • Webフォームに入力したいとき
  • ページから情報を抽出したいとき
  • 画面のスクリーンショットを撮りたいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

agents-sdk

無料概要あり

Cloudflare Agents SDKを使うアプリの開発、デバッグ、レビューを支援し、状態管理やチャット、バックグラウンド処理などの実装を確認するスキルです。

  • Agents SDKでアプリを作りたいとき
  • 既存のWorkersにSDKを追加したいとき
  • 状態管理やルーティングをデバッグしたいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

anthropic-frontend-design

無料概要あり

案件の内容に合わせて配色・文字・レイアウトを設計し、定型的に見えないWeb画面を組み立てるためのスキルです。

  • 新しいWeb画面の方向性を決めたいとき
  • 既存ページの見た目を見直したいとき
  • 配色や書体、レイアウトを選びたいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

app-auth

無料概要あり

WebアプリのメールやGoogleログイン、登録、パスワード再設定を共通のアカウント方針で整え、同じタブで戻れるログイン導線を設計します。

  • Webのログイン方式を統一したいとき
  • Googleログインを再利用したいとき
  • 登録や再設定の導線を見直したいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

fcakyon のスキルをすべて見る

このスキルの問題を報告する