Sponsor:

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

caddy-completion - Man Page

Generate completion script

Synopsis

caddy completion [bash|zsh|fish|powershell]

Description

To load completions:

Bash:

  $ source <(caddy completion bash)

  # To load completions for each session, execute once:
  # Linux:
  $ caddy completion bash > /etc/bash_completion.d/caddy
  # macOS:
  $ caddy completion bash > $(brew --prefix)/etc/bash_completion.d/caddy

Zsh:

  # 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 for each session, execute once:
  $ caddy completion zsh > "${fpath[1]}/_caddy"

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

fish:

  $ caddy completion fish | source

  # To load completions for each session, execute once:
  $ caddy completion fish > ~/.config/fish/completions/caddy.fish

PowerShell:

  PS> caddy completion powershell | Out-String | Invoke-Expression

  # To load completions for every new session, run:
  PS> caddy completion powershell > caddy.ps1
  # and source this file from your PowerShell profile.

Options

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

See Also

caddy(8)

History

11-Feb-2024 Auto generated by spf13/cobra

Referenced By

caddy(8).

Feb 2024 Auto generated by spf13/cobra