diff --git a/packages/wrangler/src/api/dev.ts b/packages/wrangler/src/api/dev.ts index b217a953c173..cadc48d3b3f6 100644 --- a/packages/wrangler/src/api/dev.ts +++ b/packages/wrangler/src/api/dev.ts @@ -217,7 +217,7 @@ export async function unstable_dev( ...options, logLevel: options?.logLevel ?? defaultLogLevel, port: options?.port ?? 0, - experimentalProvision: undefined, + experimentalProvision: false, experimentalVersions: undefined, experimentalDevEnv: undefined, experimentalRegistry: fileBasedRegistry, diff --git a/packages/wrangler/src/deploy/index.ts b/packages/wrangler/src/deploy/index.ts index 11e1b4a5933f..f45c1c82984a 100644 --- a/packages/wrangler/src/deploy/index.ts +++ b/packages/wrangler/src/deploy/index.ts @@ -238,7 +238,7 @@ export async function deployHandler(args: DeployArgs) { await run( { FILE_BASED_REGISTRY: false, - RESOURCES_PROVISION: args.experimentalProvision ?? false, + RESOURCES_PROVISION: args.experimentalProvision, }, () => deployWorker(args) ); diff --git a/packages/wrangler/src/index.ts b/packages/wrangler/src/index.ts index 93f1145804ee..e8604d2b2000 100644 --- a/packages/wrangler/src/index.ts +++ b/packages/wrangler/src/index.ts @@ -263,8 +263,9 @@ export function createCLIParser(argv: string[]) { return true; }) .option("experimental-provision", { - describe: `Automatic resources provision`, + describe: `Experimental: Enable automatic resource provisioning`, type: "boolean", + default: false, hidden: true, alias: ["x-provision"], }) diff --git a/packages/wrangler/src/yargs-types.ts b/packages/wrangler/src/yargs-types.ts index 9397389323c7..c66fac600d21 100644 --- a/packages/wrangler/src/yargs-types.ts +++ b/packages/wrangler/src/yargs-types.ts @@ -9,7 +9,7 @@ export interface CommonYargsOptions { config: string | undefined; env: string | undefined; "experimental-versions": boolean | undefined; - "experimental-provision": boolean | undefined; + "experimental-provision": boolean; } /**