caddy-completion(8)

caddy-completion8

Generate completion script

Usage

caddy completion [{bash | zsh | fish | powershell}]

Overview

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

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

History

10-Aug-2026 Auto generated by spf13/cobra

From caddy 2.6.2-12+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.