You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cf dev --help lists --local and --persist-to, which cf dev rejects #834
cf dev --help lists --local and --persist-to under Global flags, even though cf dev explicitly rejects both flags (following #22).
Reproduction
Run with cf@1.0.0-rc.4:
cf dev --help
Output includes:
Global flags
--local Use local resource simulations [boolean] [default: false]
--persist-to Directory holding local persisted state (default:
.cloudflare/state next to cloudflare.config.ts) [string]
Running either flag fails:
$ cf dev --persist-to ./local-state --dry-run
Error: --persist-to is not supported by cf dev.
$ cf dev --local --dry-run
Error: --local is not supported by cf dev.
Expected behaviour
Either omit --local and --persist-to from --help on commands that reject them (cf dev), or note in the --persist-to help description that it only applies with --local data commands and is not supported by cf dev.
It hides --local and --persist-to in the cf dev builder, the same way cf workers triggers deploy and cf workers versions create already do, and adds "Local simulation (--local) is not supported by this command." to the cf dev help. The runtime rejection is unchanged. It includes a test in local-flags.test.ts and a patch changeset (3 files, +37/-2).
I saw that PRs need a vouch during the RC phase. If you want this change, could a maintainer vouch for darrellchee so I can open the PR?
Activity
darrellchee commentedon Dec 2, 2026
I have a fix for this on my fork: main...darrellchee:cf:fix/issue-834
It hides
--localand--persist-toin thecf devbuilder, the same waycf workers triggers deployandcf workers versions createalready do, and adds "Local simulation (--local) is not supported by this command." to thecf devhelp. The runtime rejection is unchanged. It includes a test inlocal-flags.test.tsand a patch changeset (3 files, +37/-2).I saw that PRs need a vouch during the RC phase. If you want this change, could a maintainer vouch for
darrellcheeso I can open the PR?Before and after (
cf dev --help):compare.mp4