⛔This library is no longer actively developed. kubectl has added PowerShell completion which you can now use. Thank you to everybody who contributed and used the project 🖖🏽.
kubectl
tab-completion for PowerShell. Auto-completion is based on Kubernetes 1.18 client version.
Minimum PowerShell version: PowerShell 5.1
Install-Module -Name PSKubectlCompletion
Import module and register completions as shown below.
After registering tab-completion use Tab to complete kubectl commands.
Import-Module PSKubectlCompletion
Set-Alias k -Value kubectl
Register-KubectlCompletion
Note Set-Alias is optional, but If setting an alias for kubectl, the Set-Alias command should be before Register-KubectlCompletion.
You can add import to your profile to avoid calling it each time you open shell:
Add-Content --Path $PROFILE --Value "Import-Module PSKubectlCompletion"
Apache-2.0
Largely stable but PRs and Issues are welcome.