HotCodePush

completion

How to load the hotcodepush completion script in bash, zsh or fish, what it completes and why it needs a global install.

Print the completion script for <shell>, bash, fish or zsh: eval "$(hotcodepush completion <shell>)" loads it from ~/.bashrc, or from ~/.zshrc after compinit, and fish loads it saved as ~/.config/fish/completions/hotcodepush.fish. The script completes the commands, the flags, an enum option's values and file names for any other value, and zsh and fish show their descriptions.

--json prints one document with the script in script. The command sends no telemetry and skips the daily check for a newer version.

The script completes hotcodepush as a command on the PATH, so it needs a global install, npm install -g hotcodepush. npx hotcodepush gets no completion. A saved script goes stale with an upgrade, so write it again after one.

eval "$(hotcodepush completion zsh)"
hotcodepush completion fish > ~/.config/fish/completions/hotcodepush.fish

Last updated on