sc completion
caution
Sauce Connect Proxy 5 release is currently in the Alpha stage, some changes in CLI are expected.
Generate an autocompletion script for bash
, zsh
, fish
and powershell
shells. See each sub-command's help for details on how to use the generated script.
Usage
$ sc completion [OPTIONS]
Options
bash
Linux
sc completion bash > /etc/bash_completion.d/sc
macOS
sc completion bash > /usr/local/etc/bash_completion.d/sc
zsh
- If shell completion is not already enabled in your environment, enable it by executing the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
- To load completions for each session, execute once:
sc completion zsh > "${fpath[1]}/_sc"
- Start a new shell to apply this setup.
fish
sc completion fish | source
To load completions for each session, execute once:
sc completion fish > ~/.config/fish/completions/sc.fish
Powershell
sc completion powershell | Out-String | Invoke-Expression
To load completions for every new session, run the following and then source this file from your Powershell profile:
sc completion powershell > sc.ps1