cf hand-written commands add --dry-run
Introduced 2026-10-09 · score 0.95
HOW TO USE IT
When validating a hand-written `cf` command, pass `--dry-run` to validate its arguments and preview effects without running its handler. Commands with an existing dry-run implementation keep their command-specific preview.
WHY THIS HELPS
Validate the arguments for a hand-written cf command and preview its effects without running its handler.
REQUIREMENTS AND LIMITATIONS
- Version: 1.0.0-beta.14
- --dry-run: For hand-written commands, validate arguments and preview effects without executing the handler. The release note does not document command-specific arguments or preview output.
- Applies to hand-written commands.
- Commands with existing dry-run implementations retain their command-specific previews.
- Every hand-written command must declare a dry-run strategy and option during generation.
FIRST-PARTY EVIDENCE
- https://github.com/cloudflare/cf/releases/tag/cf%401.0.0-beta.14
- https://github.com/cloudflare/cf/releases/tag/cf@1.0.0-beta.14
Check the installed version and the source before using it. Entry JSON