Completion functions in Zsh for JSforce CLI and its metadata tools.
- 
Clone the repository:
git clone git://github.com/jsforce/jsforce-zsh-completions.git - 
Include the directory in your
$fpath, for example by adding in~/.zshrc:fpath=(path/to/jsforce-zsh-completions/functions $fpath) - 
You may have to force rebuild
zcompdump:rm -f ~/.zcompdump; compinit 
- Complete all options available in CLI
 - For 
--c, --connectionoption argument, complete candidates from registered connections established in former OAuth2 authorization flow, reading JSforce config file (~/.jsforce/config.json). 
$ jsforce --connection admin@a
 -- connections --
[email protected]                          [email protected]
[email protected]                          [email protected]
Addition to the installation process above, you need to install jq to get connection completion feature to work.