Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Worker identifier is spelled three ways across `cf workers` commands (`<worker-id>`, `--worker-id`, `--worker`)

オープン
#345 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@petebacondarwin がすでに取り組んでいます。

2026年10月22日 から。

  • #387 @petebacondarwin による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript
領域
cli

調査の方向性

Start by running the cf workers secrets update, cf workers versions list, and cf workers deployments create examples to compare their accepted worker arguments. Locate the generated command definitions for the 7 commands using --worker-id and 14 using --worker, then check the command-generation and CLI tests. Done means every cf workers command accepts one consistent worker option, with existing options continuing to work as aliases for either a name or ID where supported.

索引モデルが issue の本文から書いたものです。

説明

Summary of the issue

Commands under cf workers take the Worker in three different ways:

Command How the Worker is passed
cf workers get, cf workers delete positional <worker-id>
cf workers versions list / get / delete --worker-id (required flag)
cf workers deployments list / create, cf workers secrets list / update / … --worker (alias --script-name)

So the obvious sequence of rolling back after setting a secret uses three spellings:

cf workers secrets update API_KEY --worker my-worker --text …
cf workers versions list --worker-id my-worker
cf workers deployments create --worker my-worker --versions '[…]'

cf workers versions list --worker my-worker fails with Missing required argument: worker-id, and cf workers versions list my-worker fails the same way. The spelling follows each API's path parameter (worker_id vs script_name), which leaks into the CLI. The cf launch post names consistency across commands as a goal, mainly for agents.

In the beta.16 bundle, 7 generated commands define --worker-id and 14 define --worker. beta.18 is the same.

Expected behaviour

One spelling for "which Worker" across cf workers … (e.g. --worker everywhere, accepting a name or ID), with the others kept as aliases.

Version of cf used

1.0.0-beta.16

System information and package versions
cf 1.0.0-beta.16 (also checked in the beta.18 package source)
macOS 27.0 arm64, Node 26.8.2, npm 11.19.1
主要言語
TypeScript
スター
916
フォーク
53
平均マージ
18時間 37分
マージ済み PR(30日)
197

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cloudflare/cf のほかの issue

cloudflare/cf の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。