Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"access-token",
"accessible-terminal-colours",
"account-config-hint",
"account-or-zone-help",
"api-error-messages",
"audio-binary-output",
"auth-login-keyring",
"bright-clouds-migrate",
"calm-dogs-expand",
Expand All @@ -37,6 +39,7 @@
"dev-persist-to-error",
"dry-run-project-setup",
"durable-object-container-ssh",
"empty-zone-flag",
"filter-zone-name",
"first-public-beta",
"fix-composed-body-flags",
Expand All @@ -49,6 +52,7 @@
"handwritten-dry-run",
"json-map-flags",
"json-string-escapes",
"keep-headers-out-of-bodies",
"large-upload-timeouts",
"live-docs-search",
"load-cloudflare-dotenv",
Expand All @@ -59,6 +63,7 @@
"narrow-sdk-error-imports",
"nested-array-body-flags",
"nested-body-overrides",
"nested-union-validation",
"noninteractive-abort-exit",
"pages-deploy-guidance",
"path-parameter-overrides",
Expand All @@ -80,20 +85,24 @@
"reduce-cli-import-graphs",
"refresh-project-after-setup",
"registrar-domain-check",
"rename-colliding-api-flags",
"renovate-workers-sdk-1b53b55dda14",
"renovate-workers-sdk-2a564b65b09b",
"renovate-workers-sdk-5677efb87bb6",
"renovate-workers-sdk-83342ab9935f",
"renovate-workers-sdk-86b7fdd7e599",
"renovate-workers-sdk-ab7ff531736d",
"renovate-workers-sdk-b4f2bb49937e",
"renovate-workers-sdk-b7f26685a496",
"renovate-workers-sdk-d09769c8965e",
"renovate-workers-sdk-dce4c81e5ce3",
"scope-nested-body-validation",
"search-telemetry",
"skip-api-project-config",
"telemetry-delegation-versions",
"temporary-accounts",
"thin-api-client",
"tidy-vpc-union-flags",
"tunnel-diag",
"tunnel-login",
"tunnel-ready",
Expand All @@ -114,6 +123,7 @@
"update-forge",
"update-openapi-15656f084dd7",
"update-openapi-2d3b9ab6825d",
"update-openapi-319dc756af2a",
"update-openapi-536d02b4bd56",
"update-openapi-59bd82aa6c34",
"update-openapi-5de500b2959b",
Expand All @@ -134,6 +144,7 @@
"update-openapi-e2d50301c8e4",
"update-openapi-e91e65be9898",
"update-openapi-ec19e9f82e21",
"update-openapi-ec5b5772f5cf",
"update-openapi-f816e2612cac",
"update-openapi-fd89c869d0cf",
"update-openapi-fdbc7d9b0fdc",
Expand Down
86 changes: 86 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,91 @@
# cf

## 1.0.0-beta.27

### Minor Changes

- bbe47a8: Give API fields that collide with cf's own flags distinct names

Generated commands no longer drop, merge, or shadow API fields whose names match a cf flag. `cf precursor update --detection-mode` sets the previously unreachable `mode`, and `cf o11y telemetry query` and `cf o11y shared-queries create` gain `--preview`.

One behavior change: on `cf cloudforce-one priority-intelligence profile update`, the organization profile is now `--organization-profile`, and `--profile` selects the auth profile again. An API parameter named `force` can no longer take cf's confirmation `--force`. `cf ai run` and `cf registrar registrations create` accept schema fields named after cf flags as `--input-<name>` (for example `--input-quiet`), and `cf schema` lists the flag behind a path or query parameter when it has one.

- 8129166: Update the generated command surface for Forge OpenAPI release `319dc756af2a642b3122b4db7e3b79ac1fbec7d8`

Keep `cf auth scopes` working with the OAuth scope catalogue's new IAM group.

- aaa712d: Update the generated command surface for Forge OpenAPI release
`ec5b5772f5cf7dfb16c49f3527671edfa37bb666`.

### Patch Changes

- cde5fa3: Explain how account-or-zone commands pick their scope

Commands that serve either an account or a zone, such as `cf rulesets list`
and `cf load-balancers account list`, now say in `--help` that they run
against your account unless you pass `--zone`, and that they ignore
`CLOUDFLARE_ZONE_ID`.

- edc13df: Prepare generated commands to preserve audio API responses

Recognize `audio/*` responses as binary data in the command generator and its
operation descriptors, including schemas without `format: binary`. Future commands
generated for audio endpoints will write the exact bytes to stdout so they can be
redirected to a file. No commands generated from the currently pinned OpenAPI
specification declare audio responses, so this change does not alter the behavior
of any currently shipped command.

- cde5fa3: Reject `--zone` without a value

An empty `--zone` used to fall back to `CLOUDFLARE_ZONE_ID`, and `--dry-run`
previewed a `/zones//` path. On commands that serve both an account and a
zone, it also switched to zone scope. cf now stops with
`--zone requires a non-empty value.` and, as with `--mode`, rejects a repeated
`--zone`.

Commands that forward arguments, such as `cf containers ssh`, used to drop a
`-z` with no value, so `cf containers ssh <id> ls -z` ran plain `ls`. That now
stops with the same error. Put forwarded arguments after `--`, as in
`cf containers ssh <id> -- ls -z`.

- 8e5f074: Keep required HTTP header parameters out of generated JSON request bodies.

Flags such as `--if-match` are now sent only as headers rather than also being copied into the body under a generated field name.

- 57bca06: Validate nested tagged unions when assembling request bodies from flags.

Preserve branch-specific required fields, closed-object rules, and available
array limits, including unions selected by enum values without an explicit
discriminator. Apply the checks to requests and dry-run previews.
Preserve the alternatives of enclosing unions and retain explicit `--body`
input as an escape hatch from these projected checks.

- 3043819: Update dependencies published from the Workers SDK repository:

- `@cloudflare/autoconfig`: `0.8.3` → `0.9.0`
- `@cloudflare/build-output-utils`: `0.9.6` → `0.9.7`
- `@cloudflare/cli-shared-helpers`: `0.3.0` → `0.3.1`
- `@cloudflare/codemods`: `0.7.0` → `0.7.1`
- `@cloudflare/config`: `0.29.0` → `0.29.1`
- `@cloudflare/containers-shared`: `0.23.5` → `0.23.6`
- `@cloudflare/deploy-helpers`: `0.24.3` → `0.24.4`
- `@cloudflare/runtime-types`: `0.1.19` → `0.1.20`
- `@cloudflare/workers-auth`: `0.15.3` → `0.15.4`
- `@cloudflare/workers-utils`: `0.50.1` → `0.50.2`
- `miniflare`: `5.20261023.3-beta` → `5.20261101.0-beta`

- aa0ee04: Correct generated validation for nested optional request-body objects.

Required fields are now enforced only when their containing object is supplied. This prevents flags in sibling objects from incorrectly requiring one another and keeps defaults from creating absent optional objects.

Raw `--body` requests continue to bypass validation for individual body flags.

- 350c808: Preserve alternative-specific requirements in generated body flags

Keep nested fields with the same name distinct when deriving `oneOf` constraints. Workers VPC service flags now require only the tunnel for the selected host alternative and accept dual-stack IPv4 and IPv6 hosts.

Reject incompatible flag combinations only when no alternative supports them and the variants declare required fields. Keep all-optional configuration updates compatible with cleanup payloads that combine settings from different alternatives.

## 1.0.0-beta.26

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cf",
"version": "1.0.0-beta.26",
"version": "1.0.0-beta.27",
"description": "The Cloudflare CLI",
"keywords": [
"ai",
Expand Down
Loading