OriginRouter CLIShell completion
Shell completion
Completion covers top-level commands, subcommands, common options, enum values, and provider names configured on the current device.
originrouter and the short or command are equivalent. For example, originrouter login can be written as or login.
Configure completion
When you run originrouter setup interactively, the setup flow can configure completion for the current shell. You can also run:
originrouter completion install
Select a shell or preview the file that would be changed:
originrouter completion install --shell zsh
originrouter completion install --shell zsh --dry-run
Remove completion configuration written by OriginRouter:
originrouter completion uninstall --shell zsh
zsh
Add this line to ~/.zshrc:
source <(originrouter completion zsh)
bash
Add this line to ~/.bashrc:
source <(originrouter completion bash)
fish
mkdir -p ~/.config/fish/completions
originrouter completion fish > ~/.config/fish/completions/originrouter.fish
PowerShell
Add this line to your PowerShell $PROFILE:
originrouter completion powershell | Out-String | Invoke-Expression
Open a new terminal or reload the shell, then test originrouter rou<Tab>, originrouter route <Tab>, or --originrouter-autonomy <Tab>.