Repository navigation
cf@1.0.0-rc.6
Minor Changes
-
7cbe76a: Reject a
CLOUDFLARE_ACCOUNT_IDthat differs from the Build Output's accountcf deploy,cf workers versions create,cf workers triggers deploy, andcf previews deploynow fail before making any API requests, including with--dry-run, whenCLOUDFLARE_ACCOUNT_IDis set to a different account from theaccountIdrecorded in the Build Output. Previously the recorded account was used andCLOUDFLARE_ACCOUNT_IDwas silently ignored, so a deploy could go to a different account from the one the environment named.This is a breaking change for projects that set both to different values. The error says where
CLOUDFLARE_ACCOUNT_IDcame from, such as.env.staging, and how to resolve it: removeCLOUDFLARE_ACCOUNT_IDor set it to the recorded account to deploy there, or change or removeaccountIdand rebuild.A
CLOUDFLARE_COMPLIANCE_REGIONthat differs from the recordedcomplianceRegionwas already rejected. Its error now uses the samecloudflare.config.tsnames and also says where the value came from. An invalidCLOUDFLARE_COMPLIANCE_REGIONnow gets the same error as other commands, and that error now names the dotenv file the value came from. -
e27d3e6: Add D1 Insights index recommendations and settings commands
Use
cf d1 insights recommendationsto retrieve index recommendations and
cf d1 insights settings getorcf d1 insights settings updateto view or
change the account's AI setting. Usecf d1 list --fieldsto select returned
database fields, including the opt-inrecommendation_countfield. -
e27d3e6: Add multi-feed filters to Cloudforce One Threat Signals
Repeat
--feed-idoncf cloudforce-one threat-signals articles listor
cf cloudforce-one threat-signals searchto match multiple feeds. Use
--feed-category-idonarticles listto filter by feed category ID. -
4472d3f: Update the generated command surface for Cloudflare API schemas revision
0b6f5865a28c7bb408f8468a173cec59c411345a. -
e27d3e6: Remove
cf zero-trust risk-scoringcommands no longer in the API schemaBreaking change: under
cf zero-trust risk-scoring, theget,reset,
behaviours get,behaviours update, andsummary getcommands are no longer
available. Update scripts that call them before upgrading. Commands under
cf zero-trust risk-scoring integrationsremain available. -
6de4261: Update the generated command surface for Cloudflare API schemas revision
3359e90fa19e8e250ab5a402b0f9dbe65bbe82a3.Breaking: Replace
cf organizations members batch create <organization-id>
withcf organizations members bulk-create --organization-id <organization-id>.
Update scripts to pass the ID as a required flag instead of a positional
argument. The old command has no compatibility alias.Use
cf o11y destinations get <slug>to fetch a Workers Observability
Telemetry Destination by its slug.
Patch Changes
-
d4c61ea: Load
.envfiles for the Build Output's mode when--modeis omittedcf deploy,cf workers versions create,cf workers triggers deploy, andcf previews deploynow load.env.<mode>and.env.<mode>.localfor the mode recorded in the Build Output when--modeis not passed. Previously they read only.envand.env.local, so deploying a staging build without repeating--mode stagingcould use the account and API token from.envinstead of.env.staging.Vite records its default
productionmode when a build runs without--mode, so these commands now also load.env.productionfor such builds, matching the files the build itself used. An explicit--modemust still match the recorded mode.