Skip to content

Conversation

girdharagrawalbro
Copy link

@girdharagrawalbro girdharagrawalbro commented Oct 16, 2025

Adds documentation for kubectl completion command.

Examples included:

  • Generate bash completion
  • Generate zsh completion
  • Generate fish completion
  • Generate PowerShell completion
  • Load bash completion immediately
  • Load zsh completion immediately

#17606

@github-actions github-actions bot added new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers. labels Oct 16, 2025
@dmmqz dmmqz mentioned this pull request Oct 16, 2025
43 tasks
Comment on lines +9 to +20

- Load Bash completions in the current shell session:

`source <(kubectl completion bash)`

- Generate Zsh completion script:

`kubectl completion zsh`

- Load Zsh completions in the current shell session:

`source <(kubectl completion zsh)`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Load Bash completions in the current shell session:
`source <(kubectl completion bash)`
- Generate Zsh completion script:
`kubectl completion zsh`
- Load Zsh completions in the current shell session:
`source <(kubectl completion zsh)`
- Generate Zsh completion script:
`kubectl completion zsh`
- Load Zsh completions in the current shell session:
`source <(kubectl completion {{bash|zsh}})`

These could be condensed into a single example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants