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
cli: --dry-run ignores --local, prints remote api.cloudflare.com URL and misses unsupported-local errors #717
Passing --local together with --dry-run ignores --local. --dry-run always prints the remote https://api.cloudflare.com/client/v4/... URL with no indication that the command will run locally, and succeeds even for commands that reject --local at runtime (such as cf d1 query or cf queues list).
Because --dry-run is the documented way for users and agents to preview what a command will do before running it, showing a remote api.cloudflare.com URL makes --local look ignored or unsupported.
Expected behaviour
When --local and --dry-run are combined:
Commands that support local execution should indicate local targeting and state path in the --dry-run JSON instead of printing a remote api.cloudflare.com URL:
Actual output: exits 0 and prints POST https://api.cloudflare.com/client/v4/accounts/<account-id>/d1/database/.../query, whereas running the same command without --dry-run fails with:
┌ APIError
│ [error] This command has no local equivalent. Re-run without --local to use the Cloudflare API. The local explorer API does not implement POST /d1/database/00000000-0000-0000-0000-000000000000/query.
│ 404 Not Found
└
Activity