cilium completion

Output shell completion code

  1. cilium completion [shell] [flags]

Examples

  1. # Installing bash completion on macOS using homebrew
  2. ## If running Bash 3.2 included with macOS
  3. brew install bash-completion
  4. ## or, if running Bash 4.1+
  5. brew install bash-completion@2
  6. ## afterwards you only need to run
  7. cilium completion bash > $(brew --prefix)/etc/bash_completion.d/cilium
  8. # Installing bash completion on Linux
  9. ## Load the cilium completion code for bash into the current shell
  10. source <(cilium completion bash)
  11. ## Write bash completion code to a file and source if from .bash_profile
  12. cilium completion bash > ~/.cilium/completion.bash.inc
  13. printf "
  14. # Cilium shell completion
  15. source '$HOME/.cilium/completion.bash.inc'
  16. " >> $HOME/.bash_profile
  17. source $HOME/.bash_profile
  18. # Installing zsh completion on Linux/macOS
  19. ## Load the cilium completion code for zsh into the current shell
  20. source <(cilium completion zsh)
  21. ## Write zsh completion code to a file and source if from .zshrc
  22. cilium completion zsh > ~/.cilium/completion.zsh.inc
  23. printf "
  24. # Cilium shell completion
  25. source '$HOME/.cilium/completion.zsh.inc'
  26. " >> $HOME/.zshrc
  27. source $HOME/.zshrc
  28. # Installing fish completion on Linux/macOS
  29. ## Write fish completion code to fish specific location
  30. cilium completion fish > ~/.config/fish/completions/cilium.fish

Options

  1. -h, --help help for completion

Options inherited from parent commands

  1. --config string config file (default is $HOME/.cilium.yaml)
  2. -D, --debug Enable debug messages
  3. -H, --host string URI to server-side API

SEE ALSO