<p>Question: What are the steps to install a kubectl plugin on Windows?</p>

<p>I have written a plugin standalone binary that I would like to invoke from within kubectl (following the instructions in <a href="https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/</a>)</p>

<p>The documentation for installation states to perform the following steps: 
"A plugin is nothing more than a standalone executable file, whose name begins with kubectl-. To install a plugin, simply move this executable file to anywhere on your PATH."</p>

<p>This works fine on Mac and Linux, but performing those instructions on Windows does not seem to work. Running "kubectl plugin list" does not list my plugin and I cannot invoke it from within kubectl. I even tried adding my binary to the .kube directory autogenerated by kubectl, and it does not detect the plugin. </p>

<p>Several discussions on github reference this issue, without providing a response of how to install a kubectl plugin on Windows (ex: <a href="https://github.com/kubernetes/kubernetes/issues/73289" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/issues/73289</a>). And after performing a lengthy google/stackoverflow search, there don't seem to be any tutorials/solutions that I (or my teammates) could locate. Any help would be much appreciated! Thank you. </p>

Chryses
<p>I think only .exe file extensions are considered as executables by kubectl when it searches for plugins in the $PATH when running in Windows environment.
I tested by creating a simple HelloWorld App as a <a href="https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs=cli" rel="nofollow noreferrer">single file executable</a>, added it to my system's $PATH and it got picked up and executed correctly.</p>
