Your company here, and a link to your site. Click to find out more.

composer-cli-completion-zsh - Man Page

Generate the autocompletion script for zsh


composer-cli completion zsh [flags]


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 <(composer-cli completion zsh)

To load completions for every new session, execute once:


composer-cli completion zsh > "${fpath[1]}/_composer-cli"


composer-cli completion zsh > $(brew --prefix)/share/zsh/site-functions/_composer-cli

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


-h, --help[=false] help for zsh

--no-descriptions[=false] disable completion descriptions

Options Inherited from Parent Commands

-a, --api=1 Server API Version to use

-j, --json[=false] Output the raw JSON response instead of the normal output

--log="" Path to optional logfile

-s, --socket="/run/weldr/api.socket" Path to the server's socket file

--test=0 Pass test mode to compose. 1=Mock compose with fail. 2=Mock compose with finished.

--timeout=240 Timeout to use for server communication. Set to 0 for no timeout

See Also



7-Mar-2024 Auto generated by spf13/cobra

Referenced By


Mar 2024 composer-cli