diff --git a/command/plugins_remove.go b/command/plugins_remove.go index d42e92a5ee8..a0258ee522f 100644 --- a/command/plugins_remove.go +++ b/command/plugins_remove.go @@ -58,6 +58,10 @@ func (c *PluginsRemoveCommand) RunContext(buildCtx context.Context, args []strin }, } + if runtime.GOOS == "windows" && opts.Ext == "" { + opts.BinaryInstallationOptions.Ext = ".exe" + } + plugin, diags := addrs.ParsePluginSourceString(args[0]) if diags.HasErrors() { c.Ui.Error(diags.Error())