9. Shell Completion
PanCTL can generate tab-completion scripts for common shells:
panctl completion bash|zsh|fish|powershellBash example:
source <(panctl completion bash)Zsh needs compinit initialized first:
autoload -U compinit; compinit
source <(panctl completion zsh)The bash script needs bash 4 or later. macOS ships bash 3.2, so install a newer bash and bash-completion with Homebrew there. Use source <(panctl completion bash) or eval "$(panctl completion bash)". An unquoted eval $(panctl completion bash) exits 0 but registers nothing because word-splitting mangles the script.
Completion is context-aware. It will suggest live values (such as tenant IDs, storage-set IDs, and node dataserials) by making a quick, silent lookup against your active session, in addition to suggesting fixed values like --format options and role names.