Skip to content

nodus completion zsh

View Markdown

Generate the autocompletion script for zsh

Generate the autocompletion script for the zsh shell.

If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

source <(nodus completion zsh)

To load completions for every new session, execute once:

nodus completion zsh > "${fpath[1]}/_nodus"
nodus completion zsh > $(brew --prefix)/share/zsh/site-functions/_nodus

You will need to start a new shell for this setup to take effect.

nodus completion zsh [flags]
-h, --help help for zsh
--no-descriptions disable completion descriptions
--context string Context from the config file to use
--org string Organization (selects the context for that org)
-p, --project string Project to work in
-v, --verbose Log each API request (never credentials)

These invocations run in CI against the CLI’s fake API.

Terminal window
nodus completion zsh