Skip to content

Commit cd4f2cd

Browse files
Add strict mode for the wrangler deploy command (#24820)
* Add strict mode for the `wrangler deploy` command * remove `--force` flag * Update src/content/docs/workers/wrangler/commands.mdx --------- Co-authored-by: Jun Lee <[email protected]>
1 parent d6a113b commit cd4f2cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ None of the options for this command are required. Also, many can be set in your
325325
- `--containers-rollout` <Type text="immediate | gradual" /> <MetaInfo text="optional" />
326326
- Specify the [rollout strategy](/containers/faq#how-do-container-updates-and-rollouts-work) for [Containers](/containers) associated with the Worker. If set to `immediate`, 100% of container instances will be updated in one rollout step, overriding any configuration in `rollout_step_percentage`. Note that `rollout_active_grace_period`, if configured, still applies.
327327
- Defaults to `gradual`, where the default rollout is 10% then 100% of instances.
328+
- `--strict` <Type text="boolean" /> <MetaInfo text="(default: false) optional" />
329+
- Turns on strict mode for the deployment command, meaning that the command will be more defensive and prevent deployments which could introduce potential issues. In particular, this mode prevents deployments if the deployment would potentially override remote settings in non-interactive environments.
328330

329331
<Render file="wrangler-commands/global-flags" product="workers" />
330332

0 commit comments

Comments
 (0)