Completion candidates come from the same Go option registry used by CLI help and validation. Hidden internal options are not offered.
fetch --complete SHELL prints a registration script when called without
additional words, or candidate lines when called by an installed completion
function. Supported shells are Bash, Zsh, Fish, and PowerShell.
echo 'eval "$(fetch --complete bash)"' >> ~/.bashrcmkdir -p ~/.zshrc.d
fetch --complete zsh > ~/.zshrc.d/_fetchAdd ~/.zshrc.d to fpath if needed.
mkdir -p ~/.config/fish/completions
fetch --complete fish > ~/.config/fish/completions/fetch.fishAdd the generated registration script to the PowerShell profile:
New-Item -ItemType Directory -Force (Split-Path $PROFILE) | Out-Null
fetch --complete powershell >> $PROFILEThe completion function asks the installed Go binary for candidates. It does not execute a shell command assembled from user input. Enum values include HTTP versions, compression, pager, ECH, image, skill agents, WebSocket modes, and other values registered by the CLI.