No command to view or edit an existing Worker's script settings (vars, observability, logpush, tail consumers)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 58/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start with the cf workers command tree and the existing workers-for-platforms ... scripts settings get/edit implementation, then trace how cf calls the Workers API script-settings endpoints. Add command wiring and tests for retrieving and editing plain-text vars, observability, logpush, tail consumers, and compatibility settings. Done means the new commands expose these operations without requiring a project redeploy and have coverage for successful and invalid requests.
Written by the indexing model from the issue text.
Description
Summary of the issue
There's no command to read or change an existing Worker's settings without redeploying it from a project. The Workers API has script-settings endpoints (/accounts/{account_id}/workers/scripts/{script_name}/settings and /script-settings) for things like plain-text bindings, observability, logpush, tail consumers and compatibility settings. cf calls these internally during deploy, but exposes no command for them:
cf cli searchfor "edit worker script settings", "enable observability logs on an existing worker", or "update compatibility date of deployed worker script settings" only finds the Workers for Platforms equivalents (cf workers-for-platforms dispatch-namespaces scripts settings get/edit).cf workers --helplistscheck, delete, deployments, get, list, scripts (search only), secrets, triggers, types, versions.
So you can't set or remove a plain-text var, turn on observability, or add a tail consumer on a Worker from the CLI without its source and a full cf deploy. That also makes #197 (deploy deleting vars set outside the config) harder to work around, and there's no CLI way to inspect what a deploy would overwrite.
Expected behaviour
cf workers settings get --worker <name> and cf workers settings edit --worker <name> … (or similar), mirroring the existing workers-for-platforms … scripts settings commands.
Version of cf used
1.0.0-beta.16 (no settings commands in the beta.18 package either)
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
Relevant error logs (optional)
Related: #196 (toggle workers.dev / Preview URLs), #197 (keep_vars).
- Dominant language
- TypeScript
- Stars
- 853
- Forks
- 42
- Avg merge
- 16h 43m
- Merged PRs (30d)
- 160
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudflare/cf
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudflare/cf#344 ·
Maintainers usually reply within 1 day
-
upstream
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
cloudflare/cf#262 ·
Maintainers usually reply within 1 day
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` templatePossibly taken @jamesopstad claimed this 6 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
cloudflare/cf#223 · 2 assignees ·
Maintainers usually reply within 1 day
-
upstream
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cloudflare/cf#179 ·
Maintainers usually reply within 1 day
-
List commands return inconsistent JSON shapes (`r2 buckets list` and `images list` wrap the array)Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
cloudflare/cf#346 ·
Maintainers usually reply within 1 day
Similar issues
-
area: aria/combobox gemini-triaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
angular/components#33973 ·
Maintainers usually reply within 1 day
-
bug priority: P2
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
[bug] status, list and push crash with an uncaught NotInitializedError stack trace when teamai is not initializedPossibly taken @jay23606 claimed this today. Openbug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Tencent/teamai-cli#1227 ·
Maintainers usually reply within 1 day
-
[Tool]: YapOpen
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
withkarann/aifoxx#417 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sindresorhus/eslint-plugin-unicorn#3921 ·
Maintainers usually reply within 1 day