Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Latest commit

 

History

History
35 lines (26 loc) · 1.54 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.54 KB

⛔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 🖖🏽.

PowerShell auto-completion for kubectl

powershellgallery downloads

kubectl tab-completion for PowerShell. Auto-completion is based on Kubernetes 1.18 client version.

Minimum PowerShell version: PowerShell 5.1

Installation from PowerShell Gallery:

Install-Module -Name PSKubectlCompletion

Features and Usage:

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.

Auto Import

You can add import to your profile to avoid calling it each time you open shell:

Add-Content --Path $PROFILE --Value "Import-Module PSKubectlCompletion"

Licence:

Apache-2.0

Release Notes:

Largely stable but PRs and Issues are welcome.